Advertisement
Guest User

Untitled

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