/*Sam and Ella's Delicatessen wants you to write a
program to take orders from the Internet.
Your program asks for the item, its price, and if overnight shipping is wanted.
Regular shipping for items under $10 is $2.00; for items $10 or more shipping is $3.00.
For overnight delivery add $5.00.
*/
import java.awt.*;
import hsa.Console;
public class InterShipping
{
static Console c;
public static void main (String[] args)
{
c = new Console ();
String Item;
int Price;
boolean Over;
c.print ("Please enter the item you would like to buy: ");
Item = c.readString ();
c.print ("Please enter the price of the item: ");
Price = c.readInt ();
c.println ("Would you like regular or overnight shipping?");
Over = c.readBoolean ();
while (true)
{
c.println ("The price is: " + (Price + 5));
if (Price <= 10)
{
c.println ("The price is: " + (Price + 2));
}
else
{
c.println ("The price is: " + (Price + 3));
}
}
}
}