Assignment #101 and Keychains For Sale
Code
/// Name: Ali Kurland
/// Period: 6
/// Program Name: Keychains for Sale
/// File Name: KeychainsforSale.java
/// Date Finished: 12/2/2015
import java.util.Scanner;
public class KeychainsForSale
{
public static void main ( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int choice;
System.out.println("Super Cool Keychain Shop");
do
{
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
{
checkout();
}
}while ( choice != 4 );
}
public static void addKeychains( )
{
System.out.println("\nADD KEYCHAINS\n");
}
public static void removeKeychains( )
{
System.out.println("\nREMOVE KEYCHAINS\n");
}
public static void viewOrder( )
{
System.out.println("\nVIEW ORDER\n");
}
public static void checkout( )
{
System.out.println("\nCHECKOUT\n");
}
}
Picture of the output