Write a program that asks the user to enter two decimal


Program: Write a program that asks the user to enter two decimal numbers.

The program should calculate and display the product and quotient of the two numbers. Use a function Product() to calculate the product.

The function should have two arguments, which are the two numbers that the user inputs. The function should re- turn the product of the numbers.

Use a function Quotient() that has two arguments, which are the numbers input by the user.

The function should return the quotient of the first number divided by the second.

If the second number is zero (recall that division by zero is not allowed), display an error message and exit the program.

Be sure to include comments. The comment should describe the purpose of the program and the data to be entered.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that asks the user to enter two decimal
Reference No:- TGS0951418

Expected delivery within 24 Hours