Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C program to do the following tasks: 1) Create a text file students.txt, contains information about an unknown number of students in 230
Write a C program to do the following tasks: 1) Create a text file students.txt, contains information about an unknown number of students in 230 class as follow: Each line contains: student-number , accumulative average so far , total credits taken, average this semester , credits registered this semester. 2) Let the program reads from the file students.txt and computes the final accumulative average for each student as follow: Final accumulative average = ( ( accumulative average so far * total credits taken ) + (average this semester credits registered this semester ) ) / ( total credits taken + credits registered this semester ) 3) Write a function calculate that. receives student-number, accumulative average so far, total credits taken, average this semester, credits registered this semester and returns the final accumulative average 4) Display on another text file result.txt the result as shown below: 5) The program should display also the number of students who received an honor (Accumulative Average >=85 ) and the number of students whose Accumulative Average
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