Menu

[solved]-Write Program Reads Students Names Followed Test Scores Program Output Student S Name Foll Q39053655

Write a program that reads students’ names followed by theirtest scores. The program should output each student’s name followedby the test scores and the relevant grade. It should also find andprint the highest test score and the name of the students havingthe highest test score. Student data should be stored in a structvariable 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. Supposethat the class has 20 students. Use an array of 20 components oftype studentType. Your program must contain at least the followingfunctions: A function to read the students’ data into the array. Afunction to assign the relevant grade to each student. A functionto find the highest test score. A function to print the names ofthe students having the highest test score. Your program mustoutput each student’s name in this form: last name followed by acomma, followed by a space, followed by the first name; the namemust be left justified. Moreover, other than declaring thevariables and opening the input and output files, the function mainshould only be a collection of function calls. Your program shouldaccept no input and save the output to Ch9_Ex2Out.txt.

Expert Answer


Answer to Write a program that reads students’ names followed by their test scores. The program should output each student’s n… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *