need help with a java program

STUCK with your assignment? When is it due? Hire our professional essay experts who are available online 24/7 for an essay paper written to a high standard at a reasonable price.

Order a Similar Paper Order a Different Paper

Write a computational class to model a toaster. It should have two private instance fields; one to store the number of slots in the toaster and the other to store the desired toast setting (“light”, “medium”, or “dark”). Include a constructor that accepts an integer value between 1 and 6 to set the number of slots. Write public methods to set and get each instance value. The toasting times for “light”, ”medium”, or “dark” are 2, 4, 6 minutes respectively. Write a public method, estimatedTime(), that checks the toast setting and returns the time required.

Write an interface class using the constructor, initialize the toaster object to 2 slots. The interface should prompt the user to indicate toasting setting using by entering 1, 2, or 3 for “light”, “medium”, or “dark”. Using the estimatedTime method the interface should then report to the user, “Your toast will be done in ~~~ minutes”, replacing the ~~~ with the appropriate toasting time.

Please help.

Everyone needs a little help with academic work from time to time. Hire the best essay writing professionals working for us today!

Get a 15% discount for your first order

Order a Similar Paper Order a Different Paper