A H-Mart is an online retailer. H-Mart is revamping its software and your team is responsible
for developing the new system. Based on the requirements gathered, H-mart has various rules
for how payments to suppliers are to be authorized. Some payments are in response to an
approved purchase order. For approved purchase orders under $5,000, the accounting clerk can
immediately issue a check against that purchase order and sign the check. For approved
purchase orders between $5,000 and $10,000, the accounting clerk can immediately issue a
check but must additionally obtain a second signature. Payments for approved purchase orders
over $10,000 always require the approval of the accounting manager to issue the check as well
as the signature of two accounting clerks. Payments that are not covered by a purchase order
that are under $5,000 must be approved by the accounting manager and a departmental
manager that will absorb the cost of the payment into that department’s budget. Such checks
can be signed by a single accounting clerk. Payments that are not covered by a purchase order
that are between $5,000 and $10,000 must be approved by the accounting manager and a
departmental manager, and the check must have two signatures. Finally, payments exceeding
$10,000 that are not covered by a purchase order must be approved by a department manager,
the accounting manager, and the chief financial officer. Such checks require two signatures.
Now your team is tasked with designing the reports that your software is required to generate
import java.util.Scanner;
public class H_mart {
public static void approved_order() {
Scanner sc=new
Scanner(System.in);
System.out.println(" Approved
purchase order ");
System.out.println("Enter amount:
");
double
amount=sc.nextDouble();
if(amount<=5000)
{
System.out.println("-> Check is issued and signed by accounting
clerk");
}
else if(amount>5000 &&
amount<=10000)
{
System.out.println("-> Accounting clerk can issue check but need
second signature");
}
else
{
System.out.println("-> Approval of accounting manager ");
System.out.println("-> Signature of two accounting clerk
");
}
System.out.println();
}
public static void nonapproved_order() {
Scanner sc=new
Scanner(System.in);
System.out.println(" Non-Approved
purchase order ");
System.out.println("Enter amount:
");
double
amount=sc.nextDouble();
if(amount<=5000)
{
System.out.println("-> Approval of accounting manager and
departmental manager ");
System.out.println("-> Signed by a single accounting clerk
");
}
else if(amount>5000 &&
amount<=10000)
{
System.out.println("-> Approval of accounting manager and
departmental manager ");
System.out.println("-> Need two additional signature ");
}
else
{
System.out.println("-> Approval of accounting
manager,departmental manager and chief financial officer ");
System.out.println("-> Signature of two accounting clerk
");
}
System.out.println();
}
public static void main(String ar[])
{
System.out.println("
welcome to H-mart \n");
Scanner sc=new
Scanner(System.in);
//menu
while(true)
{
System.out.println("select one option: ");
System.out.println("1. Approved purchase order");
System.out.println("2. Non-Approved purchase order");
System.out.println("3. Exit");
int
choice=sc.nextInt();
switch(choice){
case 1
: approved_order();
break;
case 2
: nonapproved_order();
break;
case 3
: System.exit(0);
}
}
}
}

A H-Mart is an online retailer. H-Mart is revamping its software and your team is responsible...