Question: This is C++ Find the compile errors in the following program and fix them.Hint: Dont forget the return 0; statement.2.Properly format the code to be

This is C++

Find the compile errors in the following program and fix them.Hint: Dont forget the return 0; statement.2.Properly format the code to be clean and organized according to the instructions above.3.Run the program with 5 and 0 as input and observe the output. Then add a condition to the program that prevents the runtime error above and prints an error message instead.4.The quotient is always an integer value. Change the code so that the quotient variable will always store the proper floating point value of the division.

#include >iostream<

void main[]

{

int number 1, number2:

float quotient;

cout<<"Enter two numbers./n";

cout<< "Enter the first number: ";

cin <

number 1/num2 =quotient;

cout<< QUOTIENT;}

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 Databases Questions!