Question
Once you have studied the above, in Notepad or any other plain text editor, complete the following, in the author's pseudocode as presented in the
Once you have studied the above, in Notepad or any other plain text editor, complete the following, in the author's pseudocode as presented in the text book and examples up to this point, and with each exercise completed as described in the instructions below.
A conference charges registration fees as follows Option A: Conference only $299/day
Option B: Conference + meals $299/day + $12/meal
Option C: Conference + meals + hotel $299/day + $12/meal + $100/night at the hotel
Design the logic, in pseudocode, for a program that
a. Allows the user to enter which option they want (A, B or C)
b. Depending on which option they chose, allows them to enter
i. The number of days of the conference they want to attend only, or
ii. The number of days of conference and how many meals they want per day (maximum of 3), or iii. The number of days of conference, meals per day, and hotel nights
c. Contains three overloaded methods named calculateTotal that
i. have parameters pertaining to the three options (i.e., the first method would have only days of conference as a parameter, the second one would have number of meals per day in addition to that, and so on)
ii. calculate and return the total
d. Depending on which option the user chose, calls one of the three overloaded methods
e. Outputs a bill containing all details for the users chosen option, i.e., which option they chose, how many days of conference, how many meals per day, etc., and their total
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