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

  Write down a public static method named chunk25

Write down a public static method named chunk25 that takes a double and returns an integer that represents the number of chunks of 25 in that number. A chunk of 25 is 25, or any part thereof

  Write a class called "deck" with the traits

Write a class called "Card" with the following traits: it holds 2 private variables, a suit and a value (ace is high). It has public functions that randomly generate and build the suit, value and print out the suit/value to the screen. Write a suit..

  Program to calculate area and perimeter of rectangle

Write down a program which asks for length L and the width W of a rectangle, then the computer perimeter and area of rectangle.

  Program to display a bouncing blue ball inside a jpanel

Write down a program to display a bouncing blue ball inside a JPanel. The ball should begin when the mouse is clicked inside the window. The ball will continue until the window is closed.

  Define between erp configuration and customization

How does this guide or limit the scope of an enterprise system implementation project.

  How to explain capacity of the queue

How to explain capacity of the queue

  Make a `show me'' button that displays the number

Write down a GUI program that is a game to be played by the user. A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user. The program must randomly select a number within r..

  What repetition control structure is used in java

How may easy to read or highly documented code become a security risk?

  Reverse polish notation

Transform the following numerical arithmetic expression into the reverse Polish notation and display the stack operations in order evaluate the numerical result.

  Java program that allows a user to enter three words

design a Java program that allows a user to enter three words, and displays the appropriate three-letter acronym (constructed from the input) in all uppercase letters. If user enters more than three words, ignore the extra words.

  Compute the file directory and fat entries

Using a text editor, create a file that is between 5,000 and 6,000 bytes long on a newly formatted floppy disk. compute the file directory and FAT entries for the type of disk used.

  Subnet mask and ip addresses

Which subnet mask would they utilize? How many IP addresses would they have per subnet?

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