Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory And Application Bio Science And Bio Technology International Conferences DTA And BSBT 2011 Held As Part Of The Future Generation In Computer And Information Science 258

Authors: Tai-hoon Kim ,Hojjat Adeli ,Alfredo Cuzzocrea ,Tughrul Arslan ,Yanchun Zhang ,Jianhua Ma ,Kyo-il Chung ,Siti Mariyam ,Xiaofeng Song

2011th Edition

3642271561, 978-3642271564

Students also viewed these Databases questions