Write program that performs following two tasks: 1. Ask a user to enter a score between 0 and 100 and your program shows the letter grade based on the score user entered. A: 90 - 100.   B: 80 -89.  C: 70 - 79.  D: 60 - 69.  F: 0 - 59

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.1: Function And Parameter Declarations
Problem 8E: (Numerical) a. Write a C++ program that accepts an integer argument and determines whether the...
icon
Related questions
Question

*Using Selection Statements* C++

Write program that performs following two tasks:

1. Ask a user to enter a score between 0 and 100 and your program shows the letter grade based on the score user entered.

A: 90 - 100.   B: 80 -89.  C: 70 - 79.  D: 60 - 69.  F: 0 - 59

2. Ask a user to enter 6 integers and save them in 6 different variables. Re-arrange the values of the variables in ascending order.

Expert Solution
Explanation

Note - As per our guidelines we are supposed to answer only one question. Kindly repost other questions as separate questions.

Here I have first of all asked the user to enter the number.

Then I have used the if-else block to find the correct range of numbers and assigned the grade accordingly.

At last, I have printed the grade as the output.  

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr