Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE ANSWER ALL i. Implement the following classes: [6 marks] Student - id: int - name: String - address: String - cgpa: double + Student(id:

image text in transcribed

PLEASE ANSWER ALL

i. Implement the following classes: [6 marks] Student - id: int - name: String - address: String - cgpa: double + Student(id: int, name, address: String, cgpa: double) + getName(): String +getAddress():String + getId(): int + getCGPA(): double + mailOffer(): void + toString(): String Waiver - fee: double + Waiver(id: int, name, address: String, cgpa, fee: double) + mailOffer(): void + compute Waiver(): double ii. Now, write a program to ask user how many students he/she wants to be listed, take ID, Name, Address, CGPA and Fee of students as user input and store all the information in a "Student" type object array. [8 marks] In computeWaiver() method, less 25% from their fees if their CGPA is more than 3.5/4.0. Invoke mailOffer() method to print name and tuition fees as shown below. [6 marks]

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 Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions