CPS 2231 & programming

Hi, I included a couple assignments that I would like done. You do not have to do the check point question but everything else I would like to be completed. It should take appro 20-30 min per assignment. Thank you! p.s : I can include textbook pages if needed.
_cps_hw_6_.pdf

_cps_hw_7_.pdf

Don't use plagiarized sources. Get Your Custom Essay on
CPS 2231 & programming
Just from $13/Page
Order Essay

_cps_hw_8_.pdf

_cps_hw4.pdf

_cps_hw5.pdf

Unformatted Attachment Preview

CPS 2231-05 Computer Organization and Programming
Homework #6
Due Date: Thursday, March 19, 2020
(the assignment must be submitted before the Class Meeting starts)
1. Answer each of the following Check Point Questions:
a) 11.2.1 – 11.2.3 (page 418)
b) 11.3.1 – 11.3.3 (page 421)
c) 11.11.1 – 11.11.5 (pages 439-440)
CPS 2231 Computer Organization and Programming
Homework #7
Due Date: Thursday, March 26, 2020
(the assignment must be submitted before the Class Meeting starts)
1. Answer each of the following Check Point Questions from our textbook:
a) 11.4.1 – 11.4.4 (page 422)
b) 11.5.1 – 11.5.6 (pages 423-424)
c) 11.7.1 (page 425)
d) 11.8.1 – 11.8.4 (page 427)
2. Programming exercise.
Implement a class named MySquare that extends GeometricObject.
The UML of GeometricObject is provided below:
GeometricObject
– color: Color
– filled: boolean
– dateCreated: java.time.LocalDate
+GeometricObject()
+GeometricObject(color: Color, filled: boolean)
+getColor():Color
+setColor(color: Color): void
+isFilled(): boolean
+setFilled(filled: boolean): void
+getDateCreated():java.time.LocalDate
+toString(): String
The MySquare class contains:
¦ One MySquare data side with default value 1.0.
¦ A no-arg constructor that creates a default square.
¦ A constructor that creates a square with the specified side.
¦ The accessor method for the side data field.
¦ A method named getArea() that returns the area of this square.
¦ A method named getPerimeter() that returns the perimeter of this square.
¦ A method named toString() that returns a string description for this square.
Draw the UML diagram for the MySquare class.
Implement the class. Use enum Color as in Lab#4 for color. Write a test program that creates three MySquare
objects with sides 1, 1.5, 2, colors yellow, green and blue and filled true, true and false respectively, and
displays the area, perimeter, color, and whether filled or not.
Implement main methods in both classes and test all accessible MySquare and GeometricObject methods
from both. Using javax.swing.JOptionPane for output is preferred. Provide the graphics for all your squares as
we did in Lab 4.
3. Programming exercise.
Design and Implement your own class named KeanStaff that extends KeanPerson.
Recommended data fields:
– office: String
– title: String
– salary: double
– dateOfHire: java.time.LocalDate
Create toString() methods in the classes KeanPerson, KeanStudent, KeanFaculty, and KeanStaff, unless
already implemented (you can use Eclipse source tab).
Make sure that KeanStaff toString() method overrides KeanPerson’s toString().
Write a test program that creates a KeanPerson, KeanStudent, KeanFaculty, and KeanStaff, and invokes their
toString() methods.
4. Extra point project (10 points). Programming exercise 11.6 from the book (page 448).
Note: properly document all of your programs. Follow the Naming Conventions.
CPS 2231*05 Computer Organization and Programming
Homework #8
Due Date: March 31, 2020
(the assignment must be submitted before the Class Meeting starts)
1. Answer each of the following Check Point Questions from our textbook:
a) 11.9.1 – 11.9.4 (pages 432-433)
b) 11.10.1 – 11.10.2 (page 434)
c) 11.12.1 – 11.12.2 (page 441)
d) 11.15.1 – 11.15.2 (page 445)
2. Extra point project (10 points). Code Analysis.
Analyze the code snippet below:
package package1;
import
import
import
import
import
java.io.BufferedReader;
java.io.IOException;
java.io.InputStreamReader;
java.net.MalformedURLException;
java.net.URL;
public class WebPageTextReader {
public static void main(String[] args) {
try {
URL url = new URL(“http://eve.kean.edu/~ykumar/MyPage.html”);
// read text returned by server
BufferedReader in = new BufferedReader(new
InputStreamReader(url.openStream()));
String line;
while ((line = in.readLine()) != null) {
//System.out.println(line);
double d = Double.parseDouble(line);
System.out.println(d);
}
in.close();
}
catch (MalformedURLException e) {
System.out.println(“Malformed URL: ” + e.getMessage());
}
catch (IOException e) {
System.out.println(“I/O Error: ” + e.getMessage());
}
}
}
Answer the following questions:
2.1. How many classes are involved in this code? What are they? (Hint: how many class names
do you see according to your knowledge of class naming conventions?)
2.2. How many objects of these classes are created in this code? (Hint: look for a new
operator?
2.3. What do you think this program does? Explain in your own words.
Note: properly document all of your programs. Follow the Naming Conventions.
CPS 2231-05 Computer Organization and Programming
Homework #4
Due Date: Thursday, February 20, 2020
(the assignment must be submitted before the Class Meeting starts)
#3 counted as an Extra point task (5 points.)
Note: properly document all your programs.
CPS 2231-05 Computer Organization and Programming
Homework #5
Due Date: Due Date: Tuesday, March 3, 2020
(the assignment must be submitted before the Class Meeting starts)
1. Answer the following Check Point Questions:
a) 10.10.1 (pages 392 – 393)
b) 10.10.3 (page 393)
c) 10.10.10 (page 394)
d) 10.10.11 (page 394)
e) 10.11.6 (page 399)
2. Programming exercise 10.4 (page 402) from our textbook.
3. Extra point (5 points). Programming exercise 10.1 (page 401) from our textbook.
Note: properly document your program(s).
1

Purchase answer to see full
attachment

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 15% with the discount code ESSAYHELP15