Advertisement
Guest User

Methods and Debugging - Lab - 01. Blank Receipt

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