Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An event company need to record and check the events. Using Python to do: Event records: Event Code: Event Name Number of Days Number of
An event company need to record and check the events. Using Python to do: Event records:
Event Code: | Event Name | Number of Days | Number of Nights | Cost($) |
EA516 | Outdoor Camping | 5 | 4 | 860.00 |
YZ321 | Wedding | 2 | 1 | 2300.00 |
QL601 | Oversea Vacation | 6 | 5 | 3500.00 |
Create the class Event with instance variables for Event Code, Event Name, Number of Days and Nights, and the Cost, and Getter methods for Event Code, Number of Days and the Cost by using property decorator, Setter method for the Cost using the setter decorator, and a string method that returns all its attributes.
An example of Output: Output: Code: YZ321 Name: Wedding Number of Days and Nights: 2D/1N Cost: $2300.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started