Description
Visual Basic 2010 Shelly Cashman Series Chapter 8 Case Problem 5 MISTY RIVER CAMPGROUND RATES
MISTY RIVER CAMPGROUND RATES
Design a Windows application and write the code that will execute according to the program requirements in Figure 8-82. Before designing the user interface, create a Use Case definition. Before writing the code, create an event planning document for each event in the program.
REQUIREMENTS DOCUMENT
Date submitted: March 17, 2014
Application title: Misty River Campground Rates
Purpose: This application assists the campground manager to compute the total bill for a camping stay at a campground.The application will calculate the total cost including 7.5% state tourist tax.
Program Procedures: The user can select the type of campground site, number of days, and type of discount program.
Algorithms, Processing, Conditions:
1. The user first views a Windows form that displays the campground name, a picture of and the campground, a ComboBox object requesting the type of site: tent site $20 a night, RV site $35 a night, or cabin rental $55 a night, the number of nights (TextBox object), and if they have one of the following discounts: AAA (10%) or Military (12%).
2. After the information has been entered, a Sub procedure displays the labels: Subtotal Billing Amount for Your Stay,Taxes for Your Stay, and Final Total.
3. Pass the cost of the type of camping site and the number of nights to a Sub procedure to calculate the subtotal of the camp site.Do not display the amount in this procedure.
4. Pass the subtotal and the discount amount to a Function procedure.Determine the subtotal based on the type of discount. Pass the amount back to the calling method.
5. Another Function procedure should compute the 7.5% tax. Pass that value back to the calling method.
6. Pass the subtotal, tax, and final cost to a Sub procedure to display the results.
Notes and Restrictions: 1. The input values should be validated in a separate procedure by a Try-Catch block.
Comments: 1. The picture should be selected from pictures available on the Web.
Reviews
There are no reviews yet.