Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

coido asaignment, python langugae, loop conidtion Challenge 2 Collapse Nested Loops Challenge 2 Directions Read the problem listed below. Formulate a Decomposition or Outline of

image text in transcribed

image text in transcribed

image text in transcribed

coido asaignment, python langugae, loop conidtion

Challenge 2 Collapse Nested Loops Challenge 2 Directions Read the problem listed below. Formulate a Decomposition or Outline of the problem. Determine if you have seen this problem before and how it was solved Start to write your Algorithm, making note of the inputs and outputs that will be required. Write your code, test and debug. Problem 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: $ S thun. AC4x 2000 Cudlege Collapse Nected Loops Challenge 2 Use the following test data for your program: Month 1:25. 20.15 Month 2: 75. 105 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: 525 Enter your weekly savings. 520 Enter your weekly savings. 515 Total saved this month: $ 60.0 Your saved overall: 560.0 Enter your weekly savings: 575 Enter your weekly savings: 510 Enter your weekly savings: 55 Total saved this sonth: S 90.0 Your saved overall: $ 150.0 Enter your weekly savings: $5 Enter your weekly savings: 530 Enter your weekly savings: $40 Total saved this sonth: $75.0 Python 2:09 PM Configure. MYAQOOB Project Index (Static) Challenge 2 Collapse Nected Loops Challenge 2 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: S 37.0 Your saved overall: 252.0 Enter your weekly savings: 522 Enter your weekly savings: $25 Enter your weekly savings: $31 Total saved this month: $ 78.0 Your saved overall: S 340.0 Since this problem is a little more detailed, you may want to run your code in the terminal first. To do that click on Tools and then Terminal At the workspaces prompt type in python3 Challenges/Challenge2.py This will open a new window with your file. You can also use DLE or Visual Studio Code if you are more familiar with these tools and find them easier to work in when debugging Python 210 PM ** 2/22/2020

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions