Discount Get CIS 170 ALL WEEKS Solution ONLY $68.95 $91.93
CIS 170 Week 1 - C# [$7.99]
CIS 170 Week 2 - Calculate Shipping Charge, TV Channel to Call Si... [$15.99]
CIS 170 Week 3 - Dive Scoring Program [$9.99]
CIS 170 Week 4 - Phone Dialing Program [$9.99]
CIS 170 Week 5 - Tournament Stats Alphabetical Order [$15.99]
CIS 170 Week 6 - Password Program , Number Guessing Game [$15.99]
CIS 170 Week 7 - Contact Program [$15.99]
CIS 170 CIS 170B C# - Final Exam [$21.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS 170 CIS/170 CIS170 C# - Week 5 - Lab 5 - iLab 5 - Tournament Stats  Alphabetical Order
    CIS 170 CIS/170 CIS170 C# - Week 5 - Lab 5 - iLab 5 - Tournament Stats  Alphabetical Order CIS 170 CIS/170 CIS170 C# - Week 5 - Lab 5 - iLab 5 - Tournament Stats  Alphabetical Order

CIS 170 CIS/170 CIS170 C# - Week 5 - Lab 5 - iLab 5 - Tournament Stats Alphabetical Order

$15.99

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:
o    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.
o    DisplayPlayerData(): Displays each player’s name and score.
o    CalculateAverageScore( ): Calculates the average score and returns it by value.
o    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 . . .
Tips
Best practices: Don’t try to write too much at a time! First, write an outline in comments based on the requirements and the pseudocode. Then, implement each function one at a time. Start each by writing a shell that just accepts data and perhaps prints it out for testing purposes. Test by calling the function from Main(). Then, add more functionality. Keep working incrementally, compiling and testing as you go. Set breakpoints and use the debugger at each phase to make sure your logic is working correctly. Then, use the same approach to implement each of the other functions.
Pseudocode
•    Main Function
o    Declare player and score arrays, and variables for number of players and average score.
o    Call the InputData( ) function, passing arrays and number of players variable by reference
o    Call the DisplayPlayerData( ) function, passing arrays and number of players variable by reference
o    Call the CalculateAverageScore( ) function, passing arrays and number of players by reference. Store returned value in average variable.
o    Display the average score
o    Call the DisplayBelowAverage( ) function, passing arrays and number of players variable by reference, passing average variable by value

•    InputData function
o    Loop while the number of players is less than the length of the array
o    Prompt for the player’s name
o    If the user entered Q, break out of the loop
o    Prompt the user for the player’s score
o    Add 1 to the number of players

•    DisplayPlayerData function
o    Loop to display the name and score of each player

•    CalculateAverageScore function
o    Loop to add up the scores
o    Divide by the number of players to calculate the average score
o    Return the average score to main

•    DisplayBelowAverage function
o    Loop to display the names and scores of all players who scored below the average score
o
END OF PART A

Part B: Alphabetical Order
Requirements

Your mission: Write a program to alphabetize a list of last names. The user will input an undetermined number of last names. The program will display the number of names entered and alphabetized lists of the names in ascending (A-Z) and descending (Z-A) order.

Your program will store the names in an ArrayList object. It will use various ArrayList properties and methods to implement the program requirements.
Sample output:

Enter a last name: Roberts
Keep going? (Y/N): y
Enter a last name: DeLay
Keep going? (Y/N): y
Enter a last name: Foreman
Keep going? (Y/N): y
Enter a last name: Ganguly
Keep going? (Y/N): n
4 last names entered

Names in Ascending Order

DeLay
Foreman
Ganguly
Names in Descending Order

Roberts
Ganguly
Foreman
DeLay
Tips
Best practices: Don’t try to write too much at a time! First, write an outline in comments based on the requirements and the pseudocode. Then, work on instantiating an ArrayList object, followed by implementing the loop that will get user input. As always, keep things simple and implement incrementally. Review the list of ArrayList methods and properties in the textbook and experiment with the ones you think you’ll need.
Pseudocode
•    Main function
•    Instantiate ArrayList object
•    Loop to get last names, until user wants to quit
o    Add each last name to the ArrayList
•    Display the count of the last names
•    Sort the ArrayList
•    Loop to display the names
•    Reverse the order of the ArrayList
•    Loop to display the names
END OF LAB

My tutorial contains Visual Studio C# 2010 Project and Word Document and Detailed comments

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B