C++
Write a program to calculate a bowling league's average bowling scores. You will need to read the input data from the file"BowlingScore.txt"
- ou must use three arrays:
- a one-dimensional array to store the bowler's names.
- a (parallel) two-dimensional array to store the bowling scores.
- a one-dimensional array to store the bowler's average score.
- Your program must contain at least the following functions:
- a function called GetBowlingData to read and store data into two arrays. The function should take as input parameters the file name and both empty arrays, which it should fill from the file "BowlingScore.txt"
- return a status of either success or failure (i.e true or false).
- a function called GetAverageScore that is used to calculate the average bowling score. The function should take as input the populated arrays and return the average score of each bowler in a separate array.
- a function called PrettyPrintResults to output the results, i.e. bowler name, scores and average.
- Don't use Vectors or any other newfangled container, use only old school C arrays like in the book.
- Use repetition structures (loops) in your functions to perform calculations and printing. Remember "dimensions = loops". So a 2 dimensional array will require 2 loops to completely iterate over all of the elements in the array.
- And as always, don't use magic numbers. Instead use global constants at the top of the program under the includes.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
