Advertisement
Guest User

Methods and Debugging - Lab - 01. Blank Receipt (PART 2)

a guest
May 17th, 2017
143
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 PrintReceipt()
  11.     {
  12.         PrintHeader();
  13.         PrintBody();
  14.         PrintFooter();
  15.     }
  16.  
  17.     static void PrintHeader()
  18.     {
  19.         Console.WriteLine("CASH RECEIPT");
  20.         Console.WriteLine("------------------------------");
  21.     }
  22.  
  23.     static void PrintBody()
  24.     {
  25.         Console.WriteLine("Charged to____________________");
  26.         Console.WriteLine("Received by___________________");
  27.     }
  28.  
  29.     static void PrintFooter()
  30.     {
  31.         Console.WriteLine("------------------------------");
  32.         Console.WriteLine("\u00A9 SoftUni");
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement