Ask Question
2 October, 20:17

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. 2 October, 22:36
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers