Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 8 Design a Java Class This material is somewhat more theoretical than that of previous topics, so instead of writing a program for this

Assignment 8 Design a Java Class

This material is somewhat more theoretical than that of previous topics, so instead of writing a program for this assignment, you are going to work on a design. Specifically, your task is to design a Java class to represent a credit card. Try to design your class such that it only includes fields and methods relevant to a credit card itself, without branching out into related functionality, like that of a bank or a consumer. At the same time, try to make your class as complete as possible, so that it can be used in any application that involves a credit card.

To complete this assignment, you will turn in a text document (Word or .pdf) with the following information:

A list of the fields and methods of your class. For fields you will need to specify the type, the accessibility (private, public, protected, default or package), whether it is a static or instance field, and any limitations on the values (non-negative, always less than some other value, etc.). For the methods, you will need to supply the return type and parameter type list.

A free-form description of what each field and method is meant to do, with explanation of any potentially confusing design decisions.

A justification for your design based on the guidelines given in Section 13.10 of your textbook on pages 525-528. The first two items will look somewhat similar to what was provided in the assignment description for 04. Fourth Assignment Calculator with Methods. The justification will be somewhat similar to what was provided in the URL.java file included in this topics course materials (week10.jar). You do NOT need to implement your class (i.e., you do not need to write any code).

You will be graded according to the following rubric (each items is worth one point).

The fields are defined

The fields are logical, sufficient, and do not extend outside of what a CreditCard class should contain

The fields have appropriate data types and visibility (public, private, protected, default or package)

Appropriate restrictions on the fields are discussed (e.g., Can a field only take on positive values? Must it always be less than or greater than some other field?)

The methods are defined

The methods are logical, sufficient, and do not extend outside of what a CreditCard class should contain

The methods have appropriate visibility, return types, and arguments

Any potentially confusing design choices are justified

The design of the class is analyzed with respect to the content in Section 13.10

The text provided is clear and has good spelling, grammar, etc.

Note: If your Word document for pdf is not uploaded to the eLearn drop box correctly, you will receive a score of 0 on the entire assignment

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

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions