write in python idle Eile Edit Yew Hbtory Bookmarks bols Hel
write in python idle
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 printsSolution
Please find the required solution:
1)Solution-1
# Hello World program in Python
sale = input(\"Enter amount of sale:$\")
if sale >= 5000 :
print sale - sale*25/100
if sale >=3000 and sale <5000 :
print sale - sale*20/100
if sale >=1000 and sale <3000 :
print sale - sale*15/100
if sale <1000:
print sale - sale*10/100
Sample output:
Enter amount of sale:$100 90
2) Solution -2
print \'Enter score for 14 days\'
lowest = input(\"Enter score:\")
for i in range(13):
num = input(\"Enter score:\")
if num < lowest:
lowest =num
print \'lowest:\',lowest
Sample output:
Enter score for 14 days Enter score:98 Enter score:23 Enter score:45 Enter score:76 Enter score:12 Enter score:89 Enter score:3 Enter score:66 Enter score:15 Enter score:12 Enter score:98 Enter score:35 Enter score:29 Enter score:84 lowest: 3
