Home /
Expert Answers /
Computer Science /
write-a-c-program-that-uses-structures-to-store-the-following-details-of-5-students-roll-number-pa292
(Solved):
Write a C++ program that uses structures to store the following details of 5 students: Roll number ...
Write a C++ program that uses structures to store the following details of 5 students: Roll number Name Marks 1233445 Pauline 89 1236445 Martha 100 1298445 David 58 1233345 Igor 38 1987645 Eugene 95 A student is considered to have passed if their marks are at least 60. Your program should have the following functions: A function called printPass that prints all the details of students who have passed. Calling the function should print the following correct output for the given list of students: Passed Student List Roll No. Name Marks 1233445 Pauline 89 1236445 Martha 100 1987645 Eugene 95 A function called updateFail that awards 5 more points to students who did not pass, and print the details of such students after the update. The output with the given list of students should look like this: Results of Update Roll No. Name Marks 1298445 63 43 1233345 David Igor 69 w w