Question
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 ...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