Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / HOMEWORK #1 - PROGRAM #2<br/>Instructions:  For this program it is REQUIRED that you match the spacing, the reason is this exercise is about formatting

HOMEWORK #1 - PROGRAM #2<br/>Instructions:  For this program it is REQUIRED that you match the spacing, the reason is this exercise is about formatting

Computer Science

HOMEWORK #1 - PROGRAM #2<br/>Instructions:  For this program it is

REQUIRED that you match the spacing, the reason is this exercise is about formatting.  This means you must have "green" complete in Hypergrade for this program. 
Write a C++ program that displays the results of the expressions 3.0 *5.0, 7.1 * 8.3 - 2.2, and 3.2 / (6.1 * 5).  Display the results of each calculation right aligned rounded to two decimal places.
Your output should look like this (you will need to use setw, fixed and setprecision to get this to work): 
      3.0
* 5.0
------
 15.00




  7.1
* 8.3
- 2.2
------
 56.73




  3.2
/ (6.1
*  5)
------
 0.10
*Pseudocode is NOT required for this program. This program IS auto-graded.


Required Output
3.0\n * 5.0\n ------\n 15.00\n \n \n 7.1\n * 8.3\n - 2.2\n ------\n 56.73\n \n \n 3.2\n / (6.1\n * 5)\n ------\n 0.10\n \n

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE