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...



  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)




Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here