Use C programming Language. Don’t use MYSQL, Local hosted, Xaam…. Use C programming Language. Don’t use MYSQL, Local hosted, Xaam.Use normal way. Student Grades Database ApplicationWrite a program that creates a file on students to keep track of student names and grade information for a school. Each record in the file will be written according to the structure listed below. The program will use the following menu interface:(A)dd a Student(C)change a Student’s Grade(L)ist All Students(E)ndThe record structure looks like this:Field DescriptionTypeSizeCommentsStudentNumberint Unique identification for the studentNamechar100Student’s first and last nameGradedouble Student’s gradeEach menu option performs the following actions (note, the program should accept upper or lower case letters for the menu items):(A)dd a New StudentThis option writes a new record of student information.This option must ensure that the grade is in the range 0 through 100 inclusive(C)change a Student’s GradeThis option must prompt the user for which student’s information they wish to change by asking for the student’s student number. The program must then search for this student’s student number. If the student cannot be found, an error message should be printed.The user is then prompted if they want to change the grade and, if so, the user is then prompted for the new grade.The program must ensure that grade is in the range 0 through 100 inclusive.Once the new grade has been specified, the new grade must replace the old grade.(L)ist All StudentsThis option should generate a list of all of the students. The grade should be formatted as a percentage value with 1 decimal place and the grades should be right-aligned.The report should use the following format:Student NameStudent NumberGradeXXXXXXXXXXXXXXXXXXXXXXXXX999.9%XXXXXXXXXXXXXXXXXXXXXXXXX999.9%XXXXXXXXXXXXXXXXXXXXXXXXX999.9%XXXXXXXXXXXXXXXXXXXXXXXXX999.9%The application is to be developed in three stages as described below. You should complete each stage by its specified due date specified in your dropbox. Stage 1Define a structure to contain the required student information. Place the structure definition in a file named student. h. Include a header file guard in the header file. As you continue through this stage and the next two stages of the project, add any declarations you deem appropriate to this header file.Create the menu part of the program for the menu actions (add, list).Your main should be in a file called student. c.Create an array of structures (make 500 elements but use a symbolic constant to specify the size) as a local variable in the main to contain the student information. You will also need to keep a local variable with a count of the number of students in the array (this count should be initialized to 0).When the user selects (A)dd from the menu, the program should call a function named CreateStudent which has no parameters and returns a value of the student structure type (filled with the student information entered by the user). Then the program should add the new content to the structure array and increment the count for the number of students. You can assume that the user will always enter a unique student number (that is, you do not need to check that the student number is unique).The CreateStudent function should be created in a file called studentutils. c. In the CreateStudent function, the user is to be prompted for all of the student’s information (Student Number, Name, Grade), and then insert the information into a student structure and then return it (the return value for the function). Note that the student’s name may contain both a first name and the last name. Don’t forget to check that the grade is in the range 0 through 100 inclusive and if not, you must display an error and prompt the user again for the grade until the user enters a valid grade.When the user selects (L)ist from the menu, the program will display information for all of the students in the array. The output should line up into columns as shown above.When the user selects (E)aand from the menu, the program will exit the menu loop and end the program.Submit the student. c. student tips. c. and student.h files by the due date specified in your dropbox.This stage is worth 40% of your project mark.Stage 2Create the menu part of the program for the menu action (change).When the user selects (C)change from the menu, the user is to be prompted for the student number of the student they want to change. The program then searches for that student using a simple linear search. The program should then call a function named ChangeStudentGrade which takes a pointer to a student structure as a parameter and returns nothing (void). If the student number is not found, a message stating that should appear and the program should return to the main menu.The ChangeStudentGrade function takes a pointer to a student structure as a parameter and returns nothing (void). The function should display the current grade and ask the user if they would like to change the grade. If the user indicates that they would like to change the grade, the function will prompt for the new grade and update the structure. Don’t forget to check that the grade is in the range 0 through 100 inclusive and if not, you must display an error and prompt the user again for the grade until the user enters a valid grade. The ChangeStudentGrade function should be in a file named studentutils. c.Submit updated source files by the due date specified in your dropbox.This stage is worth 30% of your project mark. Stage 3When the user selects (E)and, the program should write the contents of the structure array to a file. The saving should be done from a function named WriteStudents. When the program begins, it should initialize the structure array by reading student information from a file. The reading should be done from a function named ReadStudents. Don’t forget to also update the student count variable with the number of students read from the file.The WriteStudents function has no return value (void) and takes 2 parameters: An array of student structures and the number of students in the array. The function opens the file STUDENT.DAT for writing (output). Use binary file access. If the file already exists, the file is to be overwritten. The function first writes the number of students to the file as a binary int value. Then, for whatever the count of the number of students is, the function writes that number of students from the student structure array to the binary file. Do not write the entire array of structures since it is 500 elements long; only write the number of students indicated by the count. Note that all of the elements of the structure array that contain student information can be written to the binary file at one time. The function should be in a file named studentutils.cThe ReadStudents function takes 1 parameter: An array of student structures. The function returns an int value indicating the number of students that were read from the file. The function opens the file STUDENT.DAT for reading (input). Use binary file access. If the file does not exist (the first time the program is run, the file STUDENT.DAT will not exist), the function simply returns 0 to indicate no students were read from the file. If the file opens successfully, the function first reads a binary int value representing the number of students in the file. Then the program reads that number of students from the file into successive elements of the student structure array. Note that all of the students in the file can be read into successive elements of the array at one time. After reading, the function returns the int value representing the number of students in the file. The function should be in a file named studentutils. c.Submit the updated source files by the due date specified in your dropbox.This stage is worth 30% of your project mark. For Stage one 3 filesStage two 1 fileStage three 1 file Total 5 filesEngineering & Technology Computer Science PRG 255
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more