Compose a detailed C++ source code to some elementary specifications and when I run the code it produces desired results.
$30-250 USD
Completed
Posted over 7 years ago
$30-250 USD
Paid on delivery
1. Write an interactive program to prompt and read two float type numbers, Then your program should perform and print the following arithmetic: (use FOR loop structure to repeat program 2 times.
1) Sum
2)Difference
3) Product
4) Quotient
5) Modulus (use system defined fmod function)
You must use system's defined function prototype and/or to create programmer's defined function prototype for each of the above calculation. In addition, create a function called "DISPLAYADD " using looping concept and a single print statement to create a line of Add (+) signs.
The following is the output:
++++++++++++++++++++++++++++++++++
Enter first number : 23.00
Enter second number : 12.00
Two numbers you have entered are 23.00 and 12.00
The sum is 35.00
The difference is 11.00
The product is 276.00
The quotient is 1.92
The remainder is 11.00
++++++++++++++++++++++++++++++++++
Enter first number : 24.00
Enter second number : 3.00
Two numbers you have entered are 24.00 and 3.00
The sum is 27.00
The difference is 21.00
The product is 72.00
The quotient is 8.00
The remainder is 0.00
++++++++++++++++++++++++++++++++++