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

In the chart, closing cost refers to the
What claim by Adolf Hitler showed his anti-Semitic beliefs? A. Hitler believed that the Jews were strong nationalists. B. Hitler believed that the Jews had been
Which line in this excerpt from Jane Austen's Pride and Prejudice illustrates Miss Bingley's growing dislike for Elizabeth Bennet? "Your picture may be very exa
How did the cold war develop in the soviet union europe and the us?
Which technology simulates higher-order thinking? A.) business software B.) computational data processing C.) decision support D.) telecommunication network
Please help I will reward brainly! NEED DONE ASAP
which stress management technique combines physical exercises with breathing techniques?
Circle 1 is centered at (5, 8) and has a radius of 8 centimeters. Circle 2 is centered at (1, −2) and has a radius of 4 centimeters. What transformations can b
Heart rate reserve is used to be calculated
Which equation correctly describes the relationship between the measure of the inscribed angle and the measure of the intercepted arc in the figure?