Write C++ code to handle the following tasks. Every course offered in university has credit hours. Assuming that course can have either 3 credit hours or 4 credit hours. Grade of student depends on credit hours of course and marks obtained. You are supposed to input credit hours of course and marks obtained in course. Print grade according to given detail. Can you handle 6 credit hours course based on the data given, write code for 6 credit hours course also. If credit hour of course is 4 If credit hour of course is 3 ·         Grade is A if points are greater than or equal to 64 ·         Grade is B if points are greater than or equal to 52 and less than 64 ·         Grade is C if points are greater than or equal to 40 and less than 52 ·         Grade is D if points are greater than or equal to 32 and less than 40 ·         Otherwise grade is F   ·         Grade is A if points are greater than or equal to 48 ·         Grade is B if points are greater than or equal to 39 and less than 48 ·         Grade is C if points are greater than or equal to 30 and less than 39 ·         Grade is D if points are greater than or equal to 24 and less than 30 ·         Otherwise grade is F

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write C++ code to handle the following tasks. Every course offered in university has credit hours. Assuming that course can have either 3 credit hours or 4 credit hours. Grade of student depends on credit hours of course and marks obtained. You are supposed to input credit hours of course and marks obtained in course. Print grade according to given detail. Can you handle 6 credit hours course based on the data given, write code for 6 credit hours course also.

If credit hour of course is 4

If credit hour of course is 3

·         Grade is A if points are greater than or equal to 64

·         Grade is B if points are greater than or equal to 52 and less than 64

·         Grade is C if points are greater than or equal to 40 and less than 52

·         Grade is D if points are greater than or equal to 32 and less than 40

·         Otherwise grade is F

 

·         Grade is A if points are greater than or equal to 48

·         Grade is B if points are greater than or equal to 39 and less than 48

·         Grade is C if points are greater than or equal to 30 and less than 39

·         Grade is D if points are greater than or equal to 24 and less than 30

·         Otherwise grade is F

 

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education