1
Define Java Classes and Instantiate Their Objects In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a specific way. You can use either the Toolwire environment or your local Java development environment to complete this assignment.
The requirements of this application are as follows: The application is to define a Java class called Course. The Course class has the following attributes:
1. code - a string field to store the course code (e.g. IT1006)
2. creditHours – an int field to store the credit hours of the course (e.g. 6)
The application then instantiates, in order, seven instances (objects) from the Course class and assigns to each instance the following values: Order of instantiation
Course Object code attribute
Course Object creditHours attribute
1 IT1006 6
2 IT4782 3
3 IT4789 3
4 IT4079 6
5 IT2230 3
6 IT3345 3
7 IT2249 6
Finally, the application prints out, in the same order as the instantiation order, the attributes of these instances using this format:
[order of instantiation] Course Code (Course Credit Hours)
Successful completion of this assignment will show the correct order of object instantiation and the correct attributes of each object when the application is run. Your program output should look like this sample output:
2
Follow these steps to complete this assignment:
1. Create a NetBeans Java console application project called U9A1_DefineClassInstantiateObj”.
2. Develop the application to meet the stated requirements.
3. Compile and test your application using the provided input data. Make sure to document the result of your testing by taking screenshots of the result of running your application similar to the provided sample output. One screenshot is required for this assignment.
4. Explain your approach you took to complete this assignment and the major decisions you made. As part of your explanation, be sure to identify the fundamental Java constructs you used that were specific and relevant to your submitted program.
Deliverables Use the submission template available in the resources (WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables. Your deliverables in the submission template should include:
1. Your work (Netbeans project zip file + copy of *.java source code)
2. A screenshot of the result of testing your application. See the examples above.
3. Explain the approach you took to complete this assignment and the major decisions you made. As part of your explanation, be sure to identify the fundamental Java constructs you used that were specific and relevant to your submitted program.
Define Java Classes and Instantiate Their Objects
Deliverables
Applied Sciences
Architecture and Design
Biology
Business & Finance
Chemistry
Computer Science
Geography
Geology
Education
Engineering
English
Environmental science
Spanish
Government
History
Human Resource Management
Information Systems
Law
Literature
Mathematics
Nursing
Physics
Political Science
Psychology
Reading
Science
Social Science
Home
Blog
Archive
Contact
google+twitterfacebook
Copyright © 2019 HomeworkMarket.com