Advertisement
Guest User

Hotel reservation

a guest
Jul 3rd, 2019
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace P04HotelReservation
  4. {
  5.     public class Program
  6.     {
  7.         public static void Main(string[] args)
  8.         {
  9.             string[] input = Console.ReadLine()
  10.                 .Split(" ", StringSplitOptions.RemoveEmptyEntries);
  11.  
  12.             decimal pricePerDay = decimal.Parse(input[0]);
  13.             int numberOfDays = int.Parse(input[1]);
  14.             //Parse input[2] to Season and input[3] to discount?
  15.            
  16.             decimal price = PriceCalculator.CalculatePrice(pricePerDay, numberOfDays, season, discount);
  17.             Console.WriteLine($"{price:f2}");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement