kirililchev3

BlankReceipt - methods

May 28th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Practice
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             PrintReciept();
  10.         }
  11.  
  12.         private static void PrintReciept()
  13.         {
  14.             PrintHeader();
  15.             PrintBody();
  16.             PrintFooter();
  17.            
  18.         }
  19.  
  20.         private static void PrintFooter()
  21.         {
  22.             Console.WriteLine(new string ('-', 12));
  23.             Console.WriteLine('\u00A9'+ "SoftUni");
  24.         }
  25.  
  26.         private static void PrintBody()
  27.         {
  28.             Console.WriteLine("Charged to");
  29.             Console.WriteLine("Received by");
  30.         }
  31.  
  32.         private static void PrintHeader()
  33.         {
  34.             Console.WriteLine("CASH RECIEPT" + Environment.NewLine + new string ('-', 12));
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment