4. Contoso Workshops Modify the Contoso Workshops assignment from Chapter 3.  The modified program takes as input the number associated with the workshop choice and the number associated with the location choice. The program will calculate and display the registration fee, lodging cost, and Total for the selected workshop and location. You will use three functions for this program. One function will display the Workshop and Lodging menus and return the menu choices for each, a second function will calculate and return the lodging cost, and a third function will calculate and return the Total Cost. The tables below show the workshops  and lodging information.  Be sure to define a main function. Workshop Number of Days Registration Fee Handling Stress 3 $2,000 Time Management 3 $800 Supervision Skills 3 $1,500 How to Interview 1 $500 Lodging Location Lodging Fees per Day Austin $150 Chicago $225 Phoenix $175 Orlando $300   For example, here are the charges to attend the Supervision Skills workshop in Orlando: Registration:$1,500 Lodging:$300×3 days=$900 Total: $2,400

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question

4. Contoso Workshops

Modify the Contoso Workshops assignment from Chapter 3.  The modified program takes as input the number associated with the workshop choice and the number associated with the location choice. The program will calculate and display the registration fee, lodging cost, and Total for the selected workshop and location. You will use three functions for this program. One function will display the Workshop and Lodging menus and return the menu choices for each, a second function will calculate and return the lodging cost, and a third function will calculate and return the Total Cost. The tables below show the workshops  and lodging information.  Be sure to define a main function.

Workshop

Number of Days

Registration Fee

Handling Stress

3

$2,000

Time Management

3

$800

Supervision Skills

3

$1,500

How to Interview

1

$500

Lodging

Location

Lodging Fees per Day

Austin

$150

Chicago

$225

Phoenix

$175

Orlando

$300

 

For example, here are the charges to attend the Supervision Skills workshop in Orlando:

Registration:$1,500
Lodging:$300×3 days=$900
Total: $2,400

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Types of Function
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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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