AP Computer Science A
*********
*********
Due Date: August 30, 2023
Ascii Table - PX_lastname_Ascii.png
Complete Ascii table encoding on per Mr. Cusack instructions.
Be sure to put your name and class period on the board.
You will screen print your demo modeled after Mr. Cusack demonstration.
Your file name will be PX_lastname_Ascii.png
Commit to memory a portion of Ascii table.
Drop this off into google classroom.
Read the notes below:
Gain an understanding of Ascii Table and how it relates to the Unicode table.
The ASCII (American Standard Code for Information Interchange) table is a character encoding standard that assigns unique numeric codes to represent characters in computers and communication equipment. It was developed in the early days of computing to provide a standardized way to represent characters using binary numbers, making it possible for different computer systems to communicate and exchange text-based information.
The ASCII table consists of a total of 128 character codes, each assigned a unique 7-bit binary number, ranging from 0 to 127. These codes represent a variety of characters, including letters (both uppercase and lowercase), digits, punctuation marks, control characters (such as newline and tab), and special characters.
For example, some common ASCII codes and their corresponding characters are:
- ASCII Code 65: Represents the uppercase letter 'A'
- ASCII Code 97: Represents the lowercase letter 'a'
- ASCII Code 48: Represents the digit '0'
- ASCII Code 32: Represents the space character
- ASCII Code 10: Represents the newline character
The ASCII table provided a consistent way to represent characters across different computer systems, making it possible to share text-based data and messages between different devices and software. However, as computing evolved and more characters were needed to represent different languages, symbols, and characters, the limitations of the 7-bit ASCII encoding became apparent.
To accommodate a wider range of characters, different character encoding standards like ISO-8859 and eventually Unicode were developed. Unicode, in particular, aims to cover virtually all characters and symbols from all writing systems, and it provides multiple encoding schemes, including UTF-8 and UTF-16, which can represent characters using more than 8 bits as needed.
While ASCII itself has largely been surpassed by more comprehensive and flexible character encodings like Unicode, its legacy remains in the foundation of many programming languages and systems, and it still serves as the basis for the first 128 characters of Unicode.
*********
*********
Due Date: August 30, 2023
Calculate subtraction in Binary - PX _lastname_2Complement.mp4
Complete a demo of subtraction on the board per Mr. Cusack instructions.
Be sure to put your name and class period on the board.
You will be recording your demo modeled after Mr. Cusack demonstration.
Your file name will be PX_lastname_2Complement.mp4
Drop this off into google classroom.
Read the notes below:
Calculate subtraction in Binary either the Board or
on Paper per Mr. Cusack instructions.
Take a picture with your name and class period on it.
Your file name will be PX _lastname_2Complement.jpg
Turn it into google classroom.
Read the notes below:
In Java, the two's complement is a fundamental concept used for representing and manipulating signed integer values. Two's complement is a binary representation that allows negative numbers to be represented by flipping the bits of the positive counterpart and then adding 1. This representation simplifies arithmetic operations and provides a convenient way to handle both positive and negative integers within a fixed number of bits.
Here's how two's complement works in Java:
1. **Positive Numbers:**
- Positive integers are represented using their regular binary representation, with no modifications needed. For example, the decimal number 5 would be represented as `00000101` in binary using 8 bits.
2. **Negative Numbers:**
- To represent a negative number, you first take the two's complement of its positive counterpart.
- To find the two's complement, you invert (flip) all the bits (0s become 1s and 1s become 0s) of the positive binary representation.
- Then, add 1 to the inverted result.
For example, let's consider an 8-bit representation:
- Decimal -3: Its positive counterpart is 3, which is `00000011` in binary.
- Invert the bits: `11111100`
- Add 1: `11111101`
So, the two's complement representation of -3 in an 8-bit system is `11111101`.
When you perform arithmetic operations in Java, including addition, subtraction, multiplication, and division, the two's complement representation ensures that these operations work consistently for both positive and negative numbers. The use of two's complement simplifies the hardware design of processors and allows them to perform arithmetic operations using the same logic gates for both signed and unsigned integers.
In modern computing systems, the details of two's complement representation are handled by the hardware and the programming language, like Java, abstracts these complexities away from the programmer. You can work with positive and negative integers in a natural way, and the underlying two's complement representation takes care of the required conversions and arithmetic operations.
*********
*********
*********
*********
Due Date: August 23, 2023
Please complete the following in College Board.
-Watch the video below.
-Complete the questions below.
I will ask questions at random based on the videos.
If you know the answer you get a 100 for the day.
If you have NOT watched the video and do not know the answer, you get a zero for the day.
Click here to review the Questions.
*********
*********
Due Date: September 1, 2023
We will have an exam next Friday.
The questions are pulled from Unit 1 of the APCS A content we are going thru.
Sign into your Quizizz with your account. (25 Questions)
Click on this button to practice.
Practice as many times as you want.
*********
*********
Due Date: August 27, 2023
Please complete the following in College Board.
-Watch the video below.
-Complete the questions below.
I will ask questions at random based on the videos.
If you know the answer you get a 100 for the day.
If you have NOT watched the video and do not know the answers, you get a zero for the day.
Click here to review the Questions.
*********
*********
Due Date: August 28, 2023
Please complete the following in College Board.
-Watch the video below.
-Complete the questions below.
I will ask questions at random based on the videos.
If you know the answer you get a 100 for the day.
If you have NOT watched the video and do not know the answers, you get a zero for the day.
Click here to review the Questions.
*********
*********
Due Date: August 29, 2023
Please complete the following in College Board.
-Watch the video below.
-Complete the questions below.
I will ask questions at random based on the videos.
If you know the answer you get a 100 for the day.
If you have NOT watched the video and do not know the answers, you get a zero for the day.
Click here to review the Questions.
*********
*********
Due Date: August 30, 2023
Please complete the following in College Board.
-Watch the video below.
-Complete the questions below.
I will ask questions at random based on the videos.
If you know the answer you get a 100 for the day.
If you have NOT watched the video and do not know the answers, you get a zero for the day.
Click here to review the Questions.
*********
*********
Due Date: September 5, 2023
We will be doing Computer math.
We will do it on the board:
Binary addition
Octal addition
Octal subtraction
Hexadecimal addition
Hexadecimal subtraction.
Decimal / binary conversion
Decimal / octal conversion
Decimal / hexadecimal conversion