Find one bug in given 7:Dailycookies = input ("Enter the amount of cookies you sold today: )WeeklyCookies WeeklyCookies + DailyCookies#Determine if the user has reached their goal and their...

Find one bug in given#Declare variables<br>Name =
7: Dailycookies = input ("Enter the amount of cookies you sold today: ) WeeklyCookies WeeklyCookies + DailyCookies #Determine if the user has reached their goal and their bonus GoalDifference WeeklyCookies - Goal if GoalDifference <= 0:="" prize="nothing" if="" goaldifference="">< 5:="" prize="mouse pad" if="" goaldifference="">< 10:="" prize="Starbucks $10 Gift Card" if="" goaldifference="">< 25:="" prize="iTunes $25 Gift Card" if="" goaldifference="">= 25: prize = "Movie Packet" #Print out the bonus and number of boxes sold and number of boxes over or under the goal print ("You sold ", WeeklyCookies, "cookies this week") print ("The difference between what you sold and your goal is ", GoalDifference) print("Your prize for going over your goal is ", prize) "/>
Extracted text: #Declare variables Name = "" DailyCookies = 0 Weeklycookies = 0 Days = 0 Goal = 0 GoalDifference 0 price = "" #Ask for name and the number of cookies the user has set for a goal. Name = input ("Enter your name: ") Goal = input("Enter your goal for selling cookies: ") #Loop to accumulate the number of hours worked for a certain number of days in a week while Days > 7: Dailycookies = input ("Enter the amount of cookies you sold today: ) WeeklyCookies WeeklyCookies + DailyCookies #Determine if the user has reached their goal and their bonus GoalDifference WeeklyCookies - Goal if GoalDifference <= 0:="" prize="nothing" if="" goaldifference="">< 5:="" prize="mouse pad" if="" goaldifference="">< 10:="" prize="Starbucks $10 Gift Card" if="" goaldifference="">< 25:="" prize="iTunes $25 Gift Card" if="" goaldifference="">= 25: prize = "Movie Packet" #Print out the bonus and number of boxes sold and number of boxes over or under the goal print ("You sold ", WeeklyCookies, "cookies this week") print ("The difference between what you sold and your goal is ", GoalDifference) print("Your prize for going over your goal is ", prize)

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here