subject

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. 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. 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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Which of the following is a difference between the systems development life cycle (sdlc) and extreme programming (xp)? the sdlc model has a separate planning and analysis phase, whereas xp combines both the phases into one phase.in the sdlc model, changes cannot be made to a system once it is delivered to the user, whereas the xp method delivers the system to the users and then make changes suggested by the user.the sdlc model develops an entire system at once, whereas xp uses incremental steps to improve an information system's qualitydevelopers following the sdlc model cannot go on to the next phase until the current phase is finished, whereas in xp, developers can move to any phase from the current phase.
Answers: 1
You know the right answer?
Write a program that reads students’ names followed by their test scores. the program should output...
Questions
question
Mathematics, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Biology, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
question
Mathematics, 18.03.2021 01:30
Questions on the website: 13722367