This Python program will need to include the following items listed below.You are to customize your program and create the sequence in any order of your choice. Must include Python comments for each...

1 answer below »

This Python program will need to include the following items listed below.You are to customize your program and create the sequence in any order of your choice.



  • Must include Python comments for each of the items show below.


  • Calculate a Percentage. For example,the discount percentage on a sale item.


  • Use of3Constants. To be used for values that will not change throughout the life of the program.


  • A Turtle Graphic Logo. This logo will be used to depict your fictitious company and should be something interesting and creative.


  • Three(3)If-else Conditions.The usage of conditions is required and should be used to evaluate or makea decision on some kind of input.These can include the comparison of Strings or depict a nested conditional sequence.


  • The Usage of at Least2Logical Operators


  • 2 While Loops.


  • 1 For Loop


  • At Least2Functions(1with at least1parameter)


  • 1 Instance of a List + Looping Through the List

Answered Same DayMay 05, 2021

Answer To: This Python program will need to include the following items listed below.You are to customize your...

Shivinder answered on May 06 2021
145 Votes
#########################Three Constants######################################
discount_range_1 = 0
.1 #If the price value is below 1000
discount_range_2 = 0.2 #If the price value is between 1000 and 2000
discount_range_3 = 0.3 #If the price value is over 2000
################################Turtle Graphic logo
def make_logo():
import turtle
logo = turtle.Turtle()

logo.pencolor("Orange")
for i in range(50):
logo.forward(100)
logo.left(123) # Let's go counterclockwise this time
logo.pencolor("Green")
for i in range(50):
logo.forward(150)
logo.left(123)

logo.screen.exitonclick()
####################################List of items
item_list = ['Item_1', 'Item_2', 'Item_3', 'Item_4', 'Item_5'] #Item names
items_stock = [20,12,34,21,34] #Item stock number
item_price = [1233, 3433, 4400, 10000, 2200] #Item Price
item_bar_code = [554433, 554232, 998212, 44321, 43433] #Item bar...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here