# Assignment 3 – Charleston Gardens Assignment

Assignment 3 – Charleston Gardens Assignment

You are asked write a computer program for Charleston Garden. When people want to enter the gardens they must pay for both admission and a tour. They have two different prices for admission: In season tickets are \$15.00 a piece and off season tickets are \$10.00 a piece. A customer can order as many tickets as they need. In addition, every ticket holder needs to pay for a tour of the gardens. They can choose a guided tour for \$5.00 per person or a self-guided tour for \$2.00 per person.

1. Every ticket must come with a tour. You can not just buy a ticket or just purchase a tour.
2. The ticket processor will know whether the ticket to be purchased is on season or off season based upon the date the customer wants to visit the gardents.
3. When a customer is purchasing a group of tickets they must be all for a guided tour or all for a self=guided tour. A customer can not buy 10 tickets and then split them up for guided or self-guided. If they want to do that they must make separate transactions.

At the end of the transaction they want to provide the customer a receipt with the following information: number of tickets, the amount the customer is charge for each ticket, the amount the customer is charge for each tour, the amount for the combination of ticket and tour, and the total charge for the entire group.

The test data below is provided so you can test your solution using visual logic for your flowchart and html kit for your javascript. By providing you with examples of the type of input you could put into your program and what the resulting output would be. DO NOT use test data in you problem statement, flowchart or in your code. In example 1 below when the input asks “how many bales of pinestraw?”, you would answer 4, then when it asks “How many yards of pinebark? you would answer 2. Your flowchart or code would then output “Bill: \$40”

input
Number of tickets: =10
In Season = “yes”
Guided Tour = “yes”

output
Number of tickets: =10
Charge for one ticket: \$15.00
Charge for one tour: \$5.00
Charge for ticket and tour: \$20.00 Total Charge: \$200.00

input
Number of tickets: = 5
In Season = “no”
Guided Tour = “no”

output
Number of tickets: = 5
Charge for one ticket: \$10.00
Charge for one tour: \$2.00
Charge for ticket and tour: \$12.00 Total Charge: \$60.00

You need to do the first step using a text editor, notepad++ is recommended. The second step is to test your solution using visual logic to create a flowchart and use the test data to test your solution. The last step is to create your solution in javaScript using html kit and again, use the test data to test your solution.

The problem statement:
Assumptions: (Scope and Constants)
Input
Calculations
Output

You will be turning in three files for this assignment

1. Text document with your problem statement.
2. .emf file (picture files) with your flowchart solution. After you finish your flowchart you will click the View menu and choose, “create flowchart metafile”
3. A .html file with your javaScript using html kit.
4. DO NOT zip your files together when you upload them. They need to uploaded separately as three files.