CIS 1057 Chapter Notes - Chapter 3: Return Statement, Input Device

27 views3 pages

Document Summary

It"s important to have multiple numerical data types. Integers are smaller in memory than floating point numbers. Character data type char data type represents a single character (e. g. letter, number, special, etc) chars must be enclosed in single quotes (unless entering data to program, e. g. enter a not a") Since chars are represented by an integer value, they can be compared numerically. Ascii code e. g. a" <= q" is a valid expression. Ascii is a particular code that maps integers to character values. Codes 32 to 126 are printable characters. 0 to 31 and 127 to 255 are control characters and provides a command to the output device rather than being printed out. Executable statements are any operations that are executed by the program. An instruction that stores a value or a computational result in a variable. Form of an assignment statement variable = expression. E. g. a = 7 * 8 + z.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents