Question: Write a program that interacts with the user like this: (1) First Free Service (2) Second Free Service (3) Third Free Service Enter the Free

Write a program that interacts with the user like this:

(1) First Free Service

(2) Second Free Service

(3) Third Free Service

Enter the Free Service number>> 2

Enter number of km>> 3557

Vehicle must be serviced.

Use the table below to determine the appropiate message. Print a message to indicate bad data as well.

Free Services Km (k)

First Service 1500 < k <= 3000

Second Service 3001< k <= 4500

Third Service 4501< k <= 8000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!