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

Which quote from "My Heart Is Bursting" best summarizes the message of Satanta’s speech? All of the land south of the Arkansas belongs to the Kiowas and the Com
1. Who meets with Atticus the weekend before Tom Robinson's trial begins? (1 point) A. Sheriff Tate and several other men meet with Atticus to discuss Tom being
2/9 = 3y what does y equal?
Can anyone help with this
Please hurry!! Choose the correct simplification of the expression (5a7b)2. 25a14b2 25a9b2 25a14b 10a14b2
In countries like Ghana (around 300-1200 AD), what gave them the financial strength to rise to power?
What effect does bias, symbolism, and propaganda have on the public opinion?
Clara Barton's work during the civil war lead to
Which statement best describes Grendel’s perspective
what green color absorbs light energy