Part 1 and Part 2 Integers

Part 1
Write a program to assign the integer values 1 through 25 to
a 25-element integer array. Then, print the array as five separate lines, each
containing five elements separated by commas. The last element on each line
should be followed by a newline instead of a comma. The output of your program
should appear exactly as follows:
One way to determine every 5th element is to use the modules
operator (%). If you divide the subscript by 5 and the remainder is 0, it is
the 5th number.
You can use System.out.print() to print a value without a
newline following it. This allows you to print multiple things on the same
You may use the Windows Command Prompt command line
interface or any Java IDE you choose to compile and execute your program. You
are to submit the following deliverables to the Assignment Dropbox in a single
Microsoft Word file:
a. A screen snapshot of your Java source code (just the
beginning is OK) as it appears in your IDE (e.g., jGRASP, Net Beans, Eclipse,
etc.) or editor (e.g., a Windows Command line more of the .java file’s first
b. A listing of your entire Java source code in the same
Microsoft Word file as item a), and following item a). You can simply copy and
paste the text from your IDE into Microsoft Word. Be sure to maintain proper
code alignment by using Courier font for this item.
c. A screen snapshot of your program s output in the same
Microsoft Word file, and following item b).
Inheritance and Polymorphism
Key in the PolyMain, Book, Almanac, and Novel classes
defined in this module of the course. Once you get each of these classes keyed
in, make sure they compile and execute properly. Then create a third subclass
called Phone that also extends the Book class. The Phone class should keep
track of the number of yellow pages and the number of white pages in each phone
book. Make sure the Phone subclass you create has a print method having the
same signature as the print method in the Book class. The print method from the
Phone class should print the title of the book and the total number of pages of
the book, followed by the number of yellow pages and white pages contained
within the phone book. Thus, the print method should have the following
public void print();
The Phone class should also have a constructor having the
following signature:
public Phone(String title, int whitePages, int yellowPages);
This constructor should sum up whitePages + yellowPages to
get the total number of pages in the book. Remember the total pages in the book
and the title of the book are set in the constructor for the Book class.
Modify the PolyMain class to create at least one of your
phone books and store it in the library. You should now be able to print the
library without having to modify the print method defined within the PolyMain
You may use any Java IDE you choose to develop your source
code, compile and link your code, and execute your program (jGRASP is
recommended). Or you may use the Windows Command Prompt.
You are to submit the following deliverables in a single
Microsoft Word file in this order, and clearly labeled.
A screen snapshot of your Java source code (all file(s)
shown separately) displayed in the IDE or Windows editor showing a successful
compilation, if possible (only the beginning of the source file(s) is necessary).
A listing of your entire source code file(s).
A screen snapshot of all of your program’s outputs for the
specified values in Step #1. Failure to show all of the output will result in
lost points. In order to not confuse the grading process, and possibly lose
points, do not include any other outputs aside from what is requested.

Related Posts

Quality Writing Features

Price Start $10
  • 24/7 Customer Support
  • All Subject Areas
  • Money-Back Guarantee
  • Timely Delivery
  • Originality report
  • Confidentiality guaranteed

Ordering Homework Writing Service

You can get our ideal online homework help services with four easy steps. All you have to do is inform us of your requirements. Immediately we will match with a specialist in your academic discipline. After that, we will track your order, review it to ensure it meets your requirements, and submit it to your email.


Submit Requirements

Fill in your assignment instructions on the order form


Writer match

Immediately you contact us for homework help; we will assign your assignment to an academic expert.


Quality review

We have a team of editors, who will thoroughly review your assignment, ensuring there are no errors before submission


Get Your Completed Paper

Once we have completed the assignment, we will deliver it to your account. Additionally, we will send a notification to your email.



Budget-friendly writing services



We don’t share our client’s information with a third party



We write every assignment from scratch

Amazing Homework Writing Features

Once you consult us for homework help online services, you will attest to why we are among the USA's best essay writing services.

Read on and find out some of the features that make our services superlative.

Free Homework Writing Services

Free plagiarism checker

You can confirm that the content you get is original for free using our plagiarism checker.

Free samples

We offer unlimited access to our essay homework samples.

Free title page and bibliography

Once you place an order, we format it accordingly without demanding additional charges.

Free unlimited revisions

We offer free unlimited revisions until your assignment is of your desired quality..

Free editing and proofreading

We have a team of specialized editors who review your assignment before submission.

Free customer support

You can track the progress of your homework for free.

Request for Homework Writing Service Today!

We have over 500 homework writing experts, ready and waiting to help you improve your writing skills