Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _03_Reastaurant_Dicount_May_30
- {
- class Program
- {
- static void Main(string[] args)
- {
- var groupeSize = double.Parse(Console.ReadLine());
- string packageType = Console.ReadLine().ToLower().Trim();
- var price = 0.0;
- var hall = String.Empty;
- var discountpercent = 1.0;
- if (groupeSize <= 50)
- {
- hall = "Small Hall";
- price += 2500;
- }
- else if (groupeSize <= 100)
- {
- hall = "Terrace";
- price += 5000;
- }
- else if (groupeSize <= 120)
- {
- hall = "Great Hall";
- price += 7500;
- }
- if (packageType == "normal")
- {
- discountpercent = 0.95;
- price += 500;
- }
- else if (packageType == "gold")
- {
- discountpercent = 0.90;
- price += 750;
- }
- else if (packageType == "platinum")
- {
- discountpercent = 0.85;
- price += 1000;
- }
- if (groupeSize > 120)
- {
- Console.WriteLine("We do not have an appropriate hall.");
- }
- else
- {
- Console.WriteLine("We can offer you the {0}", hall);
- Console.WriteLine("The price per person is {0:F2}$", price * discountpercent / groupeSize);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement