Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code a program for a travel agent that will store and display exclusive vacation offers to travelers. In order to receive full points, your program

image text in transcribed
Code a program for a travel agent that will store and display exclusive vacation offers to travelers. In order to receive full points, your program must include all of the following: * A DreamVacation class The following five PRIVATE attributes: o __ destination (a string) o __description (a string) o _ days (an int) o __ nights (an int) o _ cost(a float) A hand-coded constructor (no dataclass decorator!) to initialize the five private attributes * A print_vaca method (this is still part of your DreamVacation class) to print vacation data as shown on the next page Public properties for each of the five attributes * Public setters for each of the five attributes * A main function in which you will create two vacation objects based on your top two dream destinations. In main you will also call your print_vaca method for each object. The real estate program discussed in this week's lecture materials is a good model for this homework. * See required output next page. Required program output is shown below. Additional considerations: e The SPECIAL OFFER banner may be printed from your print_vaca method * Substitute your own name and dream vacation data in your program. * To get the description to span multiple lines, you may add \ anywhere in your string force line breaks. * Format money with two decimal places and commas separating thousands. * Emojis are optional. [0 Disneyland Resort [0 [ Family fun in sunny Anaheim! Enjo - Lpton Disney parks from the luxurious Grand Californian Hotel. Days and nights num# pulled from their respective attributes 4 days, 5 nights Starting at: $4,500.00 '_ Contact Dawn Patitucci for more details ----.=EEEiiiiiiII'I1IIIIIIH|HHHHIHIHIII SPECIAL OFFER 0 O O Alpine Adventure ] [0 [0 Whirlwind tour of Switzerland, Tyrol and Northern Italy. Powdered slopes by day and cozy chalets by night. 7 days, B nights Starting at: $6,500.00 Contact Dawn Patitucci for more details

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Historical events in chronological order?

Answered: 1 week ago

Question

Reforms movement amoung the muslims called the........ movement ?

Answered: 1 week ago

Question

India has a federal system of government with a strong........?

Answered: 1 week ago