Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C - Programming NOTE: This lab needs to be completed usin array. Usage of structure is not Write a following inputs: program to maintain student
C - Programming
NOTE: "This lab needs to be completed usin array. Usage of structure is not Write a following inputs: program to maintain student records. Your program should take the 1. Student first name (max. 20 characters) 2. Student last name, (max. 20characters) 3. Student scores (float/double), eg. 85.4 Your program should be able to take records of a minimum of 5 students and maximum of 15 students Aftler taking the records, you should provide 6 functionalities to the user. 1. Print records-prints records of all students 2. Search by first name-prints record of the student with a given first name. If there aremultiple students with the same first name, print 3. Search by last name- prints record of the student with a given last name. If there are multiple students with 4. Sort by score -sort the records of students according to their scores, and then print the sorted records. S. Sort by last name -sort the records of students according to their names alphabetically,and then print the sorted records. 6. Find Max score-prints record of the student with the maximum score. If there are multiple students with the same maximum records for all ofthem the same last name, print records for all ofthem print score, print records for all of them. Find Min score-prints record of the student with the minimum score. If there are multiple students with the same minimum score, print records for all of them. 8. Exit the program-terminate on a specific input from the user. Let that specific input bean inleger of value 0. You should print the record in the following format: First Name: firstname 1, Last Name: lastname 1, Score: score First Name: firstname 2, Last Name: lastname 2, Score: score 2 You should write each functionality from 1-7 in separate functions. You should provide a menu to the user as following Please indicate number of records you want to enter (min 5, max 15) lof records After user gives the number of records, you should inform the user how to enter the records: Please input records of students (enter a new line after each record), with following format first name last name score After user gives the inputs for the records, inform the user about the functonalite Print records (press ) Search by first name (press 2) Search by last name (press 3) Sont by score (press 4) Sont by last name (press S Find Max Score (press 6) Find Min Score (press 7 Exit the program (press 0) performs that and t provides this menu againo After user chooses functionality, your program select another functionality. This goes on until user presses 0
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