Question
C#: A: Create an application that allows a user to enter an integer between 1 and 10 into a textbox control. The program should display
C#:
A: Create an application that allows a user to enter an integer between 1 and 10 into a textbox control. The program should display the english and spanish translations of that number into their own label. Use a try/catch to see if the number is outside the range of 1-10 and if it is, the program should display an error message. Use an if/else construct for this program.
1 - One - Uno
2 - Two - Dos
3 - Three - Tres
4 - Four - Cuatro
5 - Five - Cinco
6 - Six - Seis
7 - Seven - Siete
8 - Eight - Ocho
9 - Nine - Nueve
10 - Ten - Diez
B: Arcade has a a game club that awards point and levels of expertise to their customers based on the number of games they play each month. Use a switch to complete this project. The points are as follows:
If a customer completes 0 games, they receive 0 points and are a novice
If a customer completes 1 game, they receive 6 points and is considered beginner
If a customer completes 2 games, they receive 12 points and is considered intermediate
If a customer completes 3 games, they receive 18 points and is considered advanced
If a customer completes 4 or more games, they receive 24 points and is considered expert
Create an application that lets the user enter the number of games they have purchased this month and displays the number of points awarded and their gamer level in their own labels when the "Check" button is clicked.
C. The table below shows different cruise packages offered, the number of nights each, and their registration fee.
Carnival (Galveston) - 3 nights - $1,000
Disney (Miami) - 7 nights - $2,000
Princess (Seattle) - 4 nights - $1,500
Royal Caribbean (San Diego) - 5 nights - $2,500
Norwegian (New Orleans) - 8 nights - $5,000
The cruise ships travel to six different locations shown in the table below, along with their lodging prices for each night at each location.
Jamaica - $250 per night
Hawaii - $325 per night
Caribbean - $175 per night
Baja - $300 per night
Panama Canal - $575 per night
Alaska - $150 per night
When a customer picks a cruise line, they must pay the registration fee plus the lodging fee for the selected location.
Note: The number of nights is listed with each cruise line. That will be multiplied by the lodging fees per night at their destination location.
Create an application that lets the user select a cruise line from one ListBox and a location from another ListBox. When the user clicks the "Calculate" button, the application should display the registration fee, the total lodging fee, and the total cost in a label. Also add a working Exit button.
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