Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ problem. Cooking.txt is below the images labled in bold Cooking.txt: Bellows,Ann 9.9 9.5 9.2 Thomas,Carl 8.6 8.9 8.5 Treadwell,Paula 10.0 10.0 9.8 Harrisburg,Karen 9.0
C++ problem. Cooking.txt is below the images labled in bold
Cooking.txt:
Bellows,Ann 9.9 9.5 9.2 Thomas,Carl 8.6 8.9 8.5 Treadwell,Paula 10.0 10.0 9.8 Harrisburg,Karen 9.0 9.1 9.2 Vernon,Mark 8.0 9.0 8.6 Ogdon,Roseanne 10.0 9.9 9.5 Chow,Michelle 9.6 9.6 9.6 Rogers,Jamal 9.9 9.6 9.8 Johnston,Cindy 9.0 8.9 8.8 Waters,James 7.0 7.9 7.6Part1 (30%) A text file contains player scores at cooking competition. There are three judges and each scores the food presentation on a scale of 1 to 10. The lowest and highest scores are weighted one half of the Innut: File cooking.txt is available on Blackboard. Each line begins with the full name of the contestant in the format: last,first followed by three scores. You may assume names do not contain blanks. Your code should be able to handle data files of any size. Do not edit the input file. You will be using C++ strings to hold and display names. Bellows,Ann 9.9 9.5 9.2 Thomas,Carl 8.6 8.9 8.5 Treadwell,Paula 10.0 10.0 9.8 Harrisburg Karen 9.0 9.1 9.2 Vernon,Mark 8.09.0 8.6 Ogdon,Roseanne 10.09.9 9.5 Chow,Michelle 9.69.6 9.6 Rogers,Jamal 9.9 9.6 9.8 Johnston,Cindy 9.0 8.9 8.8 Waters,James 7.0 7.9 7.6 Functions: Several functions are listed below which are to be used in your program. Do not change the pecification of the functions and be sure to honor the POST condition void swap (double& vl, double& v2); POST: exchange the values in vl and v2 void sort (double& v1, double& v2, double&v3); // POST: reorder values such that v
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started