Ask Question
15 March, 15:32

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

+4
Answers (1)
  1. 15 March, 16:12
    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