Answer:
name = input("Enter your name: ")
books = int(input("Enter he number of books you purchased: "))
points = 0
if 1 <= books <= 3:
points = 5
elif 4 <= books <= 6:
points = 10
elif 7 <= books <= 8:
points = 15
elif books == 9:
points = 20
elif books >= 10:
points = 25
print(name + " has " + str(points) + " points")
Explanation:
*The code is in Python.
Ask the user to enter the name and number of books purchased
Check the number of books purchased. Depending on the given conditions, set the points s/he earned.
Print the name and points s/he has
Adware is an abbreviation of advertising support software and refers to anything that displays advertisements when using a computer, such as when browsing on the internet, or using a CD or DVD that contains adware
Answer:
Answered below
Explanation:
//Program is written in Python programming //language.
number_of_trees = int(input ("Enter number of trees purchased: "))
height_of_trees = float(input("Enter height of trees: "))
delivery_status = input("Do you want trees delivered? enter yes or no ")
price_of_two_meters = 20
total_price = number_of_trees * price_of_two_meters
//Invoice
print (number_of_trees)
print(height_of_trees)
print (total_price)
print (delivery_status)