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
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);
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.