Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program that calculates how much money you will have after each day of spending. The user inputs the starting amount of money
Write a C++ program that calculates how much money you will have after each day of spending. The user inputs the starting amount of money integer data type). Then in each day, the amount of money you spend is the same as the day number. The program lists out the spending progress from day 0 until using up all the money. Sample display (1) Starting money: $6 Day 0 you spend $0 so you have $6 Day 1 you spend $1 so you have $5 Day 2 you spend $2 so you have $3 Day 3 you spend $3 so you have $0 Sample display (2) Starting money: $20 Day 0 you spend $0 so you have $20 Day 1 you spend $1 so you have $19 Day 2 you spend $2 so you have $17 Day 3 you spend $3 so you have $14 Day 4 you spend $4 so you have $10 Day 5 you spend $5 so you have $5 Day 6 you spend $6 so you have $-1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started