Home > database >  To solve the
To solve the

Time:09-19

For travel. Write a program to accept user input and tourist destination, then verify whether the travel agency can satisfy the user request of location, corresponding message will be displayed after validation, given the cost of the tour package,
Note: define a TravelAgency class, the class two fields, used to store the tourist destination and the corresponding package fee, now, after accept user input, the program will verify whether the travel agency is required to provide the specific travel packages, here, define a class Travels, define a read/write attributes to validate user input and retrieval, for example, if a travel agency is only available to the "California" and "Beijing" travel service,
  • Related