1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hammer [34]
3 years ago
9

The variable grade can have any real number value from 0 to 100. Ask the user to enter a grade in numerical form. Write an if-el

seif-else statement that displays the letter grade (any format) corresponding to a numerical grade in an appropriately formatted output statement. Use the standard 10-point grading scale:  a: A: 90 ≤ grade  a: B: 80 ≤ grade < 90  a: C: 70 ≤ grade < 80  a: D: 60 ≤ grade < 70  a: F: grade < 60
Computers and Technology
1 answer:
Alborosie3 years ago
8 0

Answer:

See explaination

Explanation:

#include <iostream>

using namespace std;

int main()

{

float marks;

cout<<"Enter your grade value :";

cin>>marks;

if(marks>=90)

cout<<"Your grade is 'A'";

else if(marks>=80&& marks<90)

cout<<"Your grade is 'B'";

else if(marks>=70&& marks <=80)

cout<<"Your grade is 'C'";

else if(marks>=60&& marks <70)

cout<<"Your grade is 'D'";

else

cout<<"Your grade is 'F'";

}

You might be interested in
IN PYTHON LANGUAGE
shtirl [24]

favorite_color = input("Enter favorite color:\n")

pet = input("Enter pet's name:\n")

num = input("Enter a number:\n")

print("You entered: "+favorite_color+" "+pet+" "+num)

password1 = favorite_color+"_"+pet

password2 = num+favorite_color+num

print("First password: "+password1)

print("Second password: "+password2)

print("Number of characters in "+password1+": "+str(len(password1)))

print("Number of characters in "+password2+": "+str(len(password2)))

This works for me.

8 0
3 years ago
Read 2 more answers
Which of the following restricts the ability for individuals to reveal information present in some part of the database?
Anni [7]

Answer:

it would have to be flow control which would be C.

Explanation:

8 0
3 years ago
Explain how to uninstall a program.
yawa3891 [41]

GOOGLE IT.... THERE ARE ALOT OF STEPS...

3 0
3 years ago
Read 2 more answers
Servers that manage only one type of resource are called ____ servers.
Nataly [62]

Answer: Motherboard i tuink

Explanation:

3 0
3 years ago
When the user presses enter in a jpasswordfield, the gui component generates an ________, which is processed by an object that i
stellarik [79]

Answer:

When the user presses enter in a jpasswordfield, the gui component generates an ActionEvent, ActionListener, which is processed by an object that implements the interface.

6 0
1 year ago
Other questions:
  • The fast food restaurant Chipotle pulled its app from Apple's app store when customer demand caused the firm's servers to crash.
    14·1 answer
  • I plugged my phone up into a charger, the charger sparked and i unplugged my phone and now it wont charge at all, does anyone kn
    13·1 answer
  • A name given to a spot in memory is called:
    5·1 answer
  • Is frequency measured in henry.
    14·1 answer
  • How do I turn of the noise canceling feature on my beats studio wireless?
    13·1 answer
  • When summarizing graphs of categorical​ data, report the​ _______ and describe the​ _______?
    11·1 answer
  • How do you enter the command prompt on Chromebook
    10·1 answer
  • Create and apply a CSS class named YellowBackground that selects a yellow background. Apply the class to your HTML file’s body t
    8·1 answer
  • What is the output of the following code segment?
    11·1 answer
  • When writing a function or a formula in a spreadsheet,what is the first u should do​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!