Question: write a C program that manages students records. A student can be described by the following fields: Student ID Student last name Student last name
write a C program that manages students records. A student can be described by the following fields:
Student ID
Student last name
Student last name
Grade
Major
You need to use hierarchical structure to implement the structure of a student. Crate a structure, called name for example, that declares first name and last name.
Here are the input records for your programs: 1. 1001 Clock Explosion A CS
2. 1002 Van Gogh C EE 3. 1003 Paul Michelangelo B Stat 4. 1004 Salvador Dali D Eco 5. 1005 William Joe B Eco 6. 1006 Mary Raphael C Math 7. 1007 John Scher A Mec 8. 1008 Rahul Patel B Eco 9. 1009 Claude Monet C CS 10. 1010 Gustav Klimt A CS
You program should store these records in an array of size 10. It should also implement the following:
a) A function that prints the fields of a student. b) A function that prints all students using the function in a) c) List all the students who are in CS department.
d) List all the students who are in Eco. e) Ask the user for a letter grade and list all the students who have that grade. f) Ask a use for a student ID and list all the information for that student.
Test Cases:
- Input a letter grade: A
- Input a letter grade: Z
- Input a student ID 1001
- Input a student ID 9999
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
