Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago