Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the whole question Code needed in C#, if you can't answer in C# then don't answer start with: using System; using static System.Console;

This is the whole question

Code needed in C#, if you can't answer in C# then don't answer

start with:

using System;

using static System.Console;

----------------------------------------------------

A friend of yours is trying to overcome pandemic by going on a cruise to the Mediterranean. This cruise leaves from Barcelona, Spain and calls on ports in Italy, France and Spain. You will write a program to calculate the cruise cost for two people travelling in one cabin. All passengers of a cruise have access to multiple dining facility on board. Cost of food is included with room booking. The rooms do not come with others costs such as drinks (alcohol and non-alcohol), shore excursions, and tips to the cruise staff. The additional costs are bundled as packages. Cost of these packages vary. All packages are not available to all passengers and are associated with the room type a passenger chooses to book. Tables below show room types, packages and association of packages with room types. Passengers are required to book a package.

Table 1: Shows the room types and its cost for an 8-day cruise from Barcelona

Table 2: Packages

Table 3: Availability of Packages for various staterooms

The estimated airfare to Barcelona from a city in USA is $1200 per person. Incidental expense for the trip is $500. Of course, any passenger can choose to spend more than $500. The additional incidental expenditure does not have to be included in the estimate. Please write a program to calculate the estimated cruise cost for a couple travelling from New York. Run the program multiple times for the following cruise options: Estimate 1: Stateroom is Haven, Package P1 Estimate 2: Stateroom is Balcony, Package P4 Estimate 3: Stateroom is Spa, Package is P3

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

Financial Accounting in an Economic Context

Authors: Jamie Pratt

8th Edition

9781118139424, 9781118139431, 470635290, 1118139429, 1118139437, 978-0470635292

Students also viewed these Programming questions