Question: use the following Conditional Statements: if statement if statement if-else statement if-else-if statement Nested if statement Switch statement 1. Ask the user to enter a
- use the following Conditional Statements:
if statement
if statement
if-else statement
if-else-if statement
Nested if statement
Switch statement
1.
Ask the user to enter a number, determine if the number is greater than 50. Display The number is greater than 50 otherwise display, The number is less than 50.
2.
Display the equivalent description of the letter grade. Refer to the table below.
Code Description
A Excellent
B Satisfactory
C Good
Required output:
Enter a letter (A/B/C) : ____A
Description: Excellent
3.
Compute the total quiz and average quiz of three (3) scores. Determine if the average score is greater than or equal to 70, if TRUE , display Remarks is PASSED otherwise display FAILED.
Required Output:
Quiz 1: ___
Quiz 2: ___
Quiz 3: ___
Total Quiz : ?
Average Quiz : ?
Remarks : ?
C++ course
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
