Question: write a code in java Create a project and all below classes need to be created in this project. DO NOT create a new project

write a code in java

Create a project and all below classes need to be created in this project. DO NOT create a new project for each task. All functionality tests for all classes will be in one main() method. You must send the following files: 1) Student.java 2) Account.java 3) Rectangle.java 4) Customer.java 5) CustomerAccount.java Tasks: 1. Write a program that creates a class Student with the following Data Members rollNum, studName, mark1, mark2, mark3, totalMarks M ethods setStudDetails() which sets the values to all the data members except totalMarks. calculateTotal() - which calculate the totalMarks displayStudDetails() which displays rollNum, studName and totalMarks 2. Create a class Account with the Attributes accountNo int, accountType String, accountBalance int and

Methods setAccountDetails() which set the values to these attributes, withdraw() which subtracts the given amount from the available balance, deposit() which adds given amount to the available balance and dispAccountDetails() which displays accountNo, accountType, accountBalance. 3. Add to the above two programs constructors. 4. Write a program to create a class Rectangle with Data members length and breadth. Create a method area() that finds the area of the rectangle. Use constructors to assign values to data members 5. a) Create a class Customer with the Fields custId, custName and custAddress.

Create a method display() that displays the Customer details. b) Create a class CustomerAccount with the Fields acctId, acctType, Customer, and acctBalance. Create a method display() which displays Account Details Note: Use constructors to set the values to the fields of the classes

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!