Methods #101 (I call them Memechains)
Code
/// Name: Amir Salehi
/// Period: 7
/// Program Name: KeyChains for Sale
/// File Name:KeyChainsforSale.java
/// Date Finished: 4/8/2016
import java.util.Scanner;
public class KeyChainsforSale
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
System.out.println();
System.out.println( "KEYCHAIN SHOP" );
System.out.println();
int choice;
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();
System.out.println();
if ( choice == 1 )
addKeychains();
else if ( choice == 2 )
removeKeychains();
else if ( choice == 3 )
viewOrder();
else if ( choice == 4 )
checkout();
}while ( choice != 4 );
}
public static void addKeychains()
{
System.out.println( "ADD KEYCHAINS" );
System.out.println();
}
public static void removeKeychains()
{
System.out.println( "REMOVE KEYCHAINS" );
System.out.println();
}
public static void viewOrder()
{
System.out.println( "VIEW ORDER" );
System.out.println();
}
public static void checkout()
{
System.out.println( "CHECKOUT" );
System.out.println();
}
}
Picture(s) of the output