QI Write a program which input examination marks and test it for the award of a grade. The marks are a whole number between 1 and 100. Grades are awarded according to the following criteria: i. >= 80 Distinction ii. >= 60 Merit iii. >= 40 Pass iv. < 40 fail (Hint: using logical operators) Needed C++ code B) Write a pseudo code for a program which will accept two numbers from the keyboard and calculate the sum and product displaying the answer on the monitor screen.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter2: Basic Elements Of C++
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
Please solve it ASAP!
Q1 Write a program which input examination marks and
test it for the award of a grade. The marks are a whole
number between 1 and 100. Grades are awarded
according to the following criteria:
i. >= 80 Distinction
ii. >= 60 Merit
iii. >= 40 Pass
iv. < 40 fail
(Hint: using
logical operators)
Needed C++ code
B) Write a pseudo code for a program which will
accept two numbers from the keyboard and
calculate the sum and product displaying the
answer on the monitor screen.
Transcribed Image Text:Q1 Write a program which input examination marks and test it for the award of a grade. The marks are a whole number between 1 and 100. Grades are awarded according to the following criteria: i. >= 80 Distinction ii. >= 60 Merit iii. >= 40 Pass iv. < 40 fail (Hint: using logical operators) Needed C++ code B) Write a pseudo code for a program which will accept two numbers from the keyboard and calculate the sum and product displaying the answer on the monitor screen.
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage