Ask Question
14 October, 20:38

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

+2
Answers (1)
  1. 14 October, 20:55
    0
    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!")
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that checks for car mileage. if the mileage is greater than 100000, display "clunker!". if not, display "buy it!" ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers