Write a C++ program that accepts event name, details, owner name, and event type and calculates the revenue based on the event type. If the event type is an exhibition, then revenue is calculated using the number of stalls and for the stage event, revenue is calculated based upon the number of seats.   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.   Create a class Event with the following protected member variables,  Data type Variable String name String detail String  ownerName Include appropriate getters and setters for the above class.   Create a derived class Exhibition derived from Event class with the following private member variable, Data type Variable Integer numberOfStall Include appropriate getters and setters for the above class.   Create a derived class StageEvent derived from Event with the following private member variable, Data type Variable Integer  noOfShows Integer numberOfSeatsPerShow Include appropriate getters and setters for the above class.   Include the following method in the Event class.  Method Description public double projectedRevenue() This function is used to calculate revenue and return the double value as 0.00.   Override the projectedRevenue() in StageEvent and Exhibition classes and return the revenue.   In the main method, read inputs from the console and create an instance to access the projectedRevenue() function. Input and Output Format : Refer sample input and output for formatting specification.   [All Texts in bold corresponds to the input and rest are output] Sample Input and Output 1: Enter the name of the event: Science Fair Enter the detail of the event: Explore Technology Enter the owner name of the event: Mr.John Enter the type of the event: 1.Exhibition 2.StageEvent 1 Enter the number of stalls: 65 The projected revenue of the event is 650000.00   Sample Input and Output 2: Enter the name of the event: Magic Show Enter the detail of the event: See Magic without Logic Enter the owner name of the event: Mr.Robert Enter the type of the event: 1.Exhibition 2.StageEvent 2 Enter the number of shows: 10 Enter the number of seats per show: 100 The projected revenue of the event is 50000.00

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
OUTPUT MUST MATCH AS IT IS.
-----------------------------------------------------
 
Write a C++ program that accepts event name, details, owner name, and event type and calculates the revenue based on the event type.
If the event type is an exhibition, then revenue is calculated using the number of stalls and for the stage event, revenue is calculated based upon the number of seats.
 
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.
 
Create a class Event with the following protected member variables, 
Data type Variable
String name
String detail
String  ownerName
Include appropriate getters and setters for the above class.
 
Create a derived class Exhibition derived from Event class with the following private member variable,
Data type Variable
Integer numberOfStall
Include appropriate getters and setters for the above class.
 
Create a derived class StageEvent derived from Event with the following private member variable,
Data type Variable
Integer  noOfShows
Integer numberOfSeatsPerShow

Include appropriate getters and setters for the above class.

 
Include the following method in the Event class. 
Method Description
public double projectedRevenue() This function is used to calculate revenue and return the double value as 0.00.
 
Override the projectedRevenue() in StageEvent and Exhibition classes and return the revenue.
 
In the main method, read inputs from the console and create an instance to access the projectedRevenue() function.

Input and Output Format :
Refer sample input and output for formatting specification.
 
[All Texts in bold corresponds to the input and rest are output]
Sample Input and Output 1:
Enter the name of the event:
Science Fair
Enter the detail of the event:
Explore Technology
Enter the owner name of the event:
Mr.John
Enter the type of the event:
1.Exhibition
2.StageEvent
1
Enter the number of stalls:
65
The projected revenue of the event is 650000.00
 
Sample Input and Output 2:
Enter the name of the event:
Magic Show
Enter the detail of the event:
See Magic without Logic
Enter the owner name of the event:
Mr.Robert
Enter the type of the event:
1.Exhibition
2.StageEvent
2
Enter the number of shows:
10
Enter the number of seats per show:
100
The projected revenue of the event is 50000.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY