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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section: Chapter Questions
Problem 7PP
icon
Related questions
Question
100%

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.

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
Transcribed Image Text: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
Expert Solution
steps

Step by step

Solved in 3 steps with 9 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage