Question: Write a complete program ( all header files, variable declarations, etc ) that performs the following tasks: 1 ) Prompt the user for an integer,

Write a complete program (all header files, variable declarations, etc) that performs
the following tasks:
1) Prompt the user for an integer,
2) Input the response to the integer variable num1,
3) Prompt the user for a a second integer,
4) Input the response to the integer variable num2,
5) Divide num1 by num2 and store the result in the float variable calc,
6) Output the value of calc to the screen with two decimal places of precision.
Be careful of integer division

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!