silvana1303

food delivery

May 1st, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using System;
  2.  
  3. namespace exampreparation
  4. {
  5. class exam
  6. {
  7. static void Main(string[] args)
  8. {
  9. int chickenMenu = int.Parse(Console.ReadLine());
  10. int fishMenu = int.Parse(Console.ReadLine());
  11. int veggieMenu = int.Parse(Console.ReadLine());
  12.  
  13. double chickenPrice = chickenMenu * 10.35;
  14. double fishPrice = fishMenu * 12.40;
  15. double veggiePrice = veggieMenu * 8.15;
  16.  
  17. double products = chickenPrice + fishPrice + veggiePrice;
  18.  
  19. double dessert = products * 0.20;
  20.  
  21. double fullPrice = products + dessert + 2.50;
  22.  
  23. Console.WriteLine($"Total: {fullPrice:f2}");
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment