Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.59 KB | None | 0 0
  1. using System;
  2.  
  3. namespace asd
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string typeSushi = Console.ReadLine();
  10.             string restourantName = Console.ReadLine();
  11.             int numberOfPurchases = int.Parse(Console.ReadLine());
  12.             string purchase = Console.ReadLine();
  13.             double price = 0.0;
  14.             double addedPrice = 0.0;
  15.  
  16.             if (restourantName == "Sushi Zone" && restourantName == "Sushi Time" && restourantName == "Sushi Bar" && restourantName == "Asian Pub")
  17.             {
  18.                 if (typeSushi == "sashimi")
  19.                 {
  20.                     price = 4.99;
  21.                 }
  22.                 else if (typeSushi == "maki")
  23.                 {
  24.                     price = 5.29;
  25.                 }
  26.                 else if (typeSushi == "uramaki")
  27.                 {
  28.                     price = 5.99;
  29.                 }
  30.                 else if (typeSushi == "temaki")
  31.                 {
  32.                     price = 4.29;
  33.                 }
  34.                 if (typeSushi == "sashimi")
  35.                 {
  36.                     price = 5.49;
  37.                 }
  38.                 else if (typeSushi == "maki")
  39.                 {
  40.                     price = 4.69;
  41.                 }
  42.                 else if (typeSushi == "uramaki")
  43.                 {
  44.                     price = 4.49;
  45.                 }
  46.                 else if (typeSushi == "temaki")
  47.                 {
  48.                     price = 4.29;
  49.                 }
  50.                 if (typeSushi == "sashimi")
  51.                 {
  52.                     price = 5.25;
  53.                 }
  54.                 else if (typeSushi == "maki")
  55.                 {
  56.                     price = 5.55;
  57.                 }
  58.                 else if (typeSushi == "uramaki")
  59.                 {
  60.                     price = 6.25;
  61.                 }
  62.                 else if (typeSushi == "temaki")
  63.                 {
  64.                     price = 4.75;
  65.                 }
  66.                 if (typeSushi == "sashimi")
  67.                 {
  68.                     price = 4.50;
  69.                 }
  70.                 else if (typeSushi == "maki")
  71.                 {
  72.                     price = 4.80;
  73.                 }
  74.                 else if (typeSushi == "uramaki")
  75.                 {
  76.                     price = 5.50;
  77.                 }
  78.                 else if (typeSushi == "temaki")
  79.                 {
  80.                     price = 5.50;
  81.                 }
  82.             }
  83.             double totalPrice = price * numberOfPurchases;
  84.             if ()
  85.             {
  86.  
  87.             }
  88.         }
  89.     }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement