Question: ICS 111 How do you write a code segment which prompts the user to enter the price of a tour and receives input from the
ICS 111 How do you write a code segment which prompts the user to enter the price of a tour and receives input from the user. A valid tour price is between $52.95 and $259.95, inclusive. Your program should continue to repeat until a valid tour price has been entered. If the user enters an invalid price, display a message describing why the input is invalid. You may assume that the user only enters a real number. The user will not enter any invalid characters. Although the use of constants to test the minimum and maximum price of a tour would be appropriate if this were part of a program?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
