subject
Engineering, 25.03.2020 16:41 Quantajah

Consider 2 SALES RECEIPT classes: RECEIPT1 and RECEIPT2.RECEIPT1 has a method that displays the message "Receipt Body 1". RECEIPT2 has a method that displays the message "Receipt Body 2".A SALES RECEIPT object has exactly 1 header and 1 footer. There are 2 possible HEADER classes (HEADER1 and HEADER2) and 2 possible FOOTER classes (FOOTER1 and FOOTER2).HEADER1 class has a method that displays the message "Header 1".HEADER2 class has a method that displays the message "Header 2".FOOTER1 class has a method that displays the message "Footer 1".FOOTER2 class has a method that displays the message "Footer 2".HEADER1 should be used with RECEIPT1 and FOOTER1. HEADER2 should be used with RECEIPT2 and FOOTER2. You must use the abstract factory pattern to create sales receipts.1) Draw the UML class diagram.2) Provide the implementation code of the UML class diagram given in question 1 in Java. The object created by the client code should display the following message: "Header 1 Receipt Body 1 Footer 1".

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 18:10
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
You know the right answer?
Consider 2 SALES RECEIPT classes: RECEIPT1 and RECEIPT2.RECEIPT1 has a method that displays the mess...
Questions
question
Mathematics, 14.01.2020 06:31
question
Mathematics, 14.01.2020 06:31
question
History, 14.01.2020 06:31
question
Mathematics, 14.01.2020 06:31
question
Social Studies, 14.01.2020 06:31
Questions on the website: 13722363