Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem Statement You are tasked with writing a program to process student marks for multiple subjects. The input file studentmarks.txt contains student names followed by
Problem Statement
You are tasked with writing a program to process student marks for multiple subjects. The input file
studentmarks.txt contains student names followed by their marks for Math, Science, and English.
Input File:
The input file called studentmarks.txt contains a list of records of students and their marks for
three subjects. Each record is on a single line and the fields are separated by spaces. The
names of the fields are:
Student ID
Student Name
Math Marks
Science Marks
English Marks
An example record may have the following form but the file can have a maximum of
records:
Program Specifications:
E Read the input file and store the data in appropriate arrays.
F Program should provide user with the following menu sample start menu is provided in Section
Print the entire list: Print the provided names and marks of all students as per input file.
Print details of student matching a provided ID number: Search for student by the
userinput ID # and print their details as provided in the input file.
Calculate total and display entire List with total: Calculate the total marks of the three
subjects of each studentand storeitionaparrax and display with other details.
Print list sorted by total: Print the list of students sorted by their total mark lowest to
highestPlease use the algorithm to sort an array given in Section
Write report to file: Prepare a detailed Report as per below and write to a file
named "summary.txt
Exit program.
G Repeat step B until the user enters or After each command issrocessed in step B
except menu program must display the menu options again.
H Note that if option or ischosen before option a message should be displayed instructing the
user to invoke option first to calculate the Total Marks before storing or displaying them.
Note: a sample input file "studentmarks.txt isproxided. The number of records for the input files to
test your code could differ.
Details of Output File summarytxt
Output in File should have:
the names and marks of students including the total marks of the three subjects
The output iscranked according to total marks.
the class average mark for each subject.
the average of total mark.
the highest and lowest marks for the overall total marks, including corresponding student
details.
Note: The format, organization, readability and neatness of display on file or screen will
carry marks.
Use of Functions in Assignment
It is necessary that you implement this assignment using functions. To obtain the maximum score you
must demonstrate some ability to create and use functions of your own. For example, you may consider
creating and using the following functions in your program:
In all your program constructs you must write comments where necessary. give coding from Dev c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started