Assignment #101 and Keychains for Sale
Code
///Name: Tim Gibson
///Period: 6
///Project Name: Keychains for Sales
///File Name: Keychains.java
///Date Finished: 11/16/15
import java.util.Scanner;
public class Keychains
{
public static void main ( String[] args )
{
Scanner kb = new Scanner(System.in);
System.out.println( "Keychain Shop" );
int choice;
do
{
System.out.print( "\n1. Add Keychains to Order \n2. Remove Keychains from Order \n3. View Current Order \n4. Checkout \n\nPlease Enter your choice: " );
choice = kb.nextInt();
System.out.println();
if ( choice == 1 )
addKeychains();
else if ( choice == 2 )
removeKeychains();
else if ( choice == 3 )
viewOrder();
else if ( choice == 4 )
checkout();
else
System.out.print( "Error" );
} while ( choice != 4 );
}
public static void addKeychains()
{
System.out.println( "ADD KEYCHAINS" );
}
public static void removeKeychains()
{
System.out.println( "REMOVE KEYCHAINS" );
}
public static void viewOrder()
{
System.out.println( "VIEW ORDER" );
}
public static void checkout()
{
System.out.println( "GOODBYE" );
}
}
Picture of the output