Question: Instructions for Mini Project: 1. Create a Windows Forms application. Use the following names for the project and solution: Hotel Reservation Project and Hotel Reservation
Instructions for Mini Project: 1. Create a Windows Forms application. Use the following names for the project and solution: Hotel Reservation Project and Hotel Reservation Solution. 2. Name the forms file Main Form and change the forms name to frmMain. 3. Set the forms font type and size to Segoe UI, size 9. 4. Create the interface shown in Figure 1. Figure 1. Interface for Mini Project Room types are 16pt size. There are 7 GroupBoxes, 9 TextBoxes, 10 RadioButtons, 3 CheckBoxes, and 7 labels for displaying output. 5. Each room can accommodate a maximum of five guests. If the number of guests is greater than the capacity of the rooms requested, a message should prompt the user that they have exceeded the maximum guests per room. Youll need to use a message box to code this part. 6. Values you will need for your code: Item Value Type King bed room price (reg) $160 Named constant King bed room price (mem) $150 Named constant Double Queen beds room price (reg) $180 Named constant Double Queen beds room price (mem) $170 Named constant Two Double beds room price (reg) $145 Named constant Two Double beds room price (mem) $140 Named constant Discount rate for Corporate 8% Named constant Discount rate for AAA/CAA 6% Named constant Discount rate for Government & Military 10% Named constant Promo code discount rate 15% Named constant Tax rate 14.25% Named constant Room fee $12.5 Named constant Promo code phrase MISRULES Named constant Some formulas to help you: Room charge = number of rooms reserved * number of nights * daily room charge Tax amount = room charge * tax rate Room fee amount = number of rooms reserved * number of nights * daily room charge fee 7. All special rates are applied to the room charge. When coding you MUST use SELECT CASE statement to reflect the application of special rates. 8. The promo code is applied after special rate adjustments. Make sure that trailing and leading spaces are trimmed. The promo code is MISRULES (no spaces). User must enter this code (without quotation marks) to be eligible for the promo discount. Any variations of the word MISRULES i.e. lowercase or uppercase letters is valid. 9. Currency values must be displayed with a dollar sign and 2 decimal places. 10. The calculated amounts should be cleared when a change is made to any of the input items (ie. check boxes, radio buttons, and text boxes). 10. Enter the three Option statements in the code editor window. Enter your names and the project date as a comment at the very top. When declaring named constants or variables, pick Double data type. All price amounts, discount rates, tax rates, fees, and promo code phrase must be declared. 11. Code the key press event so that text boxes (except for the promo code) accept ONLY numbers and a backspace key. 12. Code the Clear button event to erase all input/output values (checkboxes, radio buttons to default values, textboxes, and labels for output). 13. Code Forms load event to set the enabled values to false for 6 text boxes, where the user is expected to enter the number of rooms and the number of nights. 14. Code the check boxes checked changed event to make sure the text boxes for rooms and nights are enabled
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
