Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write using python idle be very descriptive very new on this topic thanks! Eile

ID: 3787641 • Letter: W

Question

write using python idle be very descriptive very new on this topic thanks!

Eile Edit Yew Hbtory Bookmarks bols Help M Inbox 2025) joffrey du x Online Photo EditorIPod Edit.. x 13 Top 20 roasons why 2Pac x SakaieURI:csc 110 Spri.. X https sakai. uriedu/p Supposo you work for a famiture storothatgives variablo discounts depend on tho amount of a total sale. Based on the following tablo: Sale Discount CSC Links Gradebook E Python program that asks the user for the amount of a sale, and output o final sale after the discount is given. University Course Your output willook something like thi Site Info v3.S 4def2a2921 Jun 26 10:47 ython d 5666 Cdot Help right RESTART /Users/ dipippo Documen 110V fol court-py 9a.0 RESTART T: /Users/n dipippo Documents 110V count -py ted sole s 2125. rs/ldipipoo/Documents/csc hn solutions fall2016hw2 scount.py nt of sale: $3350 s 2680.0 RESTART /Users/ndi pippo Documen 118/ k/hw falt2016hw2 court-Py S625.0 2. A golfer keeps track of her of two weeks she plays day. She wants to know her lowest for that time period. White a Pytl the result. Your cutput will look something liko this: Python 3.5 2.1 (Appl nd 5666 dot 3 Type "copyright ter score: 4 core: 3 core: 4 core: 8 program that asks for the for each of th days, finds the lowest d prints

Explanation / Answer

Question 1:

Answer:

sales = int(input("Enter the amount for sale: $"))
discount = 0
if sales > 5000:
discount = 25
elif sales > 3000 and sales <= 5000:
discount = 20
elif sales >= 1000 and sales <= 3000:
discount = 15
else:
discount =10
  
discountAmount = sales - (sales * discount)/float(100)

print("Your discount sale amount is : $"+str(discountAmount))

Output:

sh-4.3$ python3 main.py                                                                                                                                                                                                                                                

Enter the amount for sale: $1000                                                                                                                                                                                                                                       

Your discount sale amount is : $850.0                                                                                                                                                                                                                                  

sh-4.3$ python3 main.py                                                                                                                                                                                                                                                

Enter the amount for sale: $2500                                                                                                                                                                                                                                       

Your discount sale amount is : $2125.0                                                                                                                                                                                                                                 

sh-4.3$ python3 main.py                                                                                                                                                                                                                                                

Enter the amount for sale: $100                                                                                                                                                                                                                                        

Your discount sale amount is : $90.0

Question 2:

Answer:

list1 = []

for i in range(14):
n = int(input("Enter score: "))
list1.append(n)
  
min = list1[0]

for i in range(len(list1)):
if min > list1[i]:
min = list1[i]
  
print("Lowest score is "+str(min))
  

Output:

sh-4.3$ python3 main.py                                                                                                                                                                                                                                                  

Enter score: 3                                                                                                                                                                                                                                                           

Enter score: 5                                                                                                                                                                                                                                                           

Enter score: 6                                                                                                                                                                                                                                                           

Enter score: 7                                                                                                                                                                                                                                                           

Enter score: 8                                                                                                                                                                                                                                                           

Enter score: 9                                                                                                                                                                                                                                                           

Enter score: 4                                                                                                                                                                                                                                                           

Enter score: 1                                                                                                                                                                                                                                                           

Enter score: 2                                                                                                                                                                                                                                                           

Enter score: 10                                                                                                                                                                                                                                                          

Enter score: 11                                                                                                                                                                                                                                                          

Enter score: 12                                                                                                                                                                                                                                                          

Enter score: 13                                                                                                                                                                                                                                                          

Enter score: 14                                                                                                                                                                                                                                                          

Lowest score is 1