Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A filling station (gas station) is to be set up for fully automated operation. Drivers swipe their credit card through a reader connected to the

A filling station (gas station) is to be set up for fully automated operation. Drivers swipe their credit card through a reader connected to the pump; the card is verified by communication with a credit company computer, and a fuel limit is established. The driver may then take the fuel required. When fuel delivery is complete and the pump hose is returned to its holster, the drivers credit card account is debited with the cost of the fuel taken. The credit card is returned after debiting. If the card is invalid, the pump returns it before fuel is dispensed.

Your task is to determine what design pattern(s) is/are to be applied in the system(Decorator, Factory Method, Strategy, Singleton, Adapter, Facade, Template Method, Iterator, Observer, Command, Builder, Chain of Responsibility, Memento, Visitor, State, Flyweight, Mediator, Prototype, Proxy.). Explain your choice(s) clearly.

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

The sum of z scores for a data set is ____.

Answered: 1 week ago

Question

d. How will lack of trust be handled?

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago