Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please code in C language. Need it asap please Dr. Steinberg needs your help! He just finished assigning final letter grades in his Microcomputers Applications
Please code in C language. Need it asap please
Dr. Steinberg needs your help! He just finished assigning final letter grades in his Microcomputers Applications course and wants to know the grade distribution. Grade distribution is simply seeing the number of the students that were awarded with the respective letter grade. In his Microcomputers Applications class, Dr. Steinberg doesn't use the plus/minus system. That means the only letter grades are A, B, C, D, and F in the Microcomputer Applications course. The registrar site downloads all the letters as a txt file called grades. txt (already provided in Webcourses). Each line in the file contains a letter grade that was awarded. Write a user defined function called gradeDistribution that takes no parameters. The function opens the text file of letter grades and reads each one line by line. After reading all the grades, the program will display the distribution of each grade assigned. The text file that you will read from must be in the same directory as your C source file. You do not need to worry about invalid input and each letter will be on its own line. Here is the grade distribution. A: 109 B: 102 C: 88 D: 98 F:103 Figure 4: Sample output for problem 3
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