Advertisement
Guest User

01.Blank_Receipt

a guest
Jun 5th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. namespace _01.Blank_Receipt
  2. {
  3.     using System;
  4.  
  5.     class Program
  6.     {
  7.         public static void Main()
  8.         {
  9.             PrintReceipt();
  10.         }
  11.  
  12.         public static void PrintReceipt()
  13.         {
  14.             PrintHeader();
  15.             PrintBody();
  16.             PrintFooter();
  17.         }
  18.  
  19.         public static void PrintHeader()
  20.         {
  21.             Console.WriteLine("CASH RECEIPT");
  22.             Console.WriteLine("------------------------------");
  23.         }
  24.  
  25.         public static void PrintBody()
  26.         {
  27.             Console.WriteLine("Charged to____________________");
  28.             Console.WriteLine("Received by___________________");
  29.         }
  30.  
  31.         public static void PrintFooter()
  32.         {
  33.             Console.WriteLine("------------------------------");
  34.             Console.WriteLine("\u00a9 SoftUni");
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement