A c++ program is needed to store and manage the records of all the students in a particular class. Each record should consist of the student’s name, ID consists of program code and student number, 5 coursework marks, and an examination mark. Write a c++ program that creates an array of struct to keep 10 student’s records. Your program should allow user to input data and store them into a file. The program then reads from the file to calculate the final mark for every student, and display the student’s name, id, and final mark in a tabular format. The final mark is calculated as 60% from the average coursework marks (not including the lowest) and 40% from the examination mark. The output is also stored into a file. Use functions to calculate the final mark for a student and to display all the students’ information. Identify the suitable parameters and return value for each function.
A c++
Write a c++ program that creates an array of struct to keep 10 student’s records. Your program should allow user to input data and store them into a file. The program then reads from the file to calculate the final mark for every student, and display the student’s name, id, and final mark in a tabular format. The final mark is calculated as 60% from the average coursework marks (not including the lowest) and 40% from the examination mark. The output is also stored into a file.
Use functions to calculate the final mark for a student and to display all the students’ information. Identify the suitable parameters and return value for each function.
![The following shows example input/output for the program:
Data for student 1:
Name: Ali Baba
ID: Al1111
Coursework Marks
Mark 1: 67.00
Mark 2: 78.00
Mark 3: 50.00
Mark 4: 99.00
Mark 5: 73.00
Exam Mark: 79.25
Data for student 2:
Data for student 3:
Student ID
Student Name
Final Marks
IT11111
Ali Baba
79.25
IT11212
Robin Hood
71.16](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Ff16b1dd5-a426-4456-b57b-6897f736ae2f%2F7029ec5d-7397-4505-8036-8134e37596ee%2F5dumds_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 9 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)