forward from the email.
SALAM,
To all dear students,
Attach is a sample program (solution) for your group exercise 1.
You have to complete the program before you run and get the output.
This program is used to display a report for ABC Bakery ;
1. No. of Whole Cake
2. No. of Cup Cake
3. Total Whole Cake
4. Total Cup Cake
5. Total Collection for ABC Bakery
Please submit your assignment 1 on time, otherwise your mark will be 0%.
+++++++++++++++++++++++++++++++++++++
Group Exercise 1
Refer to Final Examination Paper Oct2008 – Part B : Question 1
Sample Program : Complete the following program.
//Superclass - Cake
package CakeInfo;
public class Cake
{
private String type;
private double price;
public Cake()
{
type = ” “;
price = 0;
}
public Cake(String t, double p)
{
type = ?;
price = ?;
}
public void setCake(String ?, double ?)
{
type = t;
price = p;
}
public String getType()
{
return ?;
}
public double getPrice()
{
return ?;
}
public String toString()
{
return “\nCake type : ” + ? +
“\nPrice : RM ” + ? + “\n”;
}
}
(more…)





