Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Develop a Java application including the following pieces of information: 2 . A class in Java that includes the university info, including name,

1. Develop a Java application including the following pieces of information:
2. A class in Java that includes the university info, including name, year of establishment, number of students, number of faculty members, number of faculties, number of departments of each faculty, and three facilities.
3. Create an appropriate class in Java.
4. Add an appropriate modifier to the class in Java.
5. What are and how many properties/fields/attributes does the Java class have?
6. Add access modifiers to the properties of the Java class.
7. Overload constructors and add an appropriate access modifier to each constructor.
8. Create two constructors, one default constructor, and a constructor to accept all properties as input parameters. Initial each property with 0 if it is an integer, 0.00 if it is a double/float variable, an empty string if it is a String object, etc.
9. Initialize the properties/attributes/filed of the Java class with the input parameters to the second constructor.
10. Implement a setter and a getter method for each property/attribute/field. Add an appropriate modifier to each setter/getter method.
11. Implement another class and add the Java "main" method to it.
12. Instantiate from the class you already created for the university. (Do not use extends/inheritance concept).
13. Create a new instance and initial the properties using the default constructor
14. Print out the value of each property.
15. Create another new instance and initialize the properties using the second constructors input variables.
16. Print out the values of the properties.
17. Initialize the value of each property using its related setter method.
18. Print values of each property using its related getter method.
19. Which part of this assignment was more challenging for you?
please provide all of the java source files.

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago