Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Draw use case and sequence diagram. Gas Station: Assume that there exist at least the following three classes: Person, Pump, and PayStation. Additional classes may

Draw use case and sequence diagram.

Gas Station: Assume that there exist at least the following three classes: Person, Pump, and PayStation. Additional classes may be introduced to clarify the interaction. a- Draw a use case diagram for the functionality of a single gas pump at a gas station. Assume that a credit or debit card may be used at the pump, as well as pay cash inside the gas station. Cash may only be used inside of the station. There are three brands of gasoline: low grade, mid grade, and high grade. b- Draw a sequence diagram for the following scenario: A customer pulls into the gas station to fill up at the gas pump. The customer presses the "pay by credit" button, and fills his tank with low grade and mid grade gasoline (Assume switching from one grade of gasoline to another is a trivial operation). At the end of filling the gas tank the total charge is displayed at the pump, and the customer is asked to swipe his credit card. Realizing that he mistakenly left his credit card at home, the customer proceeds to pay inside the gas station with cash. c- Draw the CRC for each class and the dependency relations between classes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago

Question

8. Describe the steps in the development planning process.

Answered: 1 week ago