Define a class RESORT in C++ with the following description: Private Members: Rno //Data member to store Room No Name //Data member to store customer name Charges //Data member to store per day charges Days //Data member to store number of days of stay //A function to calculate and return Amount as Days Charges and If the value of Days*Charges is more than 11000 then as 1.02*Days*Charges COMPUTE( ) Public Members: Getinfo() //A function to enter the content Rno, Name, Charges and Days //A function to display Rno, Name, Charges, Days and Amount (Amount to be displayed by calling function COMPUTE( )) Dispinfo( )

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 7SA: Assume the definition of class foodType as given in Exercise 6. Answer the following questions? (1,...
icon
Related questions
Question
Define a class RESORT in C++ with the following description:
Private Members:
Rno
//Data member to store Room No
Name
//Data member to store customer name
Charges
//Data member to store per day charges
//Data member to store number of days of stay
Days
//A function to calculate and return Amount as Days*Charges and If the value of
Days*Charges is more than 11000 then as 1.02*Days*Charges
COMPUTE( )
Public Members:
Getinfo( )
//A function to enter the content Rno, Name, Charges and Days
//A function to display Rno, Name, Charges, Days and Amount
(Amount to be displayed by calling function COMPUTE( ))
Dispinfo( )
Transcribed Image Text:Define a class RESORT in C++ with the following description: Private Members: Rno //Data member to store Room No Name //Data member to store customer name Charges //Data member to store per day charges //Data member to store number of days of stay Days //A function to calculate and return Amount as Days*Charges and If the value of Days*Charges is more than 11000 then as 1.02*Days*Charges COMPUTE( ) Public Members: Getinfo( ) //A function to enter the content Rno, Name, Charges and Days //A function to display Rno, Name, Charges, Days and Amount (Amount to be displayed by calling function COMPUTE( )) Dispinfo( )
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr