Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a program in Python that allows you to save money over a 3 week period for 5 months. The weekly prompt needs to read:
Create a program in Python that allows you to save money over a 3 week period for 5 months. The weekly prompt needs to read:
Enter your weekly savings: $
At the end of each month, your program needs to print out the total saved for that month and the total saved for all of the months at that point. The prompts should look like the following:
Total saved this month: $ Total saved overall: $
Use the following test data for your program:
- Month 1: 25, 20, 15
- Month 2: 75, 10 5
- Month 3: 5, 30, 40
- Month 4: 10, 12, 15
- Month 5: 22, 25, 31 The output for your program should look like the following:
Enter your weekly savings: $25 Enter your weekly savings: $20 Enter your weekly savings: $15 Total saved this month: $ 60.0 Your saved overall: $ 60.0 Enter your weekly savings: $75 Enter your weekly savings: $10 Enter your weekly savings: $5 Total saved this month: $ 90.0 Your saved overall: $ 150.0 Enter your weekly savings: $5 Enter your weekly savings: $30 Enter your weekly savings: $40 Total saved this month: $ 75.0 Your saved overall: $ 225.0 Enter your weekly savings: $10 Enter your weekly savings: $12 Enter your weekly savings: $15 Total saved this month: $ 37.0 Your saved overall: $ 262.0 Enter your weekly savings: $22 Enter your weekly savings: $25 Enter your weekly savings: $31 Total saved this month: $ 78.0 Your saved overall: $ 340.0
I need this problem to be written in python language with nested loop condition. please i need details as much as you can. I will be very grateful!
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