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 _30._05___Excercise___Cond.Loops
- {
- class Program
- {
- static void Main(string[] args)
- {
- var groupSize = int.Parse(Console.ReadLine());
- var package = Console.ReadLine();
- if (0 < groupSize && groupSize <= 50)
- {
- Console.WriteLine("We can offer you the Small Hall");
- if (package.Equals("Normal"))
- {
- var pricePerPerson = (3000 - ((2500 + 500) * 0.05)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- else if (package.Equals("Gold"))
- {
- var pricePerPerson = (3250 - ((2500 + 750) * 0.10)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- else
- {
- var pricePerPerson = (3500 - ((2500 + 1000) * 0.15)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- }
- else if (50 < groupSize && groupSize <= 100)
- {
- Console.WriteLine("We can offer you the Terrace");
- if (package.Equals("Normal"))
- {
- var pricePerPerson = (5500 - ((5000 + 500) * 0.05)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- else if (package.Equals("Gold"))
- {
- var pricePerPerson = (3750 - ((5000 + 750) * 0.10)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- else
- {
- var pricePerPerson = (6000 - ((5000 + 1000) * 0.15)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- }
- else if (100 < groupSize && groupSize <= 120)
- {
- Console.WriteLine("We can offer you the Great Hall");
- if (package.Equals("Normal"))
- {
- var pricePerPerson = (8000 - ((7500 + 500) * 0.05)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- else if (package.Equals("Gold"))
- {
- var pricePerPerson = (8250 - ((7500 + 750) * 0.10)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- else
- {
- var pricePerPerson = (8500 - ((7500 + 1000) * 0.15)) / groupSize;
- Console.WriteLine($"The price per person is {pricePerPerson:F2}$");
- }
- }
- else
- {
- Console.WriteLine("We do not have an appropriate hall.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement