Countrywide Tours conducts sightseeing trips for groups from its home base in Iowa. Create an application that

Question:

Countrywide Tours conducts sightseeing trips for groups from its home base in Iowa. Create an application that continuously accepts tour data, including a three-digit tour number; the numeric month, day, and year values representing the tour start date; the number of travelers taking the tour; and a numeric code that represents the destination. As data is entered for each tour, verify that the month, day, year, and destination code are valid; if any of these is not valid, continue to prompt the user until valid data is entered. The valid destination codes are shown in Table 6-6.

Design the logic for an application that outputs each tour number, validated start date, destination code, destination name, number of travelers, gross total price for the tour, and price for the tour after discount. The gross total price is the tour price per guest times the number of travelers. The final price includes a discount for each person in larger tour groups, based on Table 6-7.


Table 6-6

Table 6-7

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: