Mr. Plodd, our Secondary School Accounting Teacher, has decided to build his wife a rose garden.
But, his business sense tells him that he can also make money by selling the roses once they are fully grown.
He gets a yield of Y kg of roses per square meter of.
If roses are selling for Rand S per kilo, what profit does he get from his wife’s field?
**Write a program that reads in values for L, W, Y, S and C and determines Mr. Plodd’s profit.
**JSD Notation:
Farming (main class)
myGarden: Garden (object)
roses: Crop (object)
main (end of main class)
Garden (has the following variables)
[length] (L = variable 1)
[width] (W = variable 2)
getArea() (is this object's method)
Crop (has the following variables)
[costs] (C = variable 1)
[yield] (Y = variable 2)
[sellPrice] (P = variable 3)
getProfit() (is this object's method)
But, his business sense tells him that he can also make money by selling the roses once they are fully grown.
His design estimates the garden to be L meters long and W metres wide.
His costs (seeds, fertilizer, labour) are Rand C per square meter.He gets a yield of Y kg of roses per square meter of.
If roses are selling for Rand S per kilo, what profit does he get from his wife’s field?
**Write a program that reads in values for L, W, Y, S and C and determines Mr. Plodd’s profit.
**JSD Notation:
Farming (main class)
myGarden: Garden (object)
roses: Crop (object)
main (end of main class)
Garden (has the following variables)
[length] (L = variable 1)
[width] (W = variable 2)
getArea() (is this object's method)
Crop (has the following variables)
[costs] (C = variable 1)
[yield] (Y = variable 2)
[sellPrice] (P = variable 3)
getProfit() (is this object's method)
5 comments:
This h/w sucks!!
Whaa jayd!! this blog is tha best.. 2 bad u cmt control us you crap
This homework sucks balls!
Teacher Hater and Fatshit Hater are two different people if you want to know
hii my name is nabeel and im gay hahaha
Post a Comment