Ask Question

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

+5
Answers (1)
  1. 8 December, 01:52
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers