Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is in Python. 5.8 Program: Donation tracker The local humane society has asked you to create an application to help track donations. They would
This is in Python.
5.8 Program: Donation tracker
The local humane society has asked you to create an application to help track donations. They would like to be able to enter a goal and take donations until the goal is reached. If a user tries to donate a negative amount reject the donation and display an error message.
They have provided a mock-up of how they would like the program to look below.
Sample Execution:
Humane Society Donation Tracker Please enter your goal: 100 Current amount: $0 Please enter a donation amount: 25 Current amount: $25 Please enter a donation amount: 50 Current amount: $75 Please enter a donation amount: 10 Current amount: $85 Please enter a donation amount: -85 You can't donate a negative amount of money! Current amount: $85 Please enter a donation amount: 15 Congratulations, you met your goal!
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