STARTING OUT WITH C++ MPL
9th Edition
ISBN: 9780136673989
Author: GADDIS
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 2.10, Problem 2.19CP
Program Plan Intro
American Standard Code for Information Interchange (ASCII):
- ASCII stands for “American Standard code for Information Interchange”.
- ASCII is a standard “character encoding” scheme, where characters are represented in the form of numeric codes.
- The numeric code for lower and upper case alphabets, punctuations, numbers and special characters are represented using ASCII codes.
- ASCII code value begins with “000” and ends with “127”.
- Seven bits are used to indicate an ASCII character.
- Additional 128 larger character sets are indicated using eight bits in ASCII.
Storage and representation of character:
- Characters stored in the memory are read in the form of ASCII codes (numeric codes).
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
What are the ASCII codes for the following characters? (Refer to Appendix B )CFW
What are the ASCII codes for the characters listed below?
C
F
W
What characters are represented by the ASCII codes 0x46 and 0x66? ("Ox" indicates hexadecimal)
Chapter 2 Solutions
STARTING OUT WITH C++ MPL
Ch. 2.1 - The following C++ program will not compile because...Ch. 2.1 - On paper, write a program that will display your...Ch. 2.3 - Prob. 2.3CPCh. 2.3 - What output will the following lines of code...Ch. 2.3 - On paper, write a program that will display your...Ch. 2.5 - Which of the following are legal C++ assignment...Ch. 2.5 - List all the variables and literals that appear...Ch. 2.5 - When the above main function runs, what will...Ch. 2.5 - When the following main function runs, what will...Ch. 2.7 - Which of the following are illegal C++ variable...
Ch. 2.7 - Prob. 2.11CPCh. 2.7 - Prob. 2.12CPCh. 2.7 - Prob. 2.13CPCh. 2.7 - How would you combine the following variable...Ch. 2.7 - How would you combine the following variable...Ch. 2.8 - Prob. 2.16CPCh. 2.8 - What will the following code display? int number;...Ch. 2.8 - Prob. 2.18CPCh. 2.10 - Prob. 2.19CPCh. 2.10 - Which of the following is a character literal? 'B'...Ch. 2.10 - Prob. 2.21CPCh. 2.10 - What is wrong with the following program...Ch. 2.10 - Prob. 2.23CPCh. 2.10 - Write a program that stores your name, address,...Ch. 2.15 - Is the following assignment statement valid or...Ch. 2.15 - What is wrong with the following program? How...Ch. 2.15 - What will be assigned to x in each of the...Ch. 2.15 - Prob. 2.28CPCh. 2 - Every complete statement ends with a _____.Ch. 2 - To use cout statements you must include the _____...Ch. 2 - Every C++ program must have a function named...Ch. 2 - Prob. 4RQECh. 2 - A group of statements, such as the body of a...Ch. 2 - 'A', and "Hello World" are all examples of _____.Ch. 2 - 978.65 1012 would be written in E notation as...Ch. 2 - Prob. 8RQECh. 2 - Indicate if each of the following assignment...Ch. 2 - If the variables letter and w have been defined as...Ch. 2 - Indicate if each of the following cout statements...Ch. 2 - Indicate if each of the following cout statements...Ch. 2 - Assume integers x = 4, y = 7, and z = 2. What...Ch. 2 - Assume double variables x = 2.5, y = 7.0, and z =...Ch. 2 - Write a C++ statement that defines the double...Ch. 2 - Write a C++ statement that defines the int...Ch. 2 - Write assignment statements that perform the...Ch. 2 - Write assignment statements that perform the...Ch. 2 - Modify the following program segment so it prints...Ch. 2 - Rewrite the follow statement to use the newline...Ch. 2 - Create detailed pseudocode for a program that...Ch. 2 - Prob. 22RQECh. 2 - Prob. 23RQECh. 2 - Create detailed pseudocode for a program that...Ch. 2 - What will the following programs print on the...Ch. 2 - A) #include iostream using namespace std; int main...Ch. 2 - The following program contains many syntax errors....Ch. 2 - Soft Skills Programmers need good communication...Ch. 2 - Sum of Two Numbers Write a program that stores the...Ch. 2 - Sales Prediction The East Coast sales division of...Ch. 2 - Sales Tax Write a program that computes the total...Ch. 2 - Restaurant Bill Write a program that computes the...Ch. 2 - Miles per Gallon A car holds 16 gallons of...Ch. 2 - Distance per Tank of Gas A car with a 20 gallon...Ch. 2 - Number of Acres One acre of land is equivalent to...Ch. 2 - Land Calculation In the United States, land is...Ch. 2 - Circuit Board Price An electronics company makes...Ch. 2 - Prob. 10PCCh. 2 - Triangle Pattern Write a program that displays the...Ch. 2 - Diamond Pattern Write a program that displays the...Ch. 2 - Pay Period Gross Pay A particular employee earns...Ch. 2 - Basketball Player Height The star player of a high...Ch. 2 - Stock Loss Kathryn bought 750 shares of stock at a...Ch. 2 - Energy Drink Consumption A soft drink company...Ch. 2 - Past Ocean Levels The Earths ocean levels have...Ch. 2 - Future Ocean Levels During the past decade ocean...Ch. 2 - Annual High Temperatures The average July high...Ch. 2 - How Much Paint A particular brand of paint covers...
Knowledge Booster
Similar questions
- Kindly answer the following questions. d. How are the ASCII codes for the decimal digits obtained? What is the relation between the ASCII codes for the capital letters and lowercase letters?arrow_forwardRepresent the decimal number 9876 in a) 8421-code, b) 2241-code and с) еxcess-3 code.arrow_forwardConvert the following numbers (subscripts indicate the base/radix) into the three other forms. Decimal number system, Binary number system, Octal number system, and Hexadecimal number system. Please encode the answer and include the remainders. 1. 462.718 2. BEBE.C016arrow_forward
- The basic idea of computers is representing everything with binary numbers Answer 1: everything Answer 2: binary numbersarrow_forwardStudy Guide 1. Find the two's complement of the following positive binary number: 00111110 Type answer here: 2. Determine the decimal number represented by the following binary number assuming it represents a value in a two's complement number system. 11100000 Type answer here: 3. Find the two's complement number system representation of the following decimal number, using n (number of bits) = 8. -113 Type answer here: 4. Calculate (A – B), and (-A – B) for the following pair of binary numbers, assuming a two’s complement number system with n (number of bits) = 8. Note any unusual results, if any should оссur. 01111010, 00000111 A+B =Type answer here: A-B =Type answer here: -A-B =Type answer here: 5. Determine the parity bit to establish even parity of message a and odd Parity for message b. P10001100 Peven = Type answer here: а. b. PO0110101 Podd =T ype answer here:arrow_forwardIf the ASCII code for uppercase A is 65 (decimal), what will be the ASCII code for lowercase c? {Upper and lowercase letters differ by 32} a. Insufficient information given b. 98 c. 97 d. 99 e. 33arrow_forward
- convert the initial letter of your full name including your middle name (Gonzales, Via Angeline C. = GVAC ) using ASCII/EBCIDIC and Unicode memory representaion.arrow_forwarduse the ASCII code to fill the following table: Characters Decimal Binary C d i n garrow_forwardWhat is the decimal number 550069 in base 23? (Hint: use the ascii array from A1!) What is the decimal number 121775 in base 256?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning