Whitewater high school has contracted

Assignment Help C/C++ Programming
Reference no: EM13164420

Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer. Then your program is to print a report, sorted by last name with each of the last names fully capitalized (that is, if you read in Wilkinson you print WILKINSON) followed by a comma, then the first name, then a colon, then the scores, then the average for the student, and lastly a letter grade (based upon 90 percent or greater being an "A," 80 percent or greater being a "B," and so forth). At the end of the report the averages for each test are to be printed also. Needless to say, the report must be written to a file and must be "pretty" (in proper columns and such). (HINT: Read in the whole line as a string, switch the first and last name, sort the names, then compute the math. Use stringstream for input and output to read the separate items from each string once they are sorted and to format the output line before printing. Also, since you do not know what the total amount of data may be (the file below is only a SAMPLE to make sure your program runs, use vectors to store your data)
At the bottom of each column of tests and the class average column, print the highest, lowest, and average test score. Additionally, at the end of the report print out the name(s) of the people who received A's, then those that received B's, then those that received C's, and so forth with proper headings and in alphabetical order.

sample file
Mary Jones: 89 90 100
Tom Brown: 100 99 100
John Smith:66 80 98
Englebert Humberdink: 85 87 88
Tom Jones: 76 78 89
Paul McCartney: 88 88 99
Olivia Newton: 77 66 98
Susan Barlow: 87 98 89
Robert Payne: 88 44 76
George Franklin: 77 88 99
Margaret Ibach: 87 89 90
Maggie Chang: 99 99 100
Blaire Bates: 89 87 78
John Lennon: 88 77 99
Silvia Stalone: 66 55 88
Pepper Johnson: 90 80 99
Alfred Newman: 80 80 90
Hugh Walker: 56 90 70
Maureen Ferguson: 100 90 70
Cho Zhang: 99 99 99
Lisa Graham: 80 87 78
Paul Revere: 89 78 90
Franklin Smythe: 88 88 100
Mark Anderson: 100 90 80
Toni Interbitzen: 90 90 90

Reference no: EM13164420

Questions Cloud

Determine the osmotic pressure of a solution : Determine the osmotic pressure of a solution that contains 0.042 g of a hydrocarbon solute (molar mass = 340 g/mol) dissolved in benzene to make a 350-mL solution. The temperature is 20.0°C.
What is the molar mass of insulin : A solution of 62.4 g of insulin in enough water to make 1.000 L of solution has an osmotic pressure of 0.305 atm at 25°C. Based on these data, what is the molar mass of insulin?
State water vapor so the pressure : In a vessel with a volume 3 m^3 you put 0.03m^3 of liquid water and 2.97m^3 of water vapor so the pressure is 101.33 kPa.
How many grams of water should be produced : Suppose 312 grams of methylamine and 475 grams of oxygen are mixed together. How many grams of water should be produced?
Whitewater high school has contracted : Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer
State how would temp impact ksp : if smaller what does this tell you about concentration you determined. write equilibrium exoression to rationalize explanation. How would temp impact ksp
Calculate the freezing point of a solution : 4. How many grams of NaNO3 would you add to 250g of H2O in order to prepare a solution that is .500 molal in NaNO3?
State a precipitate of calcium phosphate is in contact : A precipitate of calcium phosphate is in contact with 653.9 mL of water. How many grams of calcium ion are present in the solution
Choose a product to manufacture : Estimated sales budget, estimated direct materials budget, estimated direct labors budget, estimated manufacturing overhead budget, estimated selling and administrative expenses and an estimated income statement.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function to compute the magnitude f

write a function to compute the magnitude F and direction angle of a two-dimensional force F by using two components of the force fx,fy as its parameters,returning F and using the reference to pass theta value .

  Prepare a program that uses the pthread library

Prepare a C/C++ program that uses the PTHREAD library to create threads and mutexes to synchronize them.

  Write the code

Write a program that allows an instructor to keep a grade book. Each students has scores for exams, homework assignments, and quizzes.

  Implementation of sorting technique

Implementation of sorting technique

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  The funtion should take as parameters

Write a function in c ++ that multiplies two functions. the funtion should take as parameters two fraction structures. Then, the function should multiply the two fractions and return the solution as a fraction structure.

  Display the array, the average and the number of days above

Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Wrtie a function called gen_rand_double_array

Wrtie a function called gen_rand_double_array that generates 900 samples of size 22500 random numbers from U(10, 12). For each of these 900 samples, write a main funciton that calculates the mean and finds the simulated probability that the mean is b..

  Allows the user to enter the coefficients for a system

Create a graphical (not text-based) Visual C++ program that allows the user to enter the coefficients for a system of four equations with four unknowns. Include a button that when clicked, will solve the system of equations and display the results in..

  Define a class called plot that has private members of lengt

Define a class called Plot that has private members of length and width. Include a constructor and a public function that calculates the area and the length of the boundary of the field.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd