Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Key West RV Resort has 25 campsites for RVs and campers under 40 ft. long. The cost for 1 night is broken down into

The Key West RV Resort has 25 campsites for RVs and campers under 40 ft. long. The cost for 1 night is broken down into 4 classes.

1. Regular Campsites include: back-in, water, Electric & Sewer a. Price $55.00/night b. Sites numbered 1-10

2. Premium Campsites include: pull thru, water Electric & Sewer a. Price $59.50/night b. Sites numbered 11-20

3. Water front Campsites include : water and Electric a. Price $69.75/night b. Sites numbered 21-25

4. Water Front Premium Campsites include: pull thru, water Electric & Sewer a. Price $99.99/night b. Sites numbered 26-30

Write a C++ program that will prompt the user for the desired campsite number and the number of nights to stay. Use switch to determine site cost. The tax rate is 10% Calculate the total cost for the entire stay. Output the number of nights and the total cost.

Ex: site 7 for 3 nights would be $165.00 plus 10% for a total cost of $181.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

Write down the circumstances in which you led.

Answered: 1 week ago