예제 #1
0
파일: Program.cs 프로젝트: andrewchaa/Qoute
 private static void DisplayOfferDetails(Offer offer)
 {
     Console.WriteLine("Requested amount: £{0}", offer.RequestedAmount);
     Console.WriteLine("Rate: {0}", offer.Rate.ToString("#0.0%"));
     Console.WriteLine("Monthly repayment: £{0}", offer.Monthly.ToString("#0.00"));
     Console.WriteLine("Total repayment: £{0}", offer.Total.ToString("#0.00"));
 }
예제 #2
0
파일: Program.cs 프로젝트: andrewchaa/Qoute
 private static bool ValidateOffer(double requestedAmount, Offer offer)
 {
     if (offer.IsEmpty)
     {
         Console.WriteLine("Sorry, it is not possible to provide a quote for £{0} at this time.", requestedAmount);
         return true;
     }
     return false;
 }