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

what is 567 +213 use partial sum to anwser
How did Rachel Carson affect the environment.
Mr and Mrs Kosley took their dog on a walk. Mr Kosley walks 5mph and Mrs Kosley walks 6mph. The dog walks 10mph. On the path, the dog ran back and forth between
Given the following system of equations and it's graph below, what can be determined about the slopes and y-intercepts of the system of equations?
Write a spellcheck() method that takes a word as a parameter and returns true if it is in the dictionary array. It should return false if it is not found. Test
was the men of the woodland tribes responsible for farming and building their homes?​
the length of a rectangle is four feet longer than the width. the area is 21. find the dimension
Where were most of North Carolina’s textile mills located in the early 1900s?
Potter industries has a bond issue outstanding with an annual coupon of 6% and a 10-year maturity. the par value of the bond is $1,000. if the going annual inte
this word means “worldly”