Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace FitnesEquipmentt
  8. {
  9. class Program
  10. {
  11.  
  12.  
  13.  
  14.  
  15. static void Main(string[] args)
  16. {
  17.  
  18.  
  19. var v = int.Parse(Console.ReadLine());
  20. var finalPrice = 0.0m;
  21.  
  22. for (int i = 0; i < v; i++)
  23. {
  24. var equipment = Console.ReadLine();
  25.  
  26.  
  27. switch (equipment)
  28. {
  29.  
  30. case "exercise bike":
  31. finalPrice += 1789;
  32. break;
  33. case "treadmill":
  34. break;
  35. case "cross trainer":
  36. break;
  37. case "dumbbells":
  38. break;
  39.  
  40.  
  41.  
  42. }
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. }
  50. Console.WriteLine("{0:0.00}",finalPrice);
  51.  
  52.  
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement