Answer to Question #327847 in C++ for fiona

Question #327847

2. Make a C++ program that will calculate the total expenses and Cash left of Miss Carla after spending the following : 

Cash - 4,050.00 

  B&W perfume - 700.50

  B&W lotion - 560.85

  Dresses - 2072.50 


Note : the program must display the cash left and total expenses. 


1
Expert's answer
2022-04-12T13:26:08-0400
#include<iostream>


using namespace std;


int main()
{
	float Cash = 4050;
	float BWpar = 700.5;
	float BWLot = 560.85;
	float Dresses = 2072.5;
	float TotExp = BWpar + BWLot + Dresses;
	float CashLeft = Cash - TotExp;
	cout << "The total expenses of Miss Carla are " << TotExp;
	cout << "\nThe cash left is " << CashLeft;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS