Question: Create three classes named Chapter1, Chapter2, and Chapter3 that are placed in the com.CITC1318.course.Chapters package. Create constructors that will print the names of the chapters

Create three classes named Chapter1, Chapter2, and Chapter3 that are placed in the com.CITC1318.course.Chapters package. Create constructors that will print the names of the chapters to standard out. The details for the Chapter1 class are given here as an example of what you will need to do:

package com.CITC1318.course.Chapters;

public class Chapter1 {

public Chapter1(){

System.out.println("Hello from Chapter1!");

} }

(30 points)

4. Instantiate each class from the main program, by adding the necessary code to the GreetingsClass class. Here is how to instantiate the object c1 from the class Chapter1:

Chapter1 c1 = new Chapter1();

Make sure you do a c2 from the class Chapter2 and c3 from the class Chapter3.

(20 points)

5. Ensure that all of the class code are in the paths

code\com\CITC1318\course and code\com\CITC1318\course\Chapters

6. Determine the command-line arguments needed to compile the complete program. Compile the complete program, and debug where necessary. Make sure to save all the commands and the details of your compilation in a text file that you need to upload to the Dropbox. (15 points)

7. Determine the command-line arguments needed to execute the program(15 points). Make sure to update the text file in 6. Load all the files in the "code" directory as a zip file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!