Creating an application for various size candles

Apr 14th, 2014
Anonymous
Category:
Programming
Price: $15 USD

Question description

DemoCandles.javaCandle.javaCandle.javaScentedCandle.javaCould someone tell me file:///Users/sherry/Desktop/DemoCandles.java why my program is not running:  Create a Candle.java that contains fields for color, height, and price using get methods in all three fields.  Set method for color and height, but no price. When height is set, determine the price as $2 per inch. Create Scented additional field name scent and methods to get and set. Override parent's setHeight() method to set price of ScentedCandle to $3 per inch. Write an application that instantiates an object of each type and displays details.  I have attached all 3 programs since they coincide with each other.  I do not know why it is not running, please fix my errors.

Tutor Answer

(Top Tutor) khakaan
School: UC Berkeley

Studypool has helped 1,244,100 students

Review from student
Anonymous
" Top quality work from this guy! I'll be back! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1819 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors