Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming: Create a C program(Using arrays) that reads and displays player amount number, player names, and the player total average a year. In addition

image text in transcribedimage text in transcribedC Programming: Create a C program(Using arrays) that reads and displays player amount number, player names, and the player total average a year. In addition display the Player's with the Top and bottom player amount. Guidelines detailed in picture with the paper. An example of the ouput is in the second picture.

Caveats:

1. Must intialize all variables and each variable on their own line(like below).

int i = 0;

int min = 0;

int intCounter = 0;

2. Use fgets instead of scanf, wherever possible.

3. Must use functions(function call) and comment it.

4. Comment in the code where the bubble sort is, so she knows exactly where it is.

5. Must Contencate First and Last name into one variable that will be used in the output.

Please try to limit the use of libraries to these.

#include

#include

#include

#include

#include

Homework #9 Description: Design a program that reads and displays Player zombies kill amount, the player names, and the total average zombie kills a year. In addition display the Player's with the top and bottom kill amount l. Properly document code using the CIS 161 coding name standards 2. Use a 50 integer type array for Zombies kills. 3. Use 50 element char arrays for first and last namcs. (note: 2 dimensional arrays for cach) 4. Initialize all variables properly. 5. Use separate functions is more readable. Make sure functions are properly declared. 6. Do not use Global Variables. 7. Input: Read the first and last name for each Player and their yearly zombie Kill amount, until a blank line is inputted for Player's first name. A blank first name will be the end of the output. 8. The input request should look like the below for each Player i "Please enter Plaver l's First name:" "Plcase enter Playcr l's Last name:" ii. "Please enter Player 1's Zombie Kills per year:" iv "Please enter Player 2's First name:" v "Please cnter Player 2's Last name vi. "Please enter Player 2's Zombie Kills per year:" vii. etc. 9. output: After all of the Player's names and salaries are ved, produce output as below: recci Zombie Kills (pcr year): 80000 per year" a. "Player 1: Thomas Baker b. "Player 2: Shawn Dillard Zombie Kills(per year): 81000 per year c. etc. d. After all Players have been output as above, the following: i. "The average zombie kills is: 85000 per year" ii. "The top player is Thomas Baker at 81000" iii. "The bottom player is Shawn Dillard at 80000" 10. Sort the output ascending by Zombie Kills using the bubble sort algorithm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago

Question

=+With whom does the firm have to negotiate?

Answered: 1 week ago