PROGRAMMING ASSIGNMENT #2 Write a C program that calculates and prints the average of 2 grades entered by the user for 3 students, and then the overall average for all grades. The program should...

1 answer below »
PROGRAMMING ASSIGNMENT #2 Write a C program that calculates and prints the average of 2 grades entered by the user for 3 students, and then the overall average for all grades. The program should prompt the user for each grade for each student, and give each student average as shown in the sample run below. Once all values are entered, the program should calculate and print the average of all of grades entered, rounded to the nearest whole number. The dialog with the user should be as follows: Welcome to the Sears Grade Calculator This program calculates the average of 2 grades for 3 students. Enter grade #1 for student #1: 100 Enter grade #2 for student #1: 80 The average for student #1 is 90. Enter grade #1 for student #2: 90 Enter grade #2 for student #2: 75 The average for student #2 is 83. Enter grade #1 for student #3: 60 Enter grade #2 for student #3: 70 The average for student #3 is 65. The overall average for the 3 students is 79 Have a great day! The blue text represents the "output" from your program and is shown for clarity only here. Also note that what the user enters is indicated by the bold black entries above; Again, for clarity only. You should change the opening welcome statement and the closing statement to your own personal messages. Failure to this will be a deduction. The rest of the program should be exactly as shown in the sample run – including spacing. Hints: • This program requires variables of type int and float. • Use printf and scanf statements to first prompt the user for the grades to be processed for each student. • This program requires loop structure(s) (for, while or do -- your choice). There are a number of ways to do this, I suggest a nested pair of for loops, which I demonstrated in the chats and posted the example in discussion. • The program requires accumulators to keep track of the sum of gradesentered. • No data values should be “hard-coded” into the printf statements.
Answered Same DaySep 25, 2021

Answer To: PROGRAMMING ASSIGNMENT #2 Write a C program that calculates and prints the average of 2 grades...

Mohd answered on Sep 27 2021
158 Votes
complete Solution/Grade Calculator/bin/Debug/Grade Calculator.exe
complete Solution/Grade Calculato
r/Grade Calculator.cbp
    
    
        
        
        
        
            
                
                
                
                
                
                    
                
            
            
                
                
                
                
                
                    
                
                
                    
                
            
        
        
            
        
        
            
        
        
            
        
    
complete Solution/Grade Calculator/Grade Calculator.depend# depslib dependency file v1.0
1601234274...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here