Cis170 Cis 170 Cis/170 Ilab 5 of 7

In: Computers and Technology

Submitted By aleximimic
Words 402
Pages 2
HELPIDO.COM

-----------------------------------------
Follow this link to get the tutorial

www.helpido.com/cis170ilab5/
------------------------------------------

CIS170 CIS 170 CIS/170 iLab 5 of 7
________________________________________

Part A: Tournament Stats
Requirements
Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.The program will implement these functions:
 Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:
 InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.
 DisplayPlayerData(): Displays each player’s name and score.
 CalculateAverageScore( ): Calculates the average score and returns it by value.
 DisplayBelowAverage( ): Displays the names and scores of players who scored below average.
Sample output:
Enter Player Name (Q to quit): Bob
Enter score for Bob: 3245
Enter Player Name (Q to quit): Sue
Enter score for Sue: 1098
Enter Player Name (Q to quit): Dave
Enter score for Dave: 8219
Enter Player Name (Q to quit): Pat
Enter score for Pat: 3217
Enter Player Name (Q to quit): Q Name Score
Bob 3245
Sue 1098
Dave 8219
Pat 3217
Average Score: 3944.75
Players who scored below average Name Score
Bob 3245
Sue 1098
Pat 3217
Press any key to continue . . .
Part B: Alphabetical Order
Requirements
Your mission: Write a program to alphabetize a list of last names. The user will…...

Similar Documents

Cis 170 Cis170 Cis/170 Ilab 2 of 7

...HELPIDO.COM ------------------------------------------------ Follow this link to get the tutorial http://helpido.com/cis170ilab-2-of-7/ ------------------------------------------------ CIS 170 CIS170 CIS/170 iLab 2 of 7 ________________________________________ Scenario/Summary You will code, build, execute, debug, and test two programs using decision structures. The first program will calculate the shipping charge based on a given purchase amount. The second program translates a given TV channel to its call sign. Deliverables Submit the following to this week’s Dropbox: 1. A zipped Visual Studio project folder for each programming exercise. Refer to the Deliverables section of the Week 1 iLab page for detailed instructions on how to zip a project folder. 2. A single MS Word file named YourLastName_Lab1_ex1.docx containing the following items:  The source code for each program in the lab: Your source code should use proper indentation, include meaningful comments, and be error free. Start each with a specification that includes your name, the lab and exercise number, and a description of what the program accomplishes, similar to this: /* Specification: First Name Last Name Lab 1 Exercise # This program does X */  Labeled screenshot(s) of the output windows for each program, showing that each program produces correct results NOTE: A screenshot of a window can be created by first clicking on it to activate it. Next, press the key or key......

Words: 975 - Pages: 4

Cis 170 Cis170 Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis170 Cis 170 Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ CIS170 CIS 170 CIS/170 iLab 5 of 7 ________________________________________ Part A: Tournament Stats Requirements Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.The program will implement these functions:  Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:  InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.  DisplayPlayerData(): Displays each player’s name and score.  CalculateAverageScore( ): Calculates the average score and returns it by value.  DisplayBelowAverage( ): Displays the names and scores of players who scored below average. Sample output: Enter Player Name (Q to quit): Bob Enter score for Bob: 3245 Enter Player Name (Q to quit): Sue Enter score for Sue: 1098 Enter Player Name (Q to quit): Dave Enter score for Dave: 8219 Enter Player Name (Q to quit): Pat Enter score for Pat:......

Words: 402 - Pages: 2

Cis170 Cis/170 Cis 170 Ilab 6 of 7

...HELPIDO.COM ----------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-6-of-7/ ----------------------------------------------------------- CIS170 CIS/170 CIS 170 ILAB 6 OF 7 Part A: Password Program Step 1: Requirements Write a Windows application that simulates entering a password. The user enters a password and clicks Next. Then, the user types the password again and clicks Continue. The program will display a Message Box that displays either the passwords are equal or that they are not equal. Sample Output: I type in Bob in the password field and click Next. I type in Bob in the second password field and click Continue. Message displayed if the passwords match. Message displayed if the passwords are different. Step 2: Processing Logic Using the pseudocode below, write the code that will meet the requirements: Next Button Event Handler Method If the first password textbox is not blank Make visible the second password textbox, the Done button, and the labels Else Put "You must enter a password" in the label End-If Done Button Event Handler Method If the first password text box is not empty If the first password text box equals the second password textbox Display the message "Passwords are the same" Else Display the message "Passwords are different" End-If Else Display the message "You must enter a password" End-If Step 3: Create a new project Create a......

Words: 370 - Pages: 2

Cis170 Cis/170 Cis 170 Ilab 6 of 7

...HELPIDO.COM ----------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-6-of-7/ ----------------------------------------------------------- CIS170 CIS/170 CIS 170 ILAB 6 OF 7 Part A: Password Program Step 1: Requirements Write a Windows application that simulates entering a password. The user enters a password and clicks Next. Then, the user types the password again and clicks Continue. The program will display a Message Box that displays either the passwords are equal or that they are not equal. Sample Output: I type in Bob in the password field and click Next. I type in Bob in the second password field and click Continue. Message displayed if the passwords match. Message displayed if the passwords are different. Step 2: Processing Logic Using the pseudocode below, write the code that will meet the requirements: Next Button Event Handler Method If the first password textbox is not blank Make visible the second password textbox, the Done button, and the labels Else Put "You must enter a password" in the label End-If Done Button Event Handler Method If the first password text box is not empty If the first password text box equals the second password textbox Display the message "Passwords are the same" Else Display the message "Passwords are different" End-If Else Display the message "You must enter a password" End-If Step 3: Create a new project Create a......

Words: 370 - Pages: 2

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis170 Cis 170 Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ CIS170 CIS 170 CIS/170 iLab 5 of 7 ________________________________________ Part A: Tournament Stats Requirements Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.The program will implement these functions:  Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:  InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.  DisplayPlayerData(): Displays each player’s name and score.  CalculateAverageScore( ): Calculates the average score and returns it by value.  DisplayBelowAverage( ): Displays the names and scores of players who scored below average. Sample output: Enter Player Name (Q to quit): Bob Enter score for Bob: 3245 Enter Player Name (Q to quit): Sue Enter score for Sue: 1098 Enter Player Name (Q to quit): Dave Enter score for Dave: 8219 Enter Player Name (Q to quit): Pat Enter score for Pat:......

Words: 402 - Pages: 2

Cis170 Cis 170 Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ CIS170 CIS 170 CIS/170 iLab 5 of 7 ________________________________________ Part A: Tournament Stats Requirements Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.The program will implement these functions:  Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:  InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.  DisplayPlayerData(): Displays each player’s name and score.  CalculateAverageScore( ): Calculates the average score and returns it by value.  DisplayBelowAverage( ): Displays the names and scores of players who scored below average. Sample output: Enter Player Name (Q to quit): Bob Enter score for Bob: 3245 Enter Player Name (Q to quit): Sue Enter score for Sue: 1098 Enter Player Name (Q to quit): Dave Enter score for Dave: 8219 Enter Player Name (Q to quit): Pat Enter score for Pat:......

Words: 402 - Pages: 2

Cis170 Cis/170 Cis 170 Ilab 6 of 7

...HELPIDO.COM ----------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-6-of-7/ ----------------------------------------------------------- CIS170 CIS/170 CIS 170 ILAB 6 OF 7 Part A: Password Program Step 1: Requirements Write a Windows application that simulates entering a password. The user enters a password and clicks Next. Then, the user types the password again and clicks Continue. The program will display a Message Box that displays either the passwords are equal or that they are not equal. Sample Output: I type in Bob in the password field and click Next. I type in Bob in the second password field and click Continue. Message displayed if the passwords match. Message displayed if the passwords are different. Step 2: Processing Logic Using the pseudocode below, write the code that will meet the requirements: Next Button Event Handler Method If the first password textbox is not blank Make visible the second password textbox, the Done button, and the labels Else Put "You must enter a password" in the label End-If Done Button Event Handler Method If the first password text box is not empty If the first password text box equals the second password textbox Display the message "Passwords are the same" Else Display the message "Passwords are different" End-If Else Display the message "You must enter a password" End-If Step 3: Create a new project Create a......

Words: 370 - Pages: 2

Cis 170 Cis170 Cis/170 Ilab 2 of 7

...HELPIDO.COM ------------------------------------------------ Follow this link to get the tutorial http://helpido.com/cis170ilab-2-of-7/ ------------------------------------------------ CIS 170 CIS170 CIS/170 iLab 2 of 7 ________________________________________ Scenario/Summary You will code, build, execute, debug, and test two programs using decision structures. The first program will calculate the shipping charge based on a given purchase amount. The second program translates a given TV channel to its call sign. Deliverables Submit the following to this week’s Dropbox: 1. A zipped Visual Studio project folder for each programming exercise. Refer to the Deliverables section of the Week 1 iLab page for detailed instructions on how to zip a project folder. 2. A single MS Word file named YourLastName_Lab1_ex1.docx containing the following items:  The source code for each program in the lab: Your source code should use proper indentation, include meaningful comments, and be error free. Start each with a specification that includes your name, the lab and exercise number, and a description of what the program accomplishes, similar to this: /* Specification: First Name Last Name Lab 1 Exercise # This program does X */  Labeled screenshot(s) of the output windows for each program, showing that each program produces correct results NOTE: A screenshot of a window can be created by first clicking on it to activate it. Next, press the key or key......

Words: 975 - Pages: 4

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis170 Cis 170 Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ CIS170 CIS 170 CIS/170 iLab 5 of 7 ________________________________________ Part A: Tournament Stats Requirements Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.The program will implement these functions:  Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:  InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.  DisplayPlayerData(): Displays each player’s name and score.  CalculateAverageScore( ): Calculates the average score and returns it by value.  DisplayBelowAverage( ): Displays the names and scores of players who scored below average. Sample output: Enter Player Name (Q to quit): Bob Enter score for Bob: 3245 Enter Player Name (Q to quit): Sue Enter score for Sue: 1098 Enter Player Name (Q to quit): Dave Enter score for Dave: 8219 Enter Player Name (Q to quit): Pat Enter score for Pat:......

Words: 402 - Pages: 2

Cis170 Cis 170 Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ CIS170 CIS 170 CIS/170 iLab 5 of 7 ________________________________________ Part A: Tournament Stats Requirements Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.The program will implement these functions:  Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:  InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.  DisplayPlayerData(): Displays each player’s name and score.  CalculateAverageScore( ): Calculates the average score and returns it by value.  DisplayBelowAverage( ): Displays the names and scores of players who scored below average. Sample output: Enter Player Name (Q to quit): Bob Enter score for Bob: 3245 Enter Player Name (Q to quit): Sue Enter score for Sue: 1098 Enter Player Name (Q to quit): Dave Enter score for Dave: 8219 Enter Player Name (Q to quit): Pat Enter score for Pat:......

Words: 402 - Pages: 2

Cis170 Cis/170 Cis 170 Ilab 6 of 7

...HELPIDO.COM ----------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-6-of-7/ ----------------------------------------------------------- CIS170 CIS/170 CIS 170 ILAB 6 OF 7 Part A: Password Program Step 1: Requirements Write a Windows application that simulates entering a password. The user enters a password and clicks Next. Then, the user types the password again and clicks Continue. The program will display a Message Box that displays either the passwords are equal or that they are not equal. Sample Output: I type in Bob in the password field and click Next. I type in Bob in the second password field and click Continue. Message displayed if the passwords match. Message displayed if the passwords are different. Step 2: Processing Logic Using the pseudocode below, write the code that will meet the requirements: Next Button Event Handler Method If the first password textbox is not blank Make visible the second password textbox, the Done button, and the labels Else Put "You must enter a password" in the label End-If Done Button Event Handler Method If the first password text box is not empty If the first password text box equals the second password textbox Display the message "Passwords are the same" Else Display the message "Passwords are different" End-If Else Display the message "You must enter a password" End-If Step 3: Create a new project Create a......

Words: 370 - Pages: 2

Bee-Be-Beat It! | Lanterns | Hilary Castaneda