Q15 A certain grade of steel is graded according to the following conditions: (i) Hardness must be greater than 50 (ii) Carbon content must be less than 0.7 (iii) Tensile strength must be greater than 5600 The grades are as follows: Grade is 10 if all three conditions are met Grade is 9 if conditions (i) and (ii) are met Grade is 8 if conditions (ii) and (iii) are met Grade is 7 if conditions (i) and (iii) are met Grade is 6 if and only one conditions is met Grade is 5 is none of the conditions are met Write a program, which will require the user to give value of hardness, carbon content and tensile strength of the steel under consideration and output the grade of the steel.

Program: 83 A certain grade of steel is graded according to the following conditions: Hardness must be greater than 50

Read more

Q14 Any character is entered through the keyboard, write a program to determine whether the character entered is a capital letter, a small case letter, a digit or a special symbol. The Following table shows the range of ASCII values for various characters.

Program: 82 Any character is entered through the keyboard, write a program to determine whether the character entered is a

Read more