50 likes | 191 Views
This document outlines the design process for creating a card game, focusing on solitaire, alongside the development of credit card processing software for American Express. Key topics include the necessary game objects and instance variables needed to represent cards in solitaire, as well as the creation of a CreditCard class to manage credit card accounts. Through exercises, you'll learn to implement constructors, methods, and instance variables in Java. Additional projects include designing a company logo with a flower representation, building practical programming skills.
E N D
Designing a Card Game Solitaire--Thirteens
Class Design for Card Instance Variables (at the top of the class & private!): private String suit; private intpointValue; private __________ ____________; private ___________ ____________; Constructor Methods: accessors & modifiers
Exercise 1: Download CreditCard.zip • You are working for American Express. They need to develop credit card processing software. Create a class CreditCard that represents a credit card account. • 1 private instance variable • 1 constructor • 3 methods • Exercise 2: Download flower_project_draft.zip • You are a designer and need to create a logo for a company. Write a class that describes a flower. • 2 instance variables • 1 constructor • 1 method (draw()) Exercise 3: Optional Download InchWorm.zip