Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. [6 marks Computers represent characters by associating with each character a specific sequence of O's and I's. In this question, you will be dealing

image text in transcribed

1. [6 marks Computers represent characters by associating with each character a specific sequence of O's and I's. In this question, you will be dealing with the ASCII and Unicode encodings discussed in class. You can find a table listing the decimal (labeled Dec) and hexadecimal (labeled Hx) codes for each ASCII character (labeled Chr) at http://www.lookuptables.com by clicking on the "ASCII table button near the top of the page. This site also contains tables for Unicode accessible by clicking on the Unicode v4 Tables" button. a. [2 marks Linux and MacOS X systems terminate cach line of a text file with a single linefeed (LF) character. Windows terminates each line with two characters: a carriage return character (CR) followed by a linefeed character (LF). What are the ASCII codes for these two characters? b. [1 marks in one sentence, explain how given its ASCII code, you would convert a digit into the corresponding numeric value. c. [1 marks Draw a simple circuit that takes in 8 inputs 67, 66, ...,bo corresponding to a character's ASCII code, and outputs the binary integer 67, 66, ...,bo corresponding to its numeric value if the input is the ASCII code for one of the digits 'O' to '9'. Your circuit can do anything it likes if the input is not the ASCII code for one of the digits. d. [1 marks Draw a simple circuit that takes in 8 inputs b7, 66, ...,bo corresponding to a character's ASCII code, and outputs the same letter, with the case changed. That is, if the input represents an uppercase letter, then the output will be the corresponding lowercase letter, and if the input represents a lowercase letter, then the output will be the corresponding uppercase letter. Your circuit can output anything it likes if the input is not a letter. e. [1 marks What is the hexadecimal Unicode character for the white smiling face (hint: see "Miscellaneous Symbols")? 1. [6 marks Computers represent characters by associating with each character a specific sequence of O's and I's. In this question, you will be dealing with the ASCII and Unicode encodings discussed in class. You can find a table listing the decimal (labeled Dec) and hexadecimal (labeled Hx) codes for each ASCII character (labeled Chr) at http://www.lookuptables.com by clicking on the "ASCII table button near the top of the page. This site also contains tables for Unicode accessible by clicking on the Unicode v4 Tables" button. a. [2 marks Linux and MacOS X systems terminate cach line of a text file with a single linefeed (LF) character. Windows terminates each line with two characters: a carriage return character (CR) followed by a linefeed character (LF). What are the ASCII codes for these two characters? b. [1 marks in one sentence, explain how given its ASCII code, you would convert a digit into the corresponding numeric value. c. [1 marks Draw a simple circuit that takes in 8 inputs 67, 66, ...,bo corresponding to a character's ASCII code, and outputs the binary integer 67, 66, ...,bo corresponding to its numeric value if the input is the ASCII code for one of the digits 'O' to '9'. Your circuit can do anything it likes if the input is not the ASCII code for one of the digits. d. [1 marks Draw a simple circuit that takes in 8 inputs b7, 66, ...,bo corresponding to a character's ASCII code, and outputs the same letter, with the case changed. That is, if the input represents an uppercase letter, then the output will be the corresponding lowercase letter, and if the input represents a lowercase letter, then the output will be the corresponding uppercase letter. Your circuit can output anything it likes if the input is not a letter. e. [1 marks What is the hexadecimal Unicode character for the white smiling face (hint: see "Miscellaneous Symbols")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions