Java Basic Coding

Programming

java coding

Kean University

Question Description

basic coding,

please find attached documents which have clear instructions to be followed.

There are other two files related to java that will be uploaded once bidded, because i couldn't attach on the files, along with the screenshots that are required to complete the assignments

Unformatted Attachment Preview

CPS 1231-06 Fundamentals of Computer Science Homework #6 Due Date: Wednesday, March 18, 2020 (the assignment must be submitted before the Class Meeting starts) 1. Create small Java programs to answer each of the following Check Point Questions, provide both your source code and the output. a) 4.2.1 (page 124) b) 4.3.4 (page 129) c) 4.3.6. (page 129) d) 4.4.1 (page 137) e) 4.6.2 (page 149) f) 4.6.3 (page 149) 2. Programming exercise 4.4 (page 151) from our textbook. 3. Extra point (5 points.) Programming exercise 4.12 (page 154) from our textbook. Note: properly document all your programs CPS 1231-07 Fundamentals of Computer Science Homework #7 Due Date: Wednesday, March 25, 2020 (the assignment must be submitted before the Class Meeting starts) 1. Answer each of the following Check Point Questions from our textbook: a) 5.2.1 – 5.2.3 (page 163) b) 5.5.1 (page 170) c) 5.6.1 – 5.6.2 (pages 172-173) 2. Programming exercise 5.3 page 195. Use System.out.printf() method to display formatted output. 3. Programming exercise 5.6 page 195. Use System.out.printf() method to display formatted output. 4. Extra point exercise 5.1 page 194 (10 points). Note: properly document all of your programs. Follow the Naming Conventions. CPS 1231-06 Fundamentals of Computer Science Homework #8 Due Date: Wednesday, April 1, 2020 (the assignment must be submitted before the Class Meeting starts) 1. Answer each of the following Check Point Questions: a) 5.7.1 – 5.7.7. (pages 175-176) b) 5.8.3 – 5.8.4 (page 178) c) 5.9.1 (page 179) 2. Programming exercise 5.10 (page 196) from our textbook. 3. Programming exercise 5.13 (page 196) from our textbook. 4. Extra point project (10 points). Programming exercise 5.19 from the book (page 197). Note: properly document all your programs. Don’t forget to provide a screenshot of the programs output. CPS 1231-07 Fundamentals of Computer Science Homework #10 Due Date: April 15, 2020 (the assignment must be submitted before the Class Meeting starts) 1. Provide answers to the following Check Point Questions from our textbook: a) 6.4.1 (page 213) b) 6.4.8 (page 213) c) 6.4.9 (page 213) d) 6.5.1 – 6.5.3 (pages 216-217) 2. Programming exercise 6.8 (page 237) from our textbook. 3. Extra point project (10 points). a) Programming exercise 2.21 (page 74) from our textbook. b) Programming exercise 6.7 (page 237) from our textbook. CPS 1231-06 Fundamentals of Computer Science Homework #9 Due Date: Monday, April 6, 2020 (the assignment must be submitted before the Class Meeting starts) 1. Answer each of the following Check Point Questions: a) 5.12.1 – 5.12.4. (pages 188-189) 2. Tracing exercise. Trace the following nested loop by hand: for (int i = 0; i < 4; i++) { for (int j = 1; j <= 3; j++) { System.out.println(i + " " + j); } } Provide your result in the following form: i 0 1 i<4 0<4 … Boolean true j j≤3 1 2 3 4 1 2 3 4 ≤ ≤ ≤ ≤ 3 3 3 3 Boolean Output true true true false 01 02 03 … … go on until you are done … 3. Extra point project (10 points). Program analysis. 3.1. Analyze the program in Part 6. Web page of Lab #5 Loops listed below. What kind of loop does it use? For what? 3.2. Would it be possible to re-write this program using for loop? Explain your answer. 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()); } } } Note: properly document all your programs. Don’t forget to provide a screenshot of the programs output. ...
Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!