Question: PLEASE USE C++ Instructions: complete the implementation of addMarkInfo, listMarkInfo, viewResults and view Reports function. Details specifications of input/output/control need to be applied by each

PLEASE USE C++

PLEASE USE C++ Instructions: complete the implementation of addMarkInfo, listMarkInfo, viewResults andview Reports function. Details specifications of input/output/control need to be applied byeach function are given in the next slide. Function: addMarkInfo 1. Adddata 2. List data 3. View results 4. View reports 5. Quitprogram Enter your choice [1 - 5]: 1 Student's name: Alice Repeatedly

Instructions: complete the implementation of addMarkInfo, listMarkInfo, viewResults and view Reports function. Details specifications of input/output/control need to be applied by each function are given in the next slide. Function: addMarkInfo 1. Add data 2. List data 3. View results 4. View reports 5. Quit program Enter your choice [1 - 5]: 1 Student's name: Alice Repeatedly asking users for valid input values of coursework and final exam marks Coursework (0-70): -1 Coursework (0-70): 48 Final Exam (-30): 31 Final Exam (-30): 22 1. Ada data 2. List data 3. View results 4. View reports 5. Quit program Immediately back to main menu after successful store student's name and marks information into names and marks array variables. Read the corresponding comment sections in the given source code for more details roles of these two variable arrays Enter your choice [1 - 5]: . Function: listMarkInfo 1. Add data 2. List data 3. View results 4. View reports 5. Quit program Enter your choice [1 - 5]: 2 The function should able to list all student's marks information currently stored by names and marks array variables No. Name Coursework Final Exam 1. Alice 12. i Hairul 3. James 4. Oliver 48 58 12 20 22 25 15 11 Press ENTER to continue... Use presEnter function to provide this control inside the list MarkInfo function Use formatName function to format student's names so they all have the same character size/length Function: view Results 1. Add data 2. List data 3. View results 4. View reports 5. Quit program The function should able to count and list student's total marks and grade by processing data accessed from names and marks array variables. Total marks is accumulated as: total marks = coursework + final exam Enter your choice [1 - 5]: 3 No. Name Total Marks Grade 1. 2. 3. 4. Alice Hairul James Oliver 70 83 27 31 B B LE E Press ENTER to continue... Use getGrade function to determine student's grade based on their total marks Function: view Reports 1. Add data 2. List data 3. View results 4. View reports 5. Quit program Enter your choice [1 - 5]: 4 Student's total marks report: This part of report is based on student's total marks Highest: 83 Lowest: 27 Average: 52.75 List of students (below average): No. Name Total Marks Grade 1. 2. James Oliver 27 31 You may reuse/call viewResults function inside viewReports function to provide this list of output E E Press ENTER to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!