Sie sind auf Seite 1von 6

REG NO:11408104097 EX.

NO: CREDIT CARD PROCESSING DATE:

AIM: To draw the diagrams [usecase, activity, sequence, collaboration, class] for Credit Card Processing HARDWARE REQUIREMENTS: Intel Pentium Processor 3

SOFTWARE REQUIREMENTS: Rational rose

PROJECT DESCRIPTION: This software is designed for supporting the computerized credit card processing System .In this system, the cardholder purchases items and pays bill with the aid of the credit card. The cashier accepts the card and proceeds for transaction using the central system. The bill is verified and the items are delivered to the cardholder. USE CASE DIAGRAM: This diagram will contain the actors, use cases which are given below Actors: Cardholder, Cashier, Central system. Use case: Receive bill, Give card, Enter card number, Enter amount, Transaction, Receive Receipt ACTIVITY DIAGRAM: This diagram will have the activities as Start point ,End point, Decision boxes as given below: Activities: Receive Bill, Give card, Enter the card number, Enter the amount, Transaction, Receive Receipt Decision box: Verification of card

REG NO:11408104097 CLASS DIAGRAM: This diagram consists of the following classes, attributes and their operations. CLASSES Central system Cashier ATTRIBUTES Product name Product details Product name Cost of the product Items Purchased Validate Card OPERATIONS Print bill() Validate card() Enter amount() Swipe Card() Print Bill() Deliver Product() Give card() Sign bill()

CardHolder

SEQUENCE DIAGRAM: This diagram consists of the objects, messages and return messages. Object: Card Holder,Cashier , Central system COLLABORATION DIAGRAM: This diagram contains the objects and actors. This will be obtained by the completion of the sequence diagram and pressing the F5 key.

MERITS: DEMERITS: Need computer knowledge Provides convenience. Easy usage. User friendliness.

REG NO:11408104097 CREDIT CARD PROCESSING USE CASE DIAGRAM:

Purchas Product e C entral Sys tem

G ive card

Swipe card C ardholder

Sales pers on

E nter am ount

R eceive R eceipt and card

D eliver Product

CLASS DIAGRAM:
C entrals tem ys Product name Product details Print bill() Validate card()

C ardH older Items Purchas ed C reditC ard SignBill() G iveCard()

C hier as Product name Cos of product t E nter amount() Swipe card() Print bill() Deliver product()

REG NO:11408104097

ACTIVITY DIAGRAM:

Purchase Product

Give the card

Swipe Card

no Validation of Card yes Enter amount

Receive Receipt and card

Deliver Product

REG NO:11408104097

SEQUENCE DIAGRAM:

C r H ld r ad o e P r h s Po u t uc a e r d c

C s ie ah r

C nr l e ta S se yt m

G ec r iv a d S ip C r w e ad

E t r t ea o n ne h m u t

Pin b r t ill

D liv r b e e ill

S nt er c ip ig h e e t A c p R c ip ce t e e t

D liv r Po u t e e r dc

COLLABORATION DIAGRAM

1: Purchas Product e 2: G ive card 7: Sign the receipt C ard Holder 6: D eliver bill 9: Deliver Product 5: Print bill 3: Swipe C ard 4: E nter the amount 8: A ccept Receipt C hier as

Central Sys tem

REG NO:11408104097

//Source file: Z:\\ooad\\Cashier.java public class Cashier { private int ProductName; private int CostOfProduct; public Centralsystem theCentralsystem; /** @roseuid 4D47A1F001C6 */ public Cashier() { } /** @roseuid 4D479612034A */ public void EnterAmount() { } /** @roseuid 4D47961602DD */ public void SwipeCard() { } /** @roseuid 4D47961C0167 */ public void PrintBill() { } /** @roseuid 4D47962102DE */ public void DeliverProduct() { } }

RESULT: Thus the diagrams[Use case, class, activity, sequence, collaboration] for the Stock maintainence system has been designed ,executed and output is verified.

Das könnte Ihnen auch gefallen