Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 1 : Strcucture and Array Dcescription: In C + + Write a program that provides a way for you to search and display information
Project : Strcucture and Array Dcescription: In C
Write a program that provides a way for you to search and display information of all the students in a class. Student records including a class ID c# name of the student, and scores of multiple categories are saved in the file grades.dat. Your program should:
First, read all student information from the text file and store them in an array.
Then display information of all the students in table format.Here is the information of the students:
Prompt user to input a valid c# and the program display all the information of the
student with the given c#when invalid c# is entered, continue to prompt until a valid c#
is entered
Sort all the students by name, and display information of all the students in table format.
Requirements
You are required to:
declare a structure StudentType to hold all information of a student, such as c# name and
all scores.
declare a local variable roster in main function as an array of Student structure. This
array will hold information of all students.
declare and implement the follos.wing functions:
o a function to read from the text file
o a function to print information of all the students in table form
o a function to print information of one student, with label for each data o a function to check whether a class ID is valid
o a function to sort all students by name
Function prototypes should be udsed for all user defined functions.
Global variables are not allowed
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