Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

Understand the requirements for diversity management

Answered: 1 week ago

Question

dy dx Find the derivative of the function y=(4x+3)5(2x+1)2.

Answered: 1 week ago

Question

=+ What typical employee will the IA compare him/

Answered: 1 week ago

Question

=+7 What is the overall cost of the international assignment?

Answered: 1 week ago