import java.io.*
class S8E1
{
public static void main
(String [] args
) throws Exception
{
InputStreamReader input =
new InputStreamReader (System.
in);
BufferedReader reader =
new BufferedReader (input
);
String itemChoice, overnightDelivery;
double itemCost, overnightDeliveryCharge, shippingCharge;
System.
out.
println ("Enter the item you would like to purchase");
itemChoice = reader.
readLine();
System.
out.
println ("Enter the cost in dollars and cents (ie. $5.00 would be inputted as 5.00)");
if (itemCost <=
9.
99)
{
shippingCharge =
2.
00;
}
else
{
shippingCharge =
3.
00;
}
System.
out.
println ("Would you like overnight delivery? Y or N?");
overnightDelivery = reader.
readLine();
if (overnightDelivery ==
"Y")
{
overnightDeliveryCharge =
5.
00;
}
else
{
overnightDeliveryCharge =
0.
00;
}
System.
out.
println ("Invoice: \n " + itemChoice +
" :\t\t\t" + itemCost +
"\n shipping :\t\t" + shippingCharge
);
System.
out.
print(" Overnight Deilvery :\t" + overnightDeliveryCharge + \n Total :\t\t
" + ((itemCost + shippingCharge) + overnightDeliveryCharge));