HW5_v1.1.pdf - Arizona State University - CSE205 Assignment...

This preview shows page 1 - 3 out of 9 pages.

The preview shows page 1 - 3 out of 9 pages.
Arizona State University - CSE205Assignment #5Due DateWednesday, September 13th, 10:00pmImportant: This is an individual assignment. Please do not collaborate.No late assignment will be accepted.Make sure that you write every line of your code. Using code written by someone elsewill be considered a violation of the academic integrity and will result in a report tothe Dean's office.Minimal Submitted FilesYou are required, but not limited, to turn in the following source files:Assignment5.java(Download this file and use it as your driver program for thisassignment. You need to add more codes to complete it.)Lamp.javaFluorescentLamp.javaLEDLamp.javaLampParser.javaRequirements to get full credits in Documentation1.The assignment number, your name, StudentID, Lecture number/time, and a classdescription need to be included at the top of each class/file.2.A description of each method is also needed.3.Some additional comments inside of methods (especially for a "main" method) to explaincode that are hard to follow should be written.You can look at Java programs in the text book to see how comments are added toprograms.Skills to be AppliedIn addition to what has been covered in previous assignments, the use of the followingitems, discussed in class, will probably be needed:
InheritanceTheprotectedmodifierThesuperReferenceAbstract classNumberFormat/DecimalFormatWrapper classesArrayListProgram DescriptionClass Diagram:In Assignment #5, you will need to make use of inheritance by creating a classhierarchy for Lamps.Lamp#lampName:String#unitPrice:double#quantity:int#totalPrice:double=0.0+Lamp(String, double,int)+getLampName():String+toString():String+computeTotalPrice():voidFluorescentLamp-recycleFee:double+FluorescentLamp(String, double, int, double)+computeTotalPrice():void+toString():StringLEDLamp-energySavingRebate:double+LEDLamp(String, double, int, double)+computeTotalPrice():void+toString():String+main(String[]):void+printMenu():voidAssignment5LampParser+ParseStringToLamp(lineToParse:String):Lamp

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 9 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture