Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Think about the information that is found on a Visa or Mastercard. As you have seen in your readings and videos this week, object diagrams
Think about the information that is found on a Visa or Mastercard. As you have seen in your readings and videos this week, object diagrams represent what an object isthe information it holds and what it does how it changes and distributes that information. You may have seen the terms accessors and modifiers or sets and gets. These refer to what an object does.
Since a credit card is an inanimate object, we have to pretend that the credit card can give the information it has. The first step is to design a UML class diagram for a Visa or Mastercard. Hint: the chip on newer cards and the magnetic strip are meaningless in this exercise, so dont bother with them.
Microsoft Visio, which you might have, has diagram collections for UML. If you want to use this, thats okay, but dont waste an inordinate amount of time with it Handdrawn diagrams will be accepted if they are done well with a straightedge.
Next, and this may take some research, design a class in Python, Java, or C to reflect this UML diagram.
Finally, imagine you are buying something online using the credit card. Using two entities, your PC and the card, draw a sequence diagram to represent the process of entering the card information. To clarify, to the best of your recollection indicate in the diagram the order in which you enter the details of the credit card. Below is and example from a sequence diagram:
Note that the function, getCCnumber should belong to the credit card in your object diagram.
Submit screenshots andor pictures of your diagrams AND your object code to the space provided in uLearn.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started