Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help asap !!! Exercise 1: In a Student Admission System an applicant chooses from among many offered majors such as computer science, computer engineering,

please help asap !!! image text in transcribed
Exercise 1: In a Student Admission System an applicant chooses from among many offered majors such as computer science, computer engineering, physics, math, industrial engineering... etc. The Major class is represented by the following attributes: majorld (int), title (String), hostDeptld(int), totalCreditHours (int). a) Write Java code for the Major class, including the setters, getters and the fully parameterized constructor. b) Add a no-argument constructor that sets majorld to 999, the title to "Unknown", the c) Write a method called disply0 that outputs the values of a Major instance, each on a separate d) Add a method called guiDisplay0 that uses JOptionPane methods to display the details of a e) Write a class called MajorTest that creates some Major instances and displays tier contents hostDeptld to 888 and the totalCreditHours to 0. line and which is properly labeled. Major instance on a GUI "message dialog". using the above two methods. You should utilize the two overloaded constructors

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

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

What must a creditor do to become a secured party?

Answered: 1 week ago

Question

When should the last word in a title be capitalized?

Answered: 1 week ago