Assignemnt #101 and Keychain Store
Code
///Name: Daniel Tiffany-Appleton
///Period: 7
///Program Name: Keychain Store
///File Name: KeychainStore
///Date Finished: 3/4/16
import java.util.Scanner;
public class KeychainStore
{
public static void main( String args[] )
{
Scanner keyboard = new Scanner(System.in);
int choice;
System.out.println("Ye Olde Keychain Shoppe");
System.out.println(" ");
choice = 0;
do
{
System.out.println("1. 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.println(" ");
System.out.print("Please 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("Not a choice.");
}
}while( choice != 4 );
}
public static void addKeychains()
{
System.out.println(" ");
System.out.println("ADD KEYCHAINS");
System.out.println(" ");
}
public static void removeKeychains()
{
System.out.println(" ");
System.out.println("REMOVE KEYCHAINS");
System.out.println(" ");
}
public static void viewOrder()
{
System.out.println(" ");
System.out.println("VIEW ORDER");
System.out.println(" ");
}
public static void checkout()
{
System.out.println(" ");
System.out.println("CHECKOUT");
System.out.println(" ");
return;
}
}
Picture of the output