Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CatShirt
- {
- class Program
- {
- static void Main()
- {
- double sleeveSize = double.Parse(Console.ReadLine());
- double frontSize = double.Parse(Console.ReadLine());
- string fabricTypes = Console.ReadLine();
- string tieOrNot = Console.ReadLine();
- double sum = (sleeveSize * 2 + frontSize * 2) * 1.1 / 100;
- if (fabricTypes == "Linen")
- {
- sum *= 15;
- }
- else if (fabricTypes == "Cotton")
- {
- sum *= 12;
- }
- else if (fabricTypes == "Denim")
- {
- sum *= 20;
- }
- else if (fabricTypes == "Twill")
- {
- sum *= 16;
- }
- else if (fabricTypes == "Flannel")
- {
- sum *= 11;
- }
- sum += 10;
- if (tieOrNot == "Yes")
- {
- sum *= 1.2;
- }
- Console.WriteLine($"The price of the shirt is: {sum:f2}lv.");
- }
- }
- }
Add Comment
Please, Sign In to add comment