Conference Planning The following table shows a training company's workshops, the number of days of each, and their registration fees. Conference Number of Days Registration Fee Handling Stress 3 $1,000 Time Management 3 $800 Supervision Skills 3 $1,500 Negotiation 5 $1,300 How to Interview 1 $500 Conferences are held in several locations. The table below contains locations and hotel fees per day. Location Hotel Fees per Day Austin $150 Chicago $225 Dallas $175 Orlando $300 Phoenix $175 Raleigh $150 When a customer registers for a conference, he or she must pay the registration fee plus the lodging fees for the selected location. Example: Supervision Skills in Orlando Registration: $1,500 Lodging: $300 x 3 days = $900 Total: $2,400 Create an application that lets the user select a workshop from one ListBox and a location from another ListBox. When the user clicks a button Calculate, the application should calculate and display the registration cost, the lodging cost, and the total cost. Use a switch statement in your solution
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
Conference Planning
The following table shows a training company's workshops, the number of days of each, and their registration fees.
Conference Number of Days Registration Fee
Handling Stress 3 $1,000
Time Management 3 $800
Supervision Skills 3 $1,500
Negotiation 5 $1,300
How to Interview 1 $500
Conferences are held in several locations. The table below contains locations and hotel fees per day.
Location Hotel Fees per Day
Austin $150
Chicago $225
Dallas $175
Orlando $300
Phoenix $175
Raleigh $150
When a customer registers for a conference, he or she must pay the registration fee plus the lodging fees for the selected location.
Example: Supervision Skills in Orlando
Registration: $1,500
Lodging: $300 x 3 days = $900
Total: $2,400
Create an application that lets the user select a workshop from one ListBox and a location from another ListBox. When the user clicks a button Calculate, the application should calculate and display the registration cost, the lodging cost, and the total cost. Use a switch statement in your solution.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images