Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the following image as the guideline: Create a new project with one form. Give the form a meaningful name and make sure that the

Use the following image as the guideline:

Create a new project with one form. Give the form a meaningful name and make sure that the text Tip Calculator displays on the top of the form (5 points).

Change the form size: make it 600 points wide and 440 points high (5 points).

Place a picture box on the form and use the file restaurant.jpg as the source image. Make sure that the picture box is automatically sized to fit the image. Add a label on the top that shows the title of the program (Restaurant Tip Calculator) change the font size and the color according to your choice (5 points).

Add controls to the form similar to what they look in the picture (all labels are shown in bold).

Add a text box to input the amount of the bill (5 points).

Add combo box to hold the tax amount. (5 points).

Add three radio buttons for choosing the tip: 15%, 18%, and 20% (5 points).

Add a button for calculating the tip (5 points).

Add two text boxes to display the total and the total per person. Make them disabled (user should see them but not be able to change the text inside) (5 points).

Add a combo box to hold the number of guests (5 points).

Write the loops that will run when the form is loaded and populate the combo boxes (you need to use the loops to get the points):

Place the following lines in the tax combo box: 4%, 5%, 6%, and 7% (5 points)

Place the numbers 1, 2, , 12 in the combo box with the number of guests (5 points)

Add the following functionality to the program:

The user can enter the amount of the bill in the top text box (5 points).

The user can choose one of the four tax rates in the tax combo box (5 points).

The user can check one radio button at a time to choose the tip (5 points).

When the user clicks the button to calculate the total, the program should add the tax amount to the bill. The program then will check what tip was selected, calculate the amount of the tip and add it to calculate the total (5 points).

If no radio button was clicked, the program should display a message to the user asking to choose the tip amount (the program does nothing if no tip was selected) (5 points).

The program displays the calculated total in the Total text box (5 points).

The program displays everyones share in the Total per person text box (5 points).

Make sure that if nothing is selected as the tax rate or nothing is selected as the tip, the program does not display any results in the Total text box (5 points).

Check your program, make sure it runs, and no user inputs cause it to crash (5 points).

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

Step: 3

blur-text-image

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

Students also viewed these Databases questions