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 PhotoPictures
- {
- class PhotoPictures
- {
- static void Main(string[] args)
- {
- int picturesCount = int.Parse(Console.ReadLine());
- string picturesType = Console.ReadLine();
- string orderType = Console.ReadLine();
- string type1 = "9X13";
- string type2 = "10X15";
- string type3 = "13X18";
- string type4 = "20X30";
- string orderTypeOnline = "online";
- string orderTypeOffice = "office";
- double price = 0.0;
- if (picturesType == type1 && picturesCount < 50 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.16) * 0.98;
- }
- else if (picturesType == type1 && picturesCount < 50 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.16);
- }
- else if (picturesType == type1 && picturesCount >= 50 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.16) * 0.93;
- }
- else if (picturesType == type1 && picturesCount >= 50 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.16) * 0.95;
- }
- else if (picturesType == type2 && picturesCount < 80 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.16) * 0.98;
- }
- else if (picturesType == type2 && picturesCount < 80 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.16);
- }
- else if (picturesType == type2 && picturesCount >= 80 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.16) * 0.95;
- }
- else if (picturesType == type2 && picturesCount >= 80 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.16) * 0.97;
- }
- else if (picturesType == type3 && picturesCount >= 50 && picturesCount <= 100 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.38) * 0.95;
- }
- else if (picturesType == type3 && picturesCount >= 50 && picturesCount <= 100 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.38) * 0.97;
- }
- else if (picturesType == type3 && picturesCount > 100 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.38) * 0.93;
- }
- else if (picturesType == type3 && picturesCount > 100 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.38) * 0.95;
- }
- else if (picturesType == type3 && picturesCount < 50 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 0.38) * 0.98;
- }
- else if (picturesType == type3 && picturesCount < 50 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 0.38);
- }
- else if (picturesType == type4 && picturesCount >= 10 && picturesCount <= 50 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 2.90) * 0.91;
- }
- else if (picturesType == type4 && picturesCount >= 10 && picturesCount <= 50 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 2.90) * 0.93;
- }
- else if (picturesType == type4 && picturesCount > 50 && orderType == orderTypeOnline)
- {
- price += (picturesCount * 2.90) * 0.89;
- }
- else if (picturesType == type4 && picturesCount > 50 && orderType == orderTypeOffice)
- {
- price += (picturesCount * 2.90) * 0.91;
- }
- Console.WriteLine($"{price:F2}BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement