Course Answers

BUSINESS
COMPUTER SCIENCE
OTHER COURSES
My Profile

Solved: Having Trouble Programming A Java Code: 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

By |

Having trouble programming a Java Code: 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.

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.

Output- USA1 0efineClassinstantiate00 Resuit inan) x run Teachers Copy course Objects each has a code (e.g. IT1006) and cred



Output- USA1 0efineClassinstantiate00 Resuit inan) x run Teacher's Copy course Objects each has a code (e.g. IT1006) and credit hours (e.g. 6) The number inside the is the display order number The number inside the is the credit hours for the course [1] IT1006 (6) [2] IT1006 (3) [3] IT1006 (3) [4] IT1006 (6) [5] IT1006 (3) [6] IT1006 (3) 7]IT1006 (6) BUILD SUCCESSFUL (total time: 0 seconds)

Answer Preview

Here is your code in JAVA =========================================================================================== import java.io.*; class Class { //defining the required attributes Str

Get Answer Now


Buy (USD $9.00)

Get Answer Now

Answered
Buy @ USD $9.00
Related Questions

OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES
OTHER COURSES