MATCH OUTPUT AS IT IS WITH QUESTION OUTPUT ------------------------------------- A website is designed to get registrations for two types of events, an Exhibition or a Stage Event. It asks the visitor about the kind of event they are interested in and then displays a welcome message respectively i.e. if it is an exhibition then print "Welcome to Exhibition" or if it's a stage event then print "Welcome to Stage event". Write a program that asks users the event they are going to attend then display a welcome message accordingly. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. Consider a class named Event with the following public method Method Name Method Description void display() This method has no definition Create a derived class named Exhibition derived from Event and override the following method Method Name Method Description void display() This method displays the invite message "Welcome to Exhibition!!!" Create a derived class named StageEvent derived from Event and override the following method Method Name Method Description void display() This method displays the invite message "Welcome to Stage event!!!" In the main method, get the event type(Exhibition or Stage Event) and create the object according to the event type and call the display() method. Input Format: The input is an integer that corresponds to the event type. Output Format: The output consists of a welcome message to the event. If the event type is other than 1 or 2 is entered, then print the message "Invalid choice". Refer to sample output for formatting specifications. [All text in bold corresponds to input and rest corresponds to output] Sample Input and Output 1: Enter the event type 1.Exhibition 2.Stage Event 1 Welcome to Exhibition!!! Sample Input and Output 2: Enter the event type 1.Exhibition 2.Stage Event 2 Welcome to Stage Event!!! Sample Input and Output 3: Enter the event type 1.Exhibition 2.Stage Event 3 Invalid choice

Microsoft Windows 10 Comprehensive 2019
1st Edition
ISBN:9780357392607
Author:FREUND
Publisher:FREUND
Chapter3: File And Folder Management
Section: Chapter Questions
Problem P3EYK
icon
Related questions
Question

MATCH OUTPUT AS IT IS WITH QUESTION OUTPUT

-------------------------------------

A website is designed to get registrations for two types of events, an Exhibition or a Stage Event. It asks the visitor about the kind of event they are interested in and then displays a welcome message respectively i.e. if it is an exhibition then print "Welcome to Exhibition" or if it's a stage event then print "Welcome to Stage event".

Write a program that asks users the event they are going to attend then display a welcome message accordingly.

Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement.

Consider a class named Event with the following public method 

Method Name Method Description
void display() This method has no definition

 

Create a derived class named Exhibition derived from Event and override the following method 
Method Name Method Description
void display() This method displays the invite message "Welcome to Exhibition!!!"
 
Create a derived class named StageEvent derived from Event and override the following method
Method Name Method Description
void display() This method displays the invite message "Welcome to Stage event!!!"
 
In the main method, get the event type(Exhibition or Stage Event) and create the object according to the event type and call the display() method.
 
Input Format:
The input is an integer that corresponds to the event type.
 
Output Format:
The output consists of a welcome message to the event.
If the event type is other than 1 or 2 is entered, then print the message "Invalid choice".
Refer to sample output for formatting specifications.
 
[All text in bold corresponds to input and rest corresponds to output] 
Sample Input and Output 1:
Enter the event type                                                                                               
1.Exhibition                                                                                                       
2.Stage Event                                                                                                      
                                                                                                                 
Welcome to Exhibition!!!
 
Sample Input and Output 2:
Enter the event type                                                                                               
1.Exhibition                                                                                                       
2.Stage Event                                                                                                      
2                                                                                                                  
Welcome to Stage Event!!!
 
Sample Input and Output 3:
Enter the event type                                                                                               
1.Exhibition                                                                                                       
2.Stage Event                                                                                                      
3                                                                                                                  
Invalid choice
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning