cchavez972 cchavez972
  • 16-09-2017
  • Computers and Technology
contestada

Write a program that checks for car mileage. if the mileage is greater than 100000, display "clunker!". if not, display "buy it!"

Respuesta :

geerky42
geerky42 geerky42
  • 16-09-2017
Should be easy to write this program. You need to define function that takes number as input and use if else condition to decide what to print.

For example in Python:

def checkCarMileage(mileage):
    if mileage > 100000:
        print("clunker!")
    else:
        print("buy it!")
Answer Link

Otras preguntas

Religious and cultural toleration were encouraged in which Muslim empire? A. Safavid Empire B. Mughal Empire C. Ottoman Empire
Which sentence does not contain any errors? A. I normally do not want to step on anyones' toes. B. No one else on the team is allowed to use our captain Erics
While Wyoming is the least populous state, which state is the second least populous, or, the 49th most populous? A.Vermont B.North dakota C.South dakota D.Alask
Katie Clean invited Messy Missy to her house to work on their biology project, but Katie Clean had no idea what a visit from Messy Missy entailed. First of all,
what is 7a+28b factorised??
Every year at the anniversary of their guru's death, disciples kept a day-long ________ at the tomb.
Why do plants produce their own food
PLEASE HELP I GIVE THANKS
what is 0.003 is 1/10 of
what is 871 rounded to the nearest hundred