Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: write a program that converts a numeric grade into a letter grade.!!!! C language !!! What to do? Write a C program converter that

Objective: write a program that converts a numeric grade into a letter grade.!!!! C language !!!

What to do?

  • Write a C program converter that prompts the user to enter an integer:
Please enter a numeric grade: 
  • converter interprets the entered value as a numeric grade on a 0-100 point scale and converts it into a letter grade as follows:
    • [100..90] is an A;
    • (90..80] is a B;
    • (80..70] is a C;
    • (70..60] is a D;
    • (60..0] is an F;
    • all other values are invalid.
  • converter will print out valid results that should look like this:
Please enter an numeric grade: 75 Your grade is a C. 
  • converter will produce an error message in response to invalid entries:
Please enter an numeric grade: 190 You entered an invalid value. 
Please enter an numeric grade: abc Your input could not be interpreted as an integer value. 
  • Use the following input as test cases to verify the correctness of your code: 95, 83, 77, 64, 49, 195, -12, abc.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

explain how to project financing needs using break-even analysis

Answered: 1 week ago

Question

What was the last thing you recorded on TV?

Answered: 1 week ago

Question

Explain the different types of marketing strategies.

Answered: 1 week ago