Explain primary problem in credit card records

Assignment Help Database Management System
Reference no: EM1349559

Q1) You have a file that contains credit card records. Each record contains a field for the card number, the expiration date, and the name of the card holder. In your system you have the following class structure for the credit cards:

a class CreditCard,

classes VisaCC, MasterCC, AmExCC that are all subclasses of CreditCard, you assume more subclasses for other credit card types will be added later on.

You now have to design the method(s) (and maybe additional classes) that reads a record from the file, verifies that the credit card number is a possible account number, and creates an instance of the appropriate credit card class. What design patterns could you use for that?

Important details: Credit card numbers cannot exceed 19 digits, including a single check digit in the rightmost position. The exact algorithm for calculating the check digit as defined in ISO 2894/ANSI 4.13 is not important for this assignment. You can also determine the card issuer based on the credit card number:

MasterCard First digit is a 5, second digit is in range 1 through 5 inclusive. Only valid length of number is 16 digits.
Visa First digit is a 4. Length is either 13 or 16 digits.
AmericanExpress First digit is a 3 and second digit a 4 or 7. Length is 15 digits.
Discover First four digits are 6011. Length is 16 digits.

Deliverables:

Describe what the primary problem you try to solve is.
Describe what are the secondary problems you try to solve (if there are any).
Describe what design pattern(s) you use how (use plain text and/or UML diagrams).
Describe the consequences of using this/these pattern(s).
Hint: you face here (at least) two problems, one has to do with how you figure out what kind of card a specific record is about, the other one with how you create the appropriate objects. Look at behavioural patterns and at creational patterns.

Reference no: EM1349559

Questions Cloud

How to be an effective communicator : Consider the following: "To be considered effective today, a communicator needs the ability to be able to gain a keen understanding of the experiences and thinking patterns of the individual or individuals that they are trying to communicate with.
Organizational cultural change-work environments change : Organizational cultural change - In your own words how have work environments changed over the past five years due to the increasing focus on teams?
What is the amplitude of the oscillation : An air-track glider is attached to a spring. The glider is pulled to the right and released from rest at. It then oscillates with a period of 1.5 and the maximum speed of 32.
Illustrate the economics department pays gordon : Gordon also works 5 hours a week for the economics department to maintain that departments web page. Illustrate the economics department pays gordon $20 per hour.
Explain primary problem in credit card records : You have a file which contains credit card records. Each record contains field for the card number, expiration date, and name of card holder. Explain what primary problem you try to solve is.
Calculate interest in loan payment : Suppose you just receive a mortgage to buy your first house from ABH bank. Do you think you are going to contribute more to decrease of your unpaid balance at the end of each month in the early years of your payments.
Strategic mangement or business : Strategic mangement or business - Explain what exactly are the key operating principles within strategic mangement or business?
How far is the raft from the pier now : The wheel of a car has a radius of 0.365 m. The engine of the car applies a torque of 284 N · m to this wheel, which does not slip against the road surface. Since the wheel does not slip, the road should be applying a force of static friction to t..
Explain health care in america is very different : Explain Health care in America is very different in rural versus urban settings. Rural health networks are often incomplete

Reviews

Write a Review

Database Management System Questions & Answers

  Create an e-r diagram

You have probably seen that already when you tried to create an E-R diagram. Visio uses notation and graphical shapes that are not the same as those in your text. If you look at some of the links to schemas, you will see a similar sort of thing.

  Prepare a set of non-functional requirements

Need a system that networks its 3 campuses in the US and one campus in Singapore. Transaction data for all campuses should be available to all locations. In addition, students should be able to use the Internet to view classes, enroll, register, and ..

  Physical schema created for a database

At this point in the design process, you would have a detailed physical schema created for a database. How would you approach converting your schema into a database, complete with sample data? Explain your approach in two to three paragraphs.

  Same name to attributes which are in different tables

What about giving same name to attributes which are in different tables but are not same? For instance, "Description" in both a Course table and a Classroom table.

  Explaining unclustered b pus tree index

Suppose you have a table which contains 27,000 data records, and you have unclustered B+ Tree Index on the table.

  Write names and e-mail addresses from database

Suppose a database has tables given below. Write the names and e-mail addresses for all customers who have had stove repair which cost more than $50.

  Implement that entity as a database table with two subtypes

Implement that entity as a database table with two subtypes, Games and Movie.

  An active database in pl-sql

Did the corresponding lines for invoices 1001 and 1008 in table LINE get deleted automatically? Can you explain why?

  Drawing active directory hierarchy in terms of forests

Draw Active Directory hierarchy in terms of forests, trees, domains, organizational units, and sites which are most suitable for this company and their security concerns.

  Explain the datawarehouse and data mining concepts

There are six major types of information systems which organisations use in their operations. Discuss how these information systems support managers in their decision making role Explain the datawarehouse and data mining concepts using appropria..

  Determine a list of n numbers has no duplicates

Express given five loosely described problems carefully in { Instance, Question } form as utilized in "Computers and Intractability". Determine that a list of n numbers has no duplicates.

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd