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 _12._12._2019
- {
- class Program
- {
- static void Main(string[] args)
- {
- int people = int.Parse(Console.ReadLine());
- string package = Console.ReadLine();
- double price = 0;
- bool check = true;
- string hall = "";
- if(people > 0 && people <= 50)
- {
- price = 2500;
- hall = "small hall";
- }
- else if(people > 50 && people <= 100)
- {
- price = 5000;
- hall = "terrace";
- }
- else if(people > 100 && people <= 120)
- {
- price = 7500;
- hall = "great hall";
- }
- else
- {
- Console.WriteLine("We do not have an approprite hall!");
- check = false;
- }
- if (check)
- {
- if (package == "Normal")
- {
- price += 500;
- price *= 0.95;
- }
- else if (package == "Gold")
- {
- price += 750;
- price *= 0.9;
- }
- else if (package == "Platinum")
- {
- price += 1000;
- price *= 0.85;
- }
- }
- Console.WriteLine("We can offer you the {0}", hall);
- Console.WriteLine("The price per person is {0:F2}$", price/people);
- Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment