The program below is to get the user to enter student matrix number, test1, test2 and final marks. The program then will total up the scores and determine the grade. However, the program given is not complete. Complete the program to get the total marks and determine the grade for the students. Follow the grade chart below: Marks Grade >= 80 A >= 60 В >= 50 >= 40 D < 40 F // declaration of variables do { printf("\nProgram to Calculate Student Grade"); printf ("\nInsert matrix no. of the student: "); scanf ("%ld",&matrix); printf ("\nInsert marks for Test 1 (total of 25): "); scanf ("%f", &scorel); printf ("\nInsert marks for Test 2 (total of 25): "); scanf ("%f",&score2); printf ("\nInsert marks for Final Exam (total of 50): "); scanf ("%f", &final); l/calculate total marks printf("\nTotal Marks: %5.2f",total); l/determine student grade if (total>= 80) .... printf("\nGrade is:%c ",grade); //asking for the next input printf ("\nDo you want to continue? "); } while (choice =='y'|| choice == 'Y'); printf("\nThank you");

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
PART II: PROBLEM SOLVING
1. The program below is to get the user to enter student matrix number, test1, test2 and final
marks. The program then will total up the scores and determine the grade. However, the
program given is not complete. Complete the program to get the total marks and
determine the grade for the students. Follow the grade chart below:
Marks
Grade
>= 80
A
>= 60
В
>= 50
C
>= 40
D
< 40
F
// declaration of variables
do
{
printf("\nProgram to Calculate Student Grade");
printf ("\nInsert matrix no. of the student: ");
scanf ("%ld",&matrix);
printf ("\nInsert marks for Test 1 (total of 25): ");
scanf ("%f",&score1);
printf ("\nInsert marks for Test 2 (total of 25): ");
scanf ("%f",&score2);
printf ("\nInsert marks for Fina1 Exam (total of 50): ");
scanf ("%f",&final);
l/calculate total marks
printf("\nTotal Marks: %5.2f",total);
//determine student grade
if (total>= 80)
printf("\nGrade is:%c ",grade);
//asking for the next input
printf ("\nDo you want to continue? ");
}while (choice =='y'|| choice == 'Y');
printf("\nThank you");
Tyne textl
Transcribed Image Text:PART II: PROBLEM SOLVING 1. The program below is to get the user to enter student matrix number, test1, test2 and final marks. The program then will total up the scores and determine the grade. However, the program given is not complete. Complete the program to get the total marks and determine the grade for the students. Follow the grade chart below: Marks Grade >= 80 A >= 60 В >= 50 C >= 40 D < 40 F // declaration of variables do { printf("\nProgram to Calculate Student Grade"); printf ("\nInsert matrix no. of the student: "); scanf ("%ld",&matrix); printf ("\nInsert marks for Test 1 (total of 25): "); scanf ("%f",&score1); printf ("\nInsert marks for Test 2 (total of 25): "); scanf ("%f",&score2); printf ("\nInsert marks for Fina1 Exam (total of 50): "); scanf ("%f",&final); l/calculate total marks printf("\nTotal Marks: %5.2f",total); //determine student grade if (total>= 80) printf("\nGrade is:%c ",grade); //asking for the next input printf ("\nDo you want to continue? "); }while (choice =='y'|| choice == 'Y'); printf("\nThank you"); Tyne textl
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY