Assignemnt #101 Keychains for Sale
Code
///Name: Prooz Fereydouni
///Period: 7
///Project Name: Keychains for Sale
///File Name: KfS.java
///Date: 3/31/2016
import java.util.Scanner;
public class KfS
{
public static void main( String[] args)
{
Scanner kb = new Scanner(System.in);
System.out.println("Keychain Store");
System.out.println("");
int answer = 0;
do
{
System.out.println("1. Add keychains");
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: ");
answer = kb.nextInt();
if (answer == 1) AddKeychain();
if (answer == 2) RemoveKeychain();
if (answer == 3) ViewOrder();
if (answer == 4) Checkout();
}while(answer!=4);
}
public static void AddKeychain()
{
System.out.println("ADD KEYCHAINS");
}
public static void RemoveKeychain()
{
System.out.println("REMOVE KEYCHAINS");
}
public static void ViewOrder()
{
System.out.println("VIEWING ORDER");
}
public static void Checkout()
{
System.out.println("CHECKOUT");
}
}
Picture of the output