Question: EECP1290: Computer Programming for Engineering-CLA#1 Write a program to calculate the K value using if else condition If P value is more than 9 then
EECP1290: Computer Programming for Engineering-CLA#1 Write a program to calculate the K value using if else condition If P value is more than 9 then K-M-VP+C If P value is less than or equal to 9 then K=M/2 +P+C Where is a constant with value 1.7 Sample output: Enter p value:16 Enter M value: 4 P.M and K values are:16.000000 4.000000 -0.300000 Sample output: Enter p value:9 Enter M value:4 ,M and K values are:9.000000 4.000000 6.700000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
