Give the highest test score and the name of the students

Assignment Help Computer Engineering
Reference no: EM1334485

I need a C++ 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 the type studentType, which has four components: studentFName and studentLName of the type string, testScore of the type int (testScore is between 0 and 100), and grade of the type char. My class has 20 students. Use an array of 20 components of the type studentType.

The program must contain at least the following functions:
a.) A function to read the students' data into the array.
b.) A function to assign the relevant grade to each student.
c.) A function to find the highest test score.
d.) A function to print the names of the students having the highest test score.

The 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, and the name must be leftjustified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls.

In addition I need to output the execution result to a file say a possibility could be (C:Prorgram FilesMicrosoft Visual StudioVC8> and I also need to be able output the result to the screen and capture the screen shot of the execution result.

Reference no: EM1334485

Questions Cloud

Make a list of files that are world-writable : make a crontab to perform the tasks listed below at the frequencies specified. Note that you do NOT need to write the actual scripts.
Hr evaluation for kudler foods : Show how the compensation of each job aligns with the new strategy and will enhance performance
Illustrate what special problems are faced by eastern europe : Illustrate what special problems are faced by eastern european economies as they make the transition from central planning to competitive markets.
Domestic internal scale economies : Why do you think that if an industry were operating under conditions of domestic internal scale economies.
Give the highest test score and the name of the students : I need a C++ 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 too find out and print the highest test score and the name o..
Describe a signaling pathway deregulated in cancer : Describe a signaling pathway deregulated in cancer that involves pRb and p53 as players.  Have any advancements been made in the understanding of these pathways since the provided review was written?
The primary goal of a corporation : The primary goal of a corporation is to maximize shareholder value.
Illustrate what is the biggest economic concern for argentin : Illustrate what is the biggest economic concern for Argentina, like unemployment or population.
Strategic decisions : Why are strategic decisions different from other types of decisions?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Use a wep enabled phone to perform stock trades

will you utilize a WEP enabled phone to perform stock trades? Why or why not?

  How to allocate for the management reserve

How much would you allocate for the management reserve? What are your assumptions about these reserves.

  Give an the output of program

What is an output of this Java program.

  Using a while structure for designing pseudocode

By using a WHILE structure for designing the pseudocode in order to prepare a monthly report for the legal clinic.

  Make a swing applet with a jbutton labeled

build a Swing applet with a JButton labeled "Who's number one?." When user clicks the button, display your favorite sport team in a large font (Use Houston Rockets for the sports team). Please save the file to JNumberOne.java

  Developing the flowchart using visual logic

Develop a flowchart by using the Visual Logic for a program which accepts a candy name.

  Which language would be more appropriate

The vehicle registration department for the State of Florida is becoming decentralized. Each county would now handle its own registration process and will issue its own license plates

  Determining output of program

Explain the output if input is diamond? State the output if input is diamond gold?

  Evaluates and contrast tcp and ud

Describe the need for the Transport Layer. Recognize the role of the Transport Layer as it provides the end to end transfer of data between applications.

  Define the main function that repeatedly calls the motion

A control system applies a force to an actuator proportional to the voltage of a signal coming into the control system. It is desired not to allow actuator to quiver back and forth in the presence of small corrections near zero-force point.

  Protecting the operating systems

Explain the relative benefit and de-merits of at least three different measures that are used in order to protect the operating systems.

  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?

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