Write a program that reads students names followed

Assignment Help Computer Engineering
Reference no: EM132168328

Using C++,

Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score.

Student data should be stored in a struct variable of type studentType, which has four components:

studentFName and studentLName of type string,

testScore of type int (testScore is between 0 and 100), and

grade of type char.

Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions:

A function to read the students' data into the array.

A function to assign the relevant grade to each student.

A function to find the highest test score.

A function to print the names of the students having the highest test score.

Your program must output each student's name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls.

Use the following data for the input file:

Duckey Donald 85 Goof Goofy 89 Brave Balto 93 Snow Smitn 93 Alice Wonderful 89 Samina Akthar 85 Simba Green 95 Donald Egger 90 Brown Deer 86 Johny Jackson 95 Greg Gupta 75 Samuel Happy 80 Danny Arora 80 Sleepy June 70 Amy Cheng 83 Shelly Malik 95 Chelsea Tomek 95 Angela Clodfelter 95 Allison Nields 95 Lance Norman 88 Sample Run Student Name Test Score Grade Donald, Duckey 85 B Goofy, Goof 89 B Balto, Brave 93 A Smitn, Snow 93 A Wonderful, Alice 89 B Akthar, Samina 85 B Green, Simba 95 A Egger, Donald 90 A Deer, Brown 86 B Jackson, Johny 95 A Gupta, Greg 75 C Happy, Samuel 80 B Arora, Danny 80 B June, Sleepy 70 C Cheng, Amy 83 B Reid, John 95 A Tomek, Chelsea 95 A Clodfelter, Angela 95 A Nields, Allison 95 A Norman, Lance 88 B Highest Test Score: 95 Students having the highest test score: Green, Simba Jackson, Johny Reid, John Tomek, Chelsea Clodfelter, Angela Nields, Allison

Reference no: EM132168328

Questions Cloud

What is meant by lean management : What is meant by "lean" management. How can this benefit an organization to achieve better performance and sustainability for future operations?
What would you do in situations like this : Why do you think this is? What could go wrong if this kind of behavior is not addressed? What would you do in situations like this?
What are the key relationship operation : What are the key relationship operation has with other parts of organization and how well are they managed?
What is the role of safety stock in an mrp system : A. Data Integrity is a big deal in industry, Why? B. What is the role of safety stock in an MRP system?
Write a program that reads students names followed : Write a program that reads students' names followed by their test scores. The program should output each student's name followed.
Write an analysis about why you chose the given npo : As part of the course project, in Week 1, you will select an NPO of your choice. You should choose an organization in which an appropriate executive or manager.
What are the basis controllable variables of a production : What are the basis controllable variables of a production planning problem? What are the four major costs?
Write a program that will ask the user to enter an integer : Write a function that will reverse the order of the elements of an array of int variables.
Determine the upper and lower control limits : (i) Determine the upper and lower control limits for an X-Bar chart and R-chart with a sample size of four.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How a certified it security professional can add credibility

Describe two IT certifications that may be considered when selecting an expert for an expert witness opinion.

  Write javascript code to do the following things based

Write JavaScript code to do the following things based on the demos we did in class.

  What are some of the pros and cons of open source software

What are some of the pros and cons of using open source software. Do you currently use any. What would be your biggest concerns about

  Explain basic wireless network maintenance functions

Occasionally after upgrading firmware, the antennas in your wireless network want to be adjusted. What technology may someday eliminate this need for antenna maintenance.

  Find the spring constants for each of two springs in series

The spring constant k is the force F divided by the amount x the spring stretches (k = F/x). See Fig. (a). For two springs in series (see Fig. (b)).

  What is the minimum budget to index all pages

What is the minimum budget to index all pages? If you assume that each query can be answered by looking at data in just one partition.

  What are two processes of conserving ip addresses

How are default subnet masks determined.What are two processes of conserving IP addresses? Explain these methods.

  Develop algorithm that allows you to replace a fair roulette

Develop an algorithm that allows you to replace a fair roulette wheel (with 37 pockets numbered from 0 to 36) by a balanced die.

  What is meant by a dual authentication level of security

Discuss what is meant by a dual authentication level of security. If you were planning a security system for a new hospital.

  Discuss how data mining is being used to solve a problem

Discuss how data mining is being used to solve a problem (or to explore an opportunity)?

  Write a main function that declares an array of 100 doubles

In a for loop, assign each of the doubles a random number between 0.50 and 50.00. Here's how. array[i] = (double) (rand() % 100 + 1) / 2.0;

  Construct e-r diagram for a car insurance company

Construct E-R diagram for a car insurance company whose customers own one car or more cars each. Each car with it zero to any number of recorded accidents.

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