Question: need in visual basic 2015 code. please not properties of labels and buttons. exercises-2pdf Adobe Acrobat Reader DC dit View Window Help ne Tools Extra


need in visual basic 2015 code. please not properties of labels and buttons.
exercises-2pdf Adobe Acrobat Reader DC dit View Window Help ne Tools Extra exerises-2.pdf x 108% Extra 9-1 Calculate reservation totals In this exereise, you'll add code that calculates the number of nights. total price. and average price for a reservation based on the arival and departure dates the user enters. Reservations Ae date 10 182016 Depature date 10/21/2016 Number d nights 3 Tatal pnice: 5480 0 Avg pice per night $160 Open the project and implement the calculations 1. Open the Reservations project in the Extra Exercises Chapter 09 Reservations directory Add code to get the arrival and departure dates the user enters when the user clicks the Calculate button. Then, caleulate the number of days between those dates. calculate the total price based on a price per night of $160, calculate the average price per night, and display the results 2. . Test the application to be sure it works comeetly. At this point. the average price will be the same as the nightly price Enhance the way the form works 4. Add an event handler for the Load event of the form. This event handler should get the current date and tluee days after the cutreat date and assign these dates to the Arrival Date and Departure Date text boxes as default values. Be sure to format the dates as shown above 5. Modify the code so Friday and Satuday aights are charged at Si$0 and other nights are chasged at S160. One way to do this is to uss a while loop that checks the day for each date of the ieservation 6. Test the application to be sure that the default dates are displayed correctly and tiant the totals are caleulated correctly exercises-2pdf Adobe Acrobat Reader DC dit View Window Help ne Tools Extra exerises-2.pdf x 108% Extra 9-1 Calculate reservation totals In this exereise, you'll add code that calculates the number of nights. total price. and average price for a reservation based on the arival and departure dates the user enters. Reservations Ae date 10 182016 Depature date 10/21/2016 Number d nights 3 Tatal pnice: 5480 0 Avg pice per night $160 Open the project and implement the calculations 1. Open the Reservations project in the Extra Exercises Chapter 09 Reservations directory Add code to get the arrival and departure dates the user enters when the user clicks the Calculate button. Then, caleulate the number of days between those dates. calculate the total price based on a price per night of $160, calculate the average price per night, and display the results 2. . Test the application to be sure it works comeetly. At this point. the average price will be the same as the nightly price Enhance the way the form works 4. Add an event handler for the Load event of the form. This event handler should get the current date and tluee days after the cutreat date and assign these dates to the Arrival Date and Departure Date text boxes as default values. Be sure to format the dates as shown above 5. Modify the code so Friday and Satuday aights are charged at Si$0 and other nights are chasged at S160. One way to do this is to uss a while loop that checks the day for each date of the ieservation 6. Test the application to be sure that the default dates are displayed correctly and tiant the totals are caleulated correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
