Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions 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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY