Write a program that calculates your grade in this class based on weights for each category and determines the letter grade. The categories and weights have been established as: Reading Assignments (10%) Lab Assignments (20%) Lab Practicums (45%) Quizzes (5%) Midterm Exam (5%) Final Exam (15%) After you calculate the course grade, use conditionals with the following ranges to determine the letter grade: A (93 - 100) A- (90 - 92.9) B+ (87 - 89.9) B (83 - 86.9) B- (80 - 82.9) C+ (77 - 79.9) C (73 - 76.9) If the grade is below 73%, display the text "You did not pass this semester." The code should interact as follows: GRADE ENTRY Enter your reading total (%): 82 Enter your lab total (%): 73 Enter your lab practicum total (%): 75 Enter your quizzes total (%): 92 Enter your midterm total (%): 86 Enter your final exam total (%): 88 RESULTS Your final course grade is: 78.65% You received a C+ for the semester.

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

C CODE

3.25 Lab: Grade Calculator

 

Write a program that calculates your grade in this class based on weights for each category and determines the letter grade. The categories and weights have been established as:

  • Reading Assignments (10%)
  • Lab Assignments (20%)
  • Lab Practicums (45%)
  • Quizzes (5%)
  • Midterm Exam (5%)
  • Final Exam (15%)

After you calculate the course grade, use conditionals with the following ranges to determine the letter grade:

  • A (93 - 100)
  • A- (90 - 92.9)
  • B+ (87 - 89.9)
  • B (83 - 86.9)
  • B- (80 - 82.9)
  • C+ (77 - 79.9)
  • C (73 - 76.9)

If the grade is below 73%, display the text "You did not pass this semester."

The code should interact as follows:

GRADE ENTRY Enter your reading total (%): 82 Enter your lab total (%): 73 Enter your lab practicum total (%): 75 Enter your quizzes total (%): 92 Enter your midterm total (%): 86 Enter your final exam total (%): 88 RESULTS Your final course grade is: 78.65% You received a C+ for the semester.

NOTE: In the grade entry section, the numbers are typed in by the user and should not be printed by the program.

NOTE: A datatype of double should be used for all variables.

NOTE: Display final grade using two digits after the decimal.

 

C CODE

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 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