Assignemnt #101 and Keychains For Sale
Code
/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Keychains For Sale
/// File Name: KeychainsForSale.java
/// Date Finished: 4/11/2016
import java.util.Scanner;
public class KeychainsForSale
{
public static void main ( String[] args )
{
int choice;
System.out.println("Ye Olde Keychain Shoppe");
do
{
Scanner keyboard = new Scanner(System.in);
System.out.println("\n1. Add Keychains to Order");
System.out.println("2. Remove Keychains from Order");
System.out.println("3. View Current Order");
System.out.println("4. Checkout");
System.out.print("\nPlease enter your choice: ");
choice = keyboard.nextInt();
if ( choice == 1 )
addKeychains();
else if ( choice == 2 )
removeKeychains();
else if ( choice == 3 )
viewOrder();
else if ( choice == 4 )
checkout();
else
System.out.println("\nERROR");
}while(choice != 4);
}
public static void addKeychains()
{
System.out.println("\nADD KEYCHAINS");
}
public static void removeKeychains()
{
System.out.println("\nREMOVE KEYCHAINS");
}
public static void viewOrder()
{
System.out.println("\nVIEW ORDER");
}
public static void checkout()
{
System.out.println("\nCHECKOUT");
}
}
Picture of the output