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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

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

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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