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
4. Contoso Workshops
Modify the Contoso Workshops assignment from Chapter 3. The modified
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
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images