public class Shirt{
public static void main(String[]args){
public int ShirtID;
public int Price;
public String Color;
public String Description;
public int QuantityStock;
public Shirt(int ShirtID, int Price){
ShirtID=SID;
Price=P;
}
public Shirt(String Color, String Description){
Color=C;
Description=D;
}
public Shirt(int QuantityStock){
QuantityStock=QS;
String[]Shirt=new String[sleeveless, denim, long sleeve, turtle neck, body fit,];
My Shirt=new Shirt();
add.Shirt=add Shirt();
System.out.println("Here are our Shirts that are available:"+Shirt[]);
}
}
}
Sunday, February 8, 2009
Class FormOfPayment
public class FormOfPayment{
public static void main(String[]args){
public int CheckNumber;
public int CreditCardNumber;
public int ExpirationDate;
public FormOfPayment(int CheckNumber, int CreditCardNumber, int ExpirationDate){
ChechNumber=CNum;
CreditCardNumber=CcardNum;
ExpirationDate=Expdate;
}
}
}
public static void main(String[]args){
public int CheckNumber;
public int CreditCardNumber;
public int ExpirationDate;
public FormOfPayment(int CheckNumber, int CreditCardNumber, int ExpirationDate){
ChechNumber=CNum;
CreditCardNumber=CcardNum;
ExpirationDate=Expdate;
}
}
}
Class Order
public class Order{
public static void main(String[]args){
public intb Order;
public int TotalPrice;
public String Status;
public Order(int OrderID, int TotalPrice, String Status){
OrderID=OrId;
Price=+price;
Status=Stat.
Order= new Order();
int FormOfPayment1= CheckNumber();
int FormOfPayment2= CreditCardNumber();
}
}
}
public static void main(String[]args){
public intb Order;
public int TotalPrice;
public String Status;
public Order(int OrderID, int TotalPrice, String Status){
OrderID=OrId;
Price=+price;
Status=Stat.
Order= new Order();
int FormOfPayment1= CheckNumber();
int FormOfPayment2= CreditCardNumber();
}
}
}
Class Costumer
public class Costumer{
public static void main(String[]args){
public int CostumerID;
public String Name;
public String Address;
public int PhoneNumber;
public String Address;
public Customer(int CostumerID, String Name){
CostumerID=CID;
Name=N;
}
public Costumer(String Address, int PhoneNumber, String Adress){
Address=Add;
PhoneNUmber=PNumber;
System.out.println("You want to order?");
char 'x';
if(x=n){
x='no order';
}
if(x=y){
then
My Order=new Order();
}
}
}
}
public static void main(String[]args){
public int CostumerID;
public String Name;
public String Address;
public int PhoneNumber;
public String Address;
public Customer(int CostumerID, String Name){
CostumerID=CID;
Name=N;
}
public Costumer(String Address, int PhoneNumber, String Adress){
Address=Add;
PhoneNUmber=PNumber;
System.out.println("You want to order?");
char 'x';
if(x=n){
x='no order';
}
if(x=y){
then
My Order=new Order();
}
}
}
}
Tester Class
public class Tester{
public static void main(String[]args){
Order=OrderID();//*order connects to the order id
FormOfPayment1();//*form of payment1
FomOfPayment2();//*form of payment2
System.out.println("Welcome!!!...These are our available Shirts"+Shirts[]);//*to display the shirts available
My Order= new Order();//* to record new orders
}
}
public static void main(String[]args){
Order=OrderID();//*order connects to the order id
FormOfPayment1();//*form of payment1
FomOfPayment2();//*form of payment2
System.out.println("Welcome!!!...These are our available Shirts"+Shirts[]);//*to display the shirts available
My Order= new Order();//* to record new orders
}
}
Class Catalog
public class Catalog{
public static void main(String[]args){
public String Shirt;
public String Sandals;
public String Textiles;
public Catalo(String Shirt, String Sandals, String Textile){
Shirt=S;
Sandals=s;
Textile=T;
}
}
}
public static void main(String[]args){
public String Shirt;
public String Sandals;
public String Textiles;
public Catalo(String Shirt, String Sandals, String Textile){
Shirt=S;
Sandals=s;
Textile=T;
}
}
}
Wednesday, February 4, 2009
*/import java.util.Scanner;public class CubeTester{
/** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner scan= new Scanner(System.in); Cube MyCube1= new Cube(5,5,5); Cube MyCube2= new Cube(); System.out.println("The Volume of the cube is" +volume); System.out.println("Enter a value for your width"); double w =scan.nextDouble(); System.out.println("Enter a value for your heigth"); double h =scan.nextDouble(); System.out.println("Enter a value for your length"); double=scan.nextDouble(); double 1=scan.nextDouble(); MyCube2.setDimensions((w,h,l)); System.out.println(The volume of the cube is" +volume);}
/** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner scan= new Scanner(System.in); Cube MyCube1= new Cube(5,5,5); Cube MyCube2= new Cube(); System.out.println("The Volume of the cube is" +volume); System.out.println("Enter a value for your width"); double w =scan.nextDouble(); System.out.println("Enter a value for your heigth"); double h =scan.nextDouble(); System.out.println("Enter a value for your length"); double=scan.nextDouble(); double 1=scan.nextDouble(); MyCube2.setDimensions((w,h,l)); System.out.println(The volume of the cube is" +volume);}
public class Cube {public static void main(String[]args){
private double area; private double width; private double heigth; private double length;
public void setLength(double l){ length=l; } public void setWidth(double w){ width=l; } public void setHeigth(double h){ heigth=l; public double displayVolume(){ double volume=length*width*heigth; System.out.println("The Volume of the cube is"+volume);
} }
}}
private double area; private double width; private double heigth; private double length;
public void setLength(double l){ length=l; } public void setWidth(double w){ width=l; } public void setHeigth(double h){ heigth=l; public double displayVolume(){ double volume=length*width*heigth; System.out.println("The Volume of the cube is"+volume);
} }
}}
Subscribe to:
Posts (Atom)