Write a program that creates and displays a report of 12 Little League baseball players and their batting averages, listed in order of batting average from highest to lowest. The program should use an...

1 answer below »
Write a program that creates and displays a report of 12 Little League baseball players and their batting averages, listed in order of batting average from highest to lowest. The program should use an array of structures or class objects to store the data, where each structure or object holds the name of a player and their batting average. Make the program modular by having main call on different functions to input the data, sort the data, perform swaps, and display the report.

* Make sure you write and use the helper functions as asked for in the problem (input the data, sort the data, perform swaps, and display the report).
* Use classes, not structs. Have fields for First Name, Last Name and Batting Average. Use get/set methods and the proper access specifiers.
* Make sure to separate the class into separate .h and .cpp files.


Create files player.h, player.cpp, playertest.cpp (this file holds your main).

Answered Same DayDec 17, 2021

Answer To: Write a program that creates and displays a report of 12 Little League baseball players and their...

Swapnil answered on Dec 18 2021
150 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here