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
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

Code 1234 1 Destination Chicago Boston Miami San Francisco Price per Person ($) 300.00 480.00 1050.00 4 1300.00 Table 6-6 Countrywide Tours codes and prices
Step by Step Solution
3.49 Rating (159 Votes )
There are 3 Steps involved in it
Solution The design is as follows The code outputs the value for each entry in the table A conversio... View full answer
Get step-by-step solutions from verified subject matter experts
