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++ 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.
Step by step
Solved in 3 steps with 9 images