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 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
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
Arts, 28.04.2021 18:40
question
Arts, 28.04.2021 18:40
question
Mathematics, 28.04.2021 18:40
question
Mathematics, 28.04.2021 18:40
Questions on the website: 13722360