Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. /**
  2.  * Created by todor on 17.05.2017 г..
  3.  */
  4. public class P01_BlankReceipt {
  5.     public static void main(String[] args) {
  6.         blankReceipt();
  7.     }
  8.    
  9.     static void blankReceipt(){
  10.         receiptHeader();
  11.         receiptBody();
  12.         receiptFooter();
  13.     }
  14.    
  15.     static void receiptHeader(){
  16.         System.out.println("CASH RECEIPT");
  17.         System.out.println("------------------------------");
  18.     }
  19.    
  20.     static void receiptBody(){
  21.         System.out.println("Charged to____________________");
  22.         System.out.println("Received by___________________");
  23.     }
  24.    
  25.     static void receiptFooter(){
  26.         System.out.println("------------------------------");
  27.         System.out.println("\u00A9 SoftUni");
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement