write a c++ application to calcualte the grade of students based on three tests.
ID: 3657432 • Letter: W
Question
write a c++ application to calcualte the grade of students based on three tests. The application should have the menu to allow users can do the following tasks: 1. Read information and test scores of students 2. Display grades of students 3. Display the grade report. The format of output should be: Student name: Bill Jones Student ID: 123456 Test1: 88 Test2: 92 Test3: 78 Average: 85.67% Grade: B The application should allow users to continue using the program until they want to exit Hint: *Ask users how many students are there in class? Read this number as the size of the following arrays. To store the information of students, define: -array names to store names of students -array studentID to store the id of students -array tesst1 to store the scores of test1 -array tesst1 to store the scores of test2 -array tesst1 to store the scores of test3 Then use a for loop, ask users to type information from the keyboard then assign to elements of each arrays defined above, read name then assign to array names, read student id then assign to array studentID, etc. *To display the grade of students: Use the for loop, each iteration read information and test scores of one student, calculate and display. Write the result on oneline of the file GradeReport.txt as the following format: (for example) Bill Jones 123456 88 92 78 85.67% B Read information and test scores of next student in next element of arrays, continue to do so on. *Display the report: open file GradeReport.txt, read each line and display to screen , close file.Explanation / Answer
#include #include int main() { char grade; char stopcheck; coutgrade; //Begin Outer Do Loop 1 do { while (grade!='x') {//Begin While for grade check if (grade == 'a' || grade =='A') { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.