Programing C The High adventure Agency offers four vacation
Programing C#
The High adventure Agency offers four vacation packages for thrill-seeking customers. The rates and options vary for each package. You are asked to design , and code a web application program to calculate and itemize the charges for each package, which are described below:
Devil’s Courthouse Adventure Weekend:
An action packed three days weekend spent camping, rock climbing, and rappelling at Devil’s Courthouse, North Carolina. This getaway for novices and expert alike. Climbing instructor is available to beginners at an optional low price. Camping equipment rental is also available.
Rates: Base charge: $350 per person
Climbing instruction: $100 per person
Equipment rental $ 40/day per person
Scuba Bahama :
A week-long cruise to Bahama with three day with three days of scuba diving. Those with prior experience may dive right in, while beginners should choose to take the optional, but very affordable lesson.
Rates: Base charge $1000 per person
Scuba instruction $100 per person
Sky Dive Colorado:
Four thrilling days with expert sky diving instructors in Colorado Springs. For lodging, you may choose either the Wilderness Lodge or Luxury Inn.
Rates: Base charge $400 per person
Wilderness Lodge $65/day per person
Luxury Inn $120/day per person
Baron Cliff :
Eight days spent hiking and exploring caves in the Barron Cliff Wilderness , in Tennessee. Camping equipment rental is available.
Rates: Base charge $700 per person
Equipment rental $40/day per person
Note: A 10% discount on the base charge of any package is given for a party of 5 or more. A 50% deposit is required to reserve the package.
Program Design and Run:
User selects one of the vacation packages, questions such as how many people will be going on the trip, and other necessary input will be accumulated. Program calculates the charges for that particular package. To compare packages each user can check more than one package for different adventure, this process repeats until the user chooses to exit the program.
In addition, you may want to add some sort of propaganda for each adventure, such as activating a hyperlink to show a website or a picture of each adventure.
Sample Output: Show following information using a ListBox
------------------------------------------------
Total number of people in a party
Number of people who will rent camping equipments
Number of people who will need instructions
Number of people who are advanced climbers
Base charges : $
Instruction Cost: $
Equipment Rental Cost: $
Discount: $
Total Charges: $
Required Deposit: $
Solution
Answer: See the code below:
Page layout
--------------------------------
<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\" />
<title>Tour Package Selection</title>
<style>
body {
background: #fff;
color: #505050;
font: 14px \'Segoe UI\', tahoma, arial, helvetica, sans-serif;
margin: 20px;
padding: 0;
}
#header {
background: #efefef;
padding: 0;
}
h1 {
font-size: 48px;
font-weight: normal;
margin: 0;
padding: 0 30px;
line-height: 150px;
}
p {
font-size: 20px;
color: #fff;
background: #969696;
padding: 0 30px;
line-height: 50px;
}
#main {
padding: 5px 30px;
}
.section {
width: 21.7%;
float: left;
margin: 0 0 0 4%;
}
.section h2 {
font-size: 13px;
text-transform: uppercase;
margin: 0;
border-bottom: 1px solid silver;
padding-bottom: 12px;
margin-bottom: 8px;
}
.section.first {
margin-left: 0;
}
.section.first h2 {
font-size: 24px;
text-transform: none;
margin-bottom: 25px;
border: none;
}
.section.first li {
border-top: 1px solid silver;
padding: 8px 0;
}
.section.last {
margin-right: 0;
}
ul {
list-style: none;
padding: 0;
margin: 0;
line-height: 20px;
}
li {
padding: 4px 0;
}
a {
color: #267cb2;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div id=\"header\">
<h1>Tour Package Selection</h1>
<p>This site lets you compare and select tour packages</p>
</div>
<div id=\"main\">
<div class=\"section first\">
<h2>Following packages are available:</h2>
<ul>
<li><a href=\"\">Devil’s Courthouse Adventure Weekend</a></li>
<li><a href=\"\">Scuba Bahama</a></li>
<li><a href=\"\">Dive Colorado</a></li>
<li><a href=\"\">Baron Cliff</a></li>
</ul>
</div>
<div class=\"section\">
<h2>Tour Selection</h2>
Select a package from list box below:<br />
<select id=\"pkg_list\" size=\"5\" name=\"pkg_listbox\">
<option value=\"Courthouse Adventure Weekend\">Courthouse Adventure Weekend</option>
<option value=\"Scuba Bahama\">Scuba Bahama</option>
<option value=\"Dive Colorado\">Dive Colorado</option>
<option value=\"Baron Cliff\">Baron Cliff</option>
</select>
</div>
<div class=\"section\">
<h2>Compare Packages</h2>
Select any number of packages and click Compare.<br />
<select id=\"pkg_list\" size=\"5\" name=\"pkg_listbox\" multiple>
<option value=\"Courthouse Adventure Weekend\">Courthouse Adventure Weekend</option>
<option value=\"Scuba Bahama\">Scuba Bahama</option>
<option value=\"Dive Colorado\">Dive Colorado</option>
<option value=\"Baron Cliff\">Baron Cliff</option>
</select>
</div>
</div>
</body>
</html>
------------------------------------------------



