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 program that will input letters grade(a,b,c,d,f)

Write a program that will input letters grade(A,B,C,D,F), the number of which is input by the user (a maximum of 50 grades). The grades will be read into array. A function will be called five times(once for each letter grade) and will return the tota..

  Implement a standard sorted linked list class

Write C++ Program:Implement a standard SORTED linked list class. Be sure to include constructor/copy constructor, destructor, and assignment operator overload.

  Use structures to create c program to compute student record

Explain the following and give their suitable syntax. A pointer. Use structures to create C program to compute and store student records of class.

  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..

  Write a count occurrences() function that accepts a string

Write a CountOccurrences() function that accepts a string to be searched and a sub-string to be found. The function should return the # of times the sub-string is found. Write a tester file that declares a secret sentence as a constant.

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  Design for storing the maze layout

Design and implement a C++ program for maze layout

  Write a c program that reads a data file of floating numbers

Write a program that reads a data file of floating numbers into an array and prints the array elements along with the number of items in the array

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Program that asks the user to enter the number of miles

Write a C - program that asks the user to enter the number of miles traveled and the number of gallons of gasoline consumed. It should then calculate and display the miles-per-gallon value. Confine your output to 1 decimal place.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Write function compute square root together with prototype

Write a C++ function called compute together with its prototype that is passed 2 integers, A and B and returns the square root of A2+B2 ,as a double.

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