Question: Can someone help me type out this code? please and thank you. CSCI 3200 Assignment 3 (100 points) Due date: Thursday, Sept. 21 (before class)

Can someone help me type out this code?

please and thank you.

Can someone help me type out this code? please and thank you.CSCI 3200 Assignment 3 (100 points) Due date: Thursday, Sept. 21 (beforeclass) For this assignment, you will be writing three classes. One ofthem is the StudentAccount class that will be used to represent a

CSCI 3200 Assignment 3 (100 points) Due date: Thursday, Sept. 21 (before class) For this assignment, you will be writing three classes. One of them is the StudentAccount class that will be used to represent a student account. The account can be used for deposit, charge, and transfer. The other class is for a special type of StudentsAccount which can receive rewards. This class is the RewardsAccount which is a subclass of StudentAccount. Rewards Account allows an account to receive rewards under certain conditions. For StudentAccount class, you will need to have the variable to represent the account number (acctNo - using long integer type) and balance (using double type) for each account. The variables should be private. The account number will be generated automatically based on a counter. For example, the first account created will have the account number 1, and the one created next will have the account number 2. Therefore, you will also need to have a variable to represent the counter and update this counter accordingly. The counter is not for individual objects; instead it will be shared by the entire class. For RewardsAccount class, you will also have a double variable (rewards) to represent the rewards balance For all the classes, you will need to decide which variables and methods should be static and which ones should be non-static. 1. StudentAccount class You will need to write the following methods for the StudentAccount class Constructors All constructors should be defined as "public" A default constructor should be included. The default balance is set to zero and the account number is automatically generated based on the value of the counter A constructor should be included that receives a single double value as a parameter. The parameter will provide the initial balance for the account. Account number will be automatically generated. Public Methods getAcctNo - This is a "get" method used to retrieve the account number getBalance - This is a "get" method used to retrieve the account balance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!