Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have a followup question for this python code. The scenario where my code is not correct is when: amount of donation$ is less than

I have a followup question for this python code.

The scenario where my code is not correct is when: amount of donation$ is less than target donation goal

After inputting some $ amount, the user placed a stop sign and doesn't want to input another donation$. I want the program to say "You did not meet the target donation goal of___" . (It should not put the 3 additional information of $sum, no. of transactions, and average as of this time). Instead, it will ask to input more $donation until it reaches the $donation goal. If after inputting more $, it has reached the $donation goal, then it will say "Congratulations! Your goal of quot;, donation_goal, "has been met!"). Then, this is the time the program would display information of the sum$, total number of donations and the average. These 3 pieces of information(sum, no. of transactions and average should only be at the last when the donor has met the target donation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

To achieve this functionality you can use a while loop to continually prompt the user for donations ... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

If 2 5 9 - k 5 8 = 2 5 8 , what is the value of k?

Answered: 1 week ago