Question
Write a complete c program that ask users to enter four students name and their exam score for midterm 1, midterm 2, and final. Then
Write a complete c program that ask users to enter four students name and their exam score for midterm 1, midterm 2, and final.
Then your program: First, store this information in a text file name "student_data" and print the information's.
Then, you program will read the information from the file that your program just created, and calculate the average of the three exams for each student.
Finally, your program will print exam average for each student. Note: Your program will create a text file, so you must include the source code (.c file), and the text file along with your submission.
Inputs and outputs format:
Enter student1 name and three exam score: Sam 87 95 78.6
Enter student2 name and three exam score: Sara 83.5 88 93.8
Enter student3 name and three exam score: Alex 78.2 82 87
Enter student4 name and three exam score: Robert 65 74.2 77
Sam exam scores = 87.00, 95.00, 78.60
Sara exam scores = 83.50, 88.00, 93.80
Alex exam scores = 78.20, 82.00, 87.00
Robert exam scores = 65.00, 74.20, 77.00
Sam exam average = 86.87
Sara exam average = 88.43
Alex exam average = 82.40
Robert exam average = 72.07
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