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, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
question
Engineering, 04.07.2019 18:20
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
Answers: 3
You know the right answer?
Consider 2 SALES RECEIPT classes: RECEIPT1 and RECEIPT2.RECEIPT1 has a method that displays the mess...
Questions
question
Mathematics, 11.02.2020 22:56
question
Physics, 11.02.2020 22:56
question
Mathematics, 11.02.2020 22:56