Question: Assignment 3 need code visual studio For this assignment you will created an application for Hales Department Store. The application will calculate the cost of
Assignment 3 need code visual studio
For this assignment you will created an application for Hales Department Store. The application will calculate the cost of a comforter based on its size and whether the customer will pick it up in the store or have the comforter shipped to them. An example of what the form might look like is presented below.
The form contains four radio buttons, a group box, a check box, two buttons (Display cost, and Exit) and two labels (one to display the total cost and an identifying label with the text Cost:). The price of the comforters and the cost of shipping is listed below:
| Item | Cost |
| Twin | $39.99 |
| Full | $49.99 |
| Queen | $49.99 |
| King | $69.99 |
| Shipping fee | $5 |
The total cost will be the cost of the selected comforter plus the cost of shipping. When customer selects Pick up in store the shipping fee is not charged.
The Display cost button should calculate the total cost and display it with a dollar sign and two decimal places.
Please consider the following when creating your solution:
1. Use HalesProject for the project name and HalesSolution for the solution name.
2. Create a Windows Forms application and adjust the appropriate form-related items including:
Change the forms file name to Main Form.vb
Change the forms Name to frmMain
Set the forms start position to center screen (StartPosition property
Set an appropriate form title (Text property).
Set/verify the name of the startup form to frmMain
Use appropriate names for your controls,including the appropriate 3-letterID
prefixes.
Code the Display Cost button. (That is, code the Display Cost buttons Click event procedure. This is where you will determine which comforters radio button has been selected, calculate the cost of the comforter plus the shipping (unless the Pick up in store check box is selected), and assign the total cost to your Cost label. The value assigned to the Cost label should be converted to a string using the ToString(C2) method in order to include a dollar sign and two decimal places.
Code the Exit button. (That is, code the Exit buttons Click event procedure)
Code the Check Changed procedures for the radio buttons and the checkbox so whenever one of the items is changed the Cost label is cleared.
Establish appropriate Access Keys and Tab order.
Add an appropriate comment header to your program and any other appropriate comments in the code.
Test your program. Make sure to test the Access Keys, Tab order, Exit button and Display Cost Buttons.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
