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 test program to call function several times for gcd

Greatest common divisor of two integers is largest integer which will evenly divide both integers. Implement this function in assembly language and write test program which calls function several times, passing it different values.

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Add a sentinel command to stop the loop

add a sentinel command to stop the loop. When the program is compiled, It'll ask the user to type in a palindrome. I want the user to type EXIT to end the loop.

  C program to randomly generate more than ten ip address

Write C or C++ program which Randomly generates more than 10 IP addresses written in decimal format and write results in text file (e.g. Dec_IPAddresses.txt)

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Write c program which has parent process and child process

Write a C program that has a parent process, a child process, and a grandchild process. The parent process should print its id and the square or 5.

  Write c program that forks two child processes

Write a C program that forks two child processes. The parent process will print all prime numbers up to 229, the first child process will print the first 50 Fibonacci numbers.

  Input parameters, and returns nothing

Write a function called ten2one(), that takes no input parameters, and returns nothing (void). The body of the function must include a loop that counts from 10 down to 1, printing the count value each time in the loop. The output should look like (no..

  Write a program that finds the equivalent series

Write a program that finds the equivalent series and parallel resistance for a collection of resistor values. Your program should scan first the number of resistors and then the resistor values. Then compute the equivalent series resistance for all r..

  Write c program to read one ip address

Write a C or C++ program which Read one IP address at a time from Dec_IPAddresses.txt and convert it into Hex. Store converted values stored in another file (e.g. HEX_IPAddresses.txt).

  Project

Unit 3 Individual Project SSCI210 – 1304B – 01 A typical individual who commits who commits hate crimes whether it is against or aimed at the Gay/lesbian community , the persons of color or the Jewish community, ( I mention these three because they a..

  C program to calculate power loss in transmission line

Write program in C to calculate the power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generation station

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