Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Interactive GUI for a resort Create an interactive GUI program for a resort. Bel

ID: 653238 • Letter: I

Question

Interactive GUI for a resort

Create an interactive GUI program for a resort. Below is the way your Resort GUI must look

and here are the things that it needs.

1) The base price for a room is $200 dollars and must be shown in the TextField upon

2) A guest can choose from several options by selecting the appropriate CheckBox.

Reserving a room for the weekend night adds $100 dollars to the price, including

breakfast adds $20, and including a round of golf adds $75 dollars. A guest can select

none, some, or all of these premium additions.

3) Each time the user changes the option package, the price is recalculated.

The following is how your Resort GUI must look like upon startup. Choose an appropriate font

of size 20 for the font Resort Price Calculator. The second label must be color red to alert the

customer of the base price for a room.

Explanation / Answer

Open windows form in C#.

Add Label, Textbox, checkbox and one more textbox.

// To code for label

Label1.font = '20';

Label2.forecolor = 'Red';

Label1.Text = "Resort Price Calculator";

Label2.Text = "Base price is 200";

// for checkbox control

CheckBox1.Text = "Weekend Night";

CheckBox2.Text = "Include Breakfast";

CheckBox3.Text = "Include Rounf Golf";

Label3.Text = "Total Price";

if(CheckBox1.Checked = true)

{

TextBox1.Text = "300";

}

if(CheckBox2.Checked = true)

{

TextBox1.Text = "220";

}

if(CheckBox1.Checked = true && CheckBox2.Checked = true && CheckBox3.Checked = true)

{

TextBox1.Text = "395";

}

if(CheckBox3.Checked = true)

{

TextBox1.Text = "275";

}

if(CheckBox1.Checked = true && CheckBox2.Checked = true)

{

TextBox1.Text = "320";

}

if(CheckBox1.Checked = true && CheckBox3.Checked = true)

{

TextBox1.Text = "375";

}

if(CheckBox2.Checked = true && CheckBox3.Checked = true)

{

TextBox1.Text = "275";

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote