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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started