Question: Study the simple program shown in Figure 4-37 on page 111 in your book closely. Be sure you understand all parts. Carefully enter the program

Study the simple program shown in Figure 4-37 on page 111 in your book closely. Be sure you understand all parts. Carefully enter the program for Figure 4-37. Test the code with some simple data, debug it and get it working. Be sure it produces a correct result.

Study the simple program shown in Figure 4-37 on page 111 in

8. See Figure 4-37. 1 //TryThis8 . cpp _-_displays_total expenses 2 / /Created/ revised by syour name>_on 3 4_#include_ 5 using namespace std; 6 Z int main() 8 { _ _ _double food = 0.0; 10 _ _ double rent = 0.0; 11 _ _ _double utilities = 0.0; 12_ _ _ double car = 0.0; 13 _ _ double total Expenses = 0.0; 14 15_ _ _//enter input _ _ cout > food; 18_- cout > rent; 20 _ cout > utilities; _ cout > car; 24 25 _ _ _/calculate and display output 26 _ _ total Expenses = food + rent_+ utilities + car; 27 cout

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!