Assignment 101 , Keychains
Code
///Name: Stella Koliavas
///Period: 5
///Program Name: Keychains
///File Name: Keychains.java
///Date Finshed: 4/14/16
import java.util.Scanner;
public class Keychains
{
public static void main( String[] args )
{
Scanner siri = new Scanner(System.in);
int Choice;
System.out.println("Keychain shop");
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.print("> ");
Choice = siri.nextInt();
System.out.println( " ");
if (Choice == 1)
addKey();
else if (Choice == 2)
removeKey();
else if (Choice == 3)
viewOrder();
else
checkout();
}while (Choice != 4);
}
public static void addKey( )
// No parameters.
{
System.out.println("ADD KEYCHAINS");
}
public static void removeKey( )
// No parameters.
{
System.out.println("REMOVE KEYCHAIN");
}
public static void viewOrder( )
// No parameters.
{
System.out.println("VIEW ORDER");
}
public static void checkout( )
// No parameters.
{
System.out.println("CHECK OUT");
}
}
Picture of the output