An iron rod is graded based on the following criteria: Magnetite content must be greater than 50 Calcium carbonate must be less than 0.7 Other adulterants must be greater than 5600 The grades are as follows: Grade is A if all three conditions are met. Grade is B if conditions (i) and (ii) are met Grade is C if conditions (ii) and (iii) are met Grade is D if conditions (i) and (iii) are met Grade is E if conditions only one condition is met Grade is F if none of the conditions are met. Write a program in which you ask user to enter the values of Magnetite, Calcium Carbonate and other adulterants. The output will be generated as per the conditions mentioned above. (Put the visible screen shots of the output with 2 to 4 different input variations)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 30PE
icon
Related questions
Question
  1. An iron rod is graded based on the following criteria:
    1. Magnetite content must be greater than 50
    2. Calcium carbonate must be less than 0.7
  • Other adulterants must be greater than 5600

The grades are as follows:

Grade is A if all three conditions are met.

Grade is B if conditions (i) and (ii) are met

Grade is C if conditions (ii) and (iii) are met

Grade is D if conditions (i) and (iii) are met

Grade is E if conditions only one condition is met

Grade is F if none of the conditions are met.

 

Write a program in which you ask user to enter the values of Magnetite, Calcium Carbonate and other adulterants. The output will be generated as per the conditions mentioned above.

(Put the visible screen shots of the output with 2 to 4 different input variations)

 

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Order Statistics
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole