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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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