Answered step by step
Verified Expert Solution
Link Copied!

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 300
records:
1.3 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
2.4]
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
user-input 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
highest).[Please use the algorithm to sort an array given in Section 2.5]
Write report to file: Prepare a detailed Report as per 2.2.1 below and write to a file
named "summary.txt"
Exit program.
G. Repeat step B until the user enters "Q" or "q". After each command is.srocessed in step B,
(except menu 6) program must display the menu options again.
H. Note that if option 4 or 5 ischosen before option 3, a message should be displayed instructing the
user to invoke option 3 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.
1.3.1 Details of Output File ("summary.txt")
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.
1.3.2 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++
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

Why We Listen?

Answered: 1 week ago