Please solve the question while adhering to the instructions and be a text so that I can copy it in C program

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please solve the question while adhering to the instructions and be a text so that I can copy it in C program

Post by answerhappygod »

Please solve the question while adhering to the instructions and be a text so that I can copy it in C program
Please Solve The Question While Adhering To The Instructions And Be A Text So That I Can Copy It In C Program 1
Please Solve The Question While Adhering To The Instructions And Be A Text So That I Can Copy It In C Program 1 (161.83 KiB) Viewed 55 times
Each student will have to build a student management system for adding, deleting, or searching for students in the department. Each student in the department will have a name (string), student id number (four digit integer), and an average (double). When the program starts, it will load existing student information from a text file and when the program exits, it will save all changes made while running the program to that same file. After the student information is loaded from the file (In this phase all you need to do is just print a message that the student information is loaded, but you don't really open any files or load anything), the program will display the following main menu to the user: Please Select an Operation (1-4): 1- Add a Student 2- Remove a Student 3- Search for a Student 4- Exit System This menu will keep showing after each time a user selects an operation and that operation is performed. When the user selects operation 4 (exit system), the program will load all changes (updates) to the file (In this phase all you need to do is just print a message that the student information is updated, but you don't really open any files or update anything) and will then exit. Your program should at least contain the following functions: void displayMain Menu(); // displays the main menu shown above void addStudent(); // adds information for a new student void removeStudent(); // removes information of old student void search For Student(); // searches for a student in the dept. void uploadDataFile(); // uploads student data from file void updateDataFile(); // saves student data updates to file For this phase those functions are just void functions that will mostly contain printf statements just to print what they are supposed to do. In later phases, the function prototypes will change and the functions will do more. For example: The addSudent() function will be as follows and so forth: void addStudent() { printf("Student info has been added\n"); } Items that should be turned in by each student: 1. A copy of your main.c file 2. An image of a complete run similar to the output shown on page 3. Make sure your program works very similar to the following sample run: Welcome to My Student Management System: Uploading data file ... Data File uploaded Please Select an Operation (1-4): 1 - Add a Student: 2- Remove a Student: 3- Search for a Student: 4 - Exit System: Student info has been added Please Select an Operation (1-4): 1- Add a Student: 2- Remove a Student: 3- Search for a Student: 4- Exit System: 2 Student info has been removed Please Select an Operation (1-4): 1- Add a Student: 2- Remove a Student: 3 - Search for a Student: 4- Exit System: Student has been searched for Please Select an Operation (1-4): 1- Add a Student: 2- Remove a Student: 3 - Search for a Student: 4 - Exit System:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply