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 do both of these functions have in common? f(x)=3/2|x-7|-2 g(x)=1.5in(x-2)+7​
Which algebraic expression is equivalent to the expression below? 9(4x + 5) + 15
Germany surrendered in Europe on May 8, 1945. What day is this known as? Question 3 options: VE Day VJ Day D Day V Day
The popularity of operating systems is determined by studying the _______ share of computer sales worldwide. There are no options it's a fill in the blank
Simplify -2/3 squared 63x^3
how is ketoacidosis associated with gluconeogenesis​
If one edge of a cube is 3 inches long, what is the surface area of the cube? A. 9 square inches B. 18 square inches C. 27 square inches D. 30 square inches
Question in picture.
In sentence 8, what is the BEST definition for signature? "Signature whistles were used by dolphins to identify one another in many situations." A) one's identi
Can I get a step by step guide on how to solve a Linear Equation