Assignment # 101 and Keychains
Code
/// Name: Tommy Oyuntseren
/// Period: 7
/// Program Name: Keychains
/// File Name: Keychains.java
/// Date: 4/12/2016
import java.util.Scanner;
public class Keychains
{
public static void main(String[] args)
{
Scanner keyboard= new Scanner(System.in);
int choice;
System.out.println("Unique 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