//Programmer Name: Jenelyn Dongiapon
// Program Name:Direct Clothing Case Study Solution (Shirt Class)
//Date Started:February 7,2009
//Date Ended: February 8,2009
public class Shirt{
private int shirtid;
private double price;
private String color;
private String description;
private String quantityofshirt;
// class shirt constructor
public Shirt(int ID,double P,String C,String D,String QOS)
{
shirtid=ID;
price=P;
color=C;
description=D;
quantityofshirt=QOS;
}
// class shirt methods
// methods for adding shirt into stock
public void addShirtIntoStock(int newShirtid)
{
shirtid=newShirtid;
System.out.println("Add shirt into stock?");
}
// methods for removing shirt from stock
public void removeshirtfromstock (int deleteShirtid )
{
shirtid=deleteShirtid;
System.out.println("Want to removed shirt?");
}
//display info
public void displayinfo(int viewInfo)
{
shirtid=viewInfo;
System.out.println("Want to view information?");
}
}
//Programmer Name: Jenelyn Dongiapon
// Program Name:Direct Clothing Case Study Solution (Order Class)
//Date Started:February 7,2009
//Date Ended: February 8,2009
public class Order{
private int orderid;
private double totalprice;
private String status;
private String shirt;
private String FormOfPayment;
public Order (int oid,double tp,String s,String FOP,String shirt)
{
orderid=oid;
totalprice=tp;
status=s;
FormOfPayment=FOP;
}
//methods on adding shirt to order
public void addShirtToOrder (String newShirt)
{
shirt=newShirt;
}
//removing shirt
public void removedShirt(String deleteShirt)
{
shirt=deleteShirt;
}
//submitting an order
public void submitAnOrder(String passOrder)
{
status=passOrder;
}
}
//Programmer Name: Jenelyn Dongiapon
// Program Name:Direct Clothing Case Study Solution (Customer Class)
//Date Started:February 7,2009
//Date Ended: February 8,2009
public class Customer{
private int customerid;
private String name;
private String address;
private double PhoneNum;
private String emailAddress;
//constuctors for class Customer
public Customer(int cid,String n,String a,double PNum,String eAdd)
{
customerid=cid;
name=n;
address=a;
PhoneNum=PNum;
emailAddress=eAdd;
//methods for placing order
public void placeAnOrder(String newOrder)
{
name=newOrder;
}
//cancel order
public void cancelOrder(String newOrder)
{
customerid=newOrder;
}
}
}
//Programmer Name: Jenelyn Dongiapon
// Program Name:Direct Clothing Case Study Solution (Catalog Class)
//Date Started:February 7,2009
//Date Ended: February 8,2009
public class Catalog{
private String shirts;
public void addShirt(String newShirt)
{
shirts=newShirt;
}
public void removedShirt(String deleteShirt)
{
shirts=deleteShirt;
}
}
//Programmer Name: Jenelyn Dongiapon
// Program Name:Direct Clothing Case Study Solution (FormOfPayment Class)
//Date Started:February 7,2009
//Date Ended: February 8,2009
public class FormOfPayment{
private String checkNum;
private String Cardnum;
private String ExpiryDate;
//constructors
public FormOfPayment (String cN,String C,String ED)
{
checkNum=cN;
Cardnum=C;
ExpiryDate=ED;
}
//method on verifying Credit card
public void verifyCreditCard(String newCardNum)
{
Cardnum=newCardNum;
}
//method on checking payment
public void verifyCheckPayment(String newCheck)
{
checkNum=newCheck;
}
}
_________________________________________________________
//Programmer Name: Jenelyn Dongiapon
// Program Name:Direct Clothing Case Study Solution (DirectClothingTester Class)
//Date Started:February 7,2009
//Date Ended: February 8,2009
import java.util.Scanner;
public class DirectClothingTester{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);
}
}
Sunday, February 8, 2009
Subscribe to:
Posts (Atom)