Klein Prep Computer Science: Periods 3,4
Due Date: Thursday February 9, 2023
2_04_8SalutationsTester
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_04_8SalutationsTester_lastname.java
Create a copy of the java progame into a text file.
PX_2_04_8SalutationsTester_lastname.txt
-copy of the working source code
2_04_8Salutations
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_04_8Salutations_lastname.java
Create a copy of the java program into a text file.
PX_2_04_8Salutations_lastname
-copy of the working source code
-After building both programs, you need to run them together.
PX_2_04_8SalutationsTester_lastname.png
-screen print of your program with your output after
it has been run.
PX_2_04_8SalutationsTester_lastname.mp4
-Using Screencast-O-Matic and record
running the program
Drop off all six files. file into google classroom.
Listen to the explaination of this program by Mr. Cusack. (Youtube)
Listen to the explain of this program by Mr. Cusack. (joecusack.com)
Explain it to Mr. Cusack in the front.
Sign off on completing it.
*****
*****
Due Date: Thursday February 9, 2023
2_05_9Bot2Tester
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_05_9Bot2Tester_lastname.java
Create a copy of the java progame into a text file.
PX_2_05_9Bot2Tester_lastname.txt
-copy of the working source code
2_05_9Bot2
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_05_9Bot2_lastname.java
Create a copy of the java program into a text file.
PX_2_05_9Bot2_lastname
-copy of the working source code
-After building both programs, you need to run them together.
PX_2_05_9Bot2Tester_lastname.png
-screen print of your program with your output after
it has been run.
PX_2_05_9Bot2Tester_lastname.mp4
-Using Screencast-O-Matic and record
running the program
Drop off all six files. file into google classroom.
See if you can figure this one out.
Explain it to Mr. Cusack in the front.
Sign off on completing it.
*****
*****
Due Date: Thursday February 9, 2023
2_07_8FormFillTester
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_07_8FormFillTester_lastname.java
Create a copy of the java progame into a text file.
PX_2_07_8FormFillTester_lastname.txt
-copy of the working source code
2_07_8FormFill
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_07_8FormFill_lastname.java
Create a copy of the java program into a text file.
PX_2_07_8FormFill_lastname
-copy of the working source code
-After building both programs, you need to run them together.
PX_2_07_8FormFill_lastname.png
-screen print of your program with your output after
it has been run.
PX_2_07_8FormFill_lastname.mp4
-Using Screencast-O-Matic and record
running the program
Drop off all six files. file into google classroom.
See if you can figure this one out.
Explain it to Mr. Cusack in the front.
Sign off on completing it.
*****
*****
Due Date: Thursday February 9, 2023
2_06_8GeoLocation
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_06_8GeoLocation_lastname.java
Create a copy of the java progame into a text file.
PX_2_06_8GeoLocation_lastname.txt
-copy of the working source code
2_06_8HowFarAway
Click here to see the source code
Copy this source code into your Eclipse IDE.
Make sure you setup your package CodeHS.
Your file name for Eclipse will be:
-original source copy
PX_2_06_8HowFarAway_lastname.java
Create a copy of the java program into a text file.
PX_2_06_8HowFarAway_lastname
-copy of the working source code
-After building both programs, you need to run them together.
PX_2_06_8HowFarAway_lastname.png
-screen print of your program with your output after
it has been run.
PX_2_06_8HowFarAway_lastname.mp4
-Using Screencast-O-Matic and record
running the program
Drop off all six files. file into google classroom.
See if you can figure this one out.
Explain it to Mr. Cusack in the front.
Sign off on completing it.
*****
*****
Due Date: Thursday February 9, 2023
Integer Overflow 1.6.11
Mr. Cusack will explain in great detail
why java int data types are the size they are?
This concept will involve using hex, and binary counting and computation.
You will have to explain this back to Mr. Cusack for a great.
We will review why this code cause wrong answers.
public class IntegerOverflow
{
public static void main(String[] args)
{
System.out.println(Integer.MIN_VALUE);
System.out.println(Integer.MAX_VALUE);
System.out.println(Integer.MIN_VALUE - 1);
System.out.println(Integer.MAX_VALUE + 1);
}
}
Mr. Cusack will explain in great detail
The different size of data types for all 4 interger type and there size.
We will talk about 1-complement, 2-complement.
We will talk about negative and positives number.
You will have to explain this back to Mr. Cusack
*****
*****
*****
*****
*****
*****