Cis/170 - Ilab 5 of 7

In: English and Literature

Submitted By alexmicane4
Words 399
Pages 2
HELPIDO.COM

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

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

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 input an…...

Similar Documents

Cis 170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial helpido.com/cis170ilab5/ ------------------------------------------ CIS/170 - iLab 5 of 7 CLICK HERE TO GET THE SOLUTION !!!!!! ________________________________________ 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......

Words: 403 - Pages: 2

Cis 170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ 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......

Words: 399 - Pages: 2

Cis 170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ 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......

Words: 399 - Pages: 2

Cis 170 Ilab 7 of 7

...HELPIDO.COM ------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-7-of-7-bluebird-airlines-needs-a-program-to-assign-boarding-passes-on-its/ -------------------------------------------------- CIS 170 iLab 7 of 7 Step 1: Requirements - Airline Reservation System Bluebird Airlines needs a program to assign boarding passes on its only plane which has a seating capacity of 20. They want to use an alphanumeric seat number, and they want to be able to assign a passenger to a specific seat within either first or business class. The seats in the plane are numbered as follows: FIRST CLASS BUSINESS CLASS 1A, 1B, 2A, 2B 4A, 4B, 4C, 4D5A, 5B, 5C, 5D6A, 6B, 6C, 6D 7A, 7B, 7C, 7D The first 4 seats are first class and the remaining 16 are business class. Store the seating information in arrays. One array for the seat number and another array for the passenger’s name. You will need to hard code the seat number array and set every element of the passenger array to blanks. If a seat is empty, the corresponding array element is blank. If a seat is reserved, the corresponding array element has someone’s name in it. Display the Plane Manifest in a ListBox at the bottom of the window form. The program should prompt the user to enter the passenger’s name, select the class of the ticket (First or Business), and select the seat number. The windows form will have a text box to input the passenger’s name;...

Words: 1574 - Pages: 7

Cis/170 - Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ 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......

Words: 399 - Pages: 2

Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ 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...

Words: 399 - Pages: 2

Cis/170 Ilab 5 of 7

...HELPIDO.COM ----------------------------------------- Follow this link to get the tutorial www.helpido.com/cis170ilab5/ ------------------------------------------ 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...

Words: 399 - 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 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

Cis 170 Ilab 7 of 7

...HELPIDO.COM ------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-7-of-7-bluebird-airlines-needs-a-program-to-assign-boarding-passes-on-its/ -------------------------------------------------- CIS 170 iLab 7 of 7 Step 1: Requirements - Airline Reservation System Bluebird Airlines needs a program to assign boarding passes on its only plane which has a seating capacity of 20. They want to use an alphanumeric seat number, and they want to be able to assign a passenger to a specific seat within either first or business class. The seats in the plane are numbered as follows: FIRST CLASS BUSINESS CLASS 1A, 1B, 2A, 2B 4A, 4B, 4C, 4D5A, 5B, 5C, 5D6A, 6B, 6C, 6D 7A, 7B, 7C, 7D The first 4 seats are first class and the remaining 16 are business class. Store the seating information in arrays. One array for the seat number and another array for the passenger’s name. You will need to hard code the seat number array and set every element of the passenger array to blanks. If a seat is empty, the corresponding array element is blank. If a seat is reserved, the corresponding array element has someone’s name in it. Display the Plane Manifest in a ListBox at the bottom of the window form. The program should prompt the user to enter the passenger’s name, select the class of the ticket (First or Business), and select the seat number. The windows form will have a text box to input the passenger’s name;...

Words: 1574 - Pages: 7

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

Cis 170 Ilab 7 of 7

...HELPIDO.COM ------------------------------------------------- Follow this link to get the tutorial http://helpido.com/cis-170-ilab-7-of-7-bluebird-airlines-needs-a-program-to-assign-boarding-passes-on-its/ -------------------------------------------------- CIS 170 iLab 7 of 7 Step 1: Requirements - Airline Reservation System Bluebird Airlines needs a program to assign boarding passes on its only plane which has a seating capacity of 20. They want to use an alphanumeric seat number, and they want to be able to assign a passenger to a specific seat within either first or business class. The seats in the plane are numbered as follows: FIRST CLASS BUSINESS CLASS 1A, 1B, 2A, 2B 4A, 4B, 4C, 4D5A, 5B, 5C, 5D6A, 6B, 6C, 6D 7A, 7B, 7C, 7D The first 4 seats are first class and the remaining 16 are business class. Store the seating information in arrays. One array for the seat number and another array for the passenger’s name. You will need to hard code the seat number array and set every element of the passenger array to blanks. If a seat is empty, the corresponding array element is blank. If a seat is reserved, the corresponding array element has someone’s name in it. Display the Plane Manifest in a ListBox at the bottom of the window form. The program should prompt the user to enter the passenger’s name, select the class of the ticket (First or Business), and select the seat number. The windows form will have a text box to input the passenger’s name;...

Words: 1574 - Pages: 7

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