You are on page 1of 3

Question 1

Stock
- symbol: String
-name: String
- previousClosingPrice: double
- currentPrice: double

- Stock ( sym: String, name1: String )


- GetChangePercebt (prePrice:double, curPrice: double ) :
double

Stock: stockObj

Sym=ORCL
Name1: Corporation
Question 2

Employee
- Name : String
- idNumber : int
- department: String
- position : String

- Employee ( n: String , ID: int , d : String , p: String )


- Employee (n : String , ID: int )
- setID() : void
- getID(): int
- setname(): void
- getname() : String
- setdep(): void
- getdep() String
- setps(): void
- getpo(): String

Employee : Susan Employee: Mark Employee : Joy

Name : Susan Meyers Name : Mark Jones Name : Joy Roger

idNumber: 47889 idNumber : 39119 idNumber : 81774

department : Accounting department : IT department : Manufacturing

position : Vice oresident position : Programmer position : Engineer


Question 3

percentageCalory

FoodItem: string
Tcalories: double
Fat : double
caloryPercen: double

Percencalory (nam e: String , tc: double , f: double )


setFat(fat: double): void
getFat(): double
setFoodItem(food : String ): void
getFoodItem(): String
srCalories(calories : int ) : void
getcalories (): double
calories (): double

Food
Name : String
Total: double
F: double

You might also like