Advertisement
koksibg

PrintReceipt

Sep 29th, 2016
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Declaring_and_Invoking_Methods
  8. {
  9.     class Declaring_and_Invoking_Methods
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             PrintReceipt();
  14.         }
  15.         private static void PrintReceipt()
  16.         {
  17.             PrintHeader();
  18.             PrintBody();
  19.             PrintFooter();
  20.         }
  21.         private static void PrintHeader()
  22.         {
  23.             Console.WriteLine("CASH RECEIPT");
  24.             Console.WriteLine("------------------------------");
  25.         }
  26.         private static void PrintBody()
  27.         {
  28.             Console.WriteLine("Charged to____________________");
  29.             Console.WriteLine("Received by___________________");
  30.         }
  31.         private static void PrintFooter()
  32.         {
  33.             Console.WriteLine("------------------------------");
  34.             Console.WriteLine("\u00a9 SoftUni");
  35.         }
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement