Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

using Java I need the UML and pseudocode In this lab, using Object Oriented prog

ID: 3851788 • Letter: U

Question

using Java I need the UML and pseudocode


In this lab, using Object Oriented programming to write the code of an application for a Convenience Store to print out the receipt for each transaction sale in the following format: Date: 04/22/2016 Transaction ID: Item Id: Number of items sold: Unit price: Subtotal: Sale tax(8.25%) Total: 12 12.5 150.0 12.4 162.4 Amount paid: Balance: 200.0 -37.6 Receipt holds the information of transaction id, item id, item price, the number of items sole, the money the customer pays and these information are entered from the keyboard. Also, for the receipt, using the following formulas to calculate the subtotal, sale tax and total: Subtotal item price * number of items Sale tax subtotal * 8.25% Total subtotalsale tax Balance = amount paid-total

Explanation / Answer

Import java.util.scanner;

Class Store

{

    Public static void main(String args[])

    {

     Int t_id, I_id, item_sold, paid;

    Float item_price, subtotal, tax, total, balance;

   Scanner sc = new scanner(system.in);

   System.out.println(” enter the transaction id”);

T_id = sc.nextInt();

   System.out.println(” enter the item id”);

   I_id = sc.nextInt();

   System.out.println(” enter the item price”);

   Item_price= sc.nextFloat();

   System.out.println(” enter the total item sale”);

   Item_sold= sc.nextInt();

   System.out.println(” enter the amount customer pays”);

paid = sc.nextInt();

subtotal= item_price*item_sold;

   tax=subtotal*8.25;

   total=subtotal + tax;

   balance = paid – total;

date d= new date();

   System.out.println(“Date+” +d);

System.out.println(“Transaction Id:          +” +T_id);

System.out.println(“Item id:                    +” +I_id);

System.out.println(“Number of item sold:    +“ +item_sold);

System.out.println(“Unit price:         +" + Item_price);

System.out.println(“Subtotal:             +” + subtotal);

System.out.println(“Sales tax(8.25%)    +” +tax);

System.out.println(“Total:                 +” +total);

System.out.println(“------------------------------------------------------------------------------”);

System.out.println(“Amount paid            +” +paid);

System.out.println(“Balance             =” +balance);

}

}