brentwoodhigh.com

| repl.it | w3schools.com | Site Stats
Game | Food Drink | Leave Room | Classroom Tardy | Backpack | Music Cell |
Coding I Schedule | Coding I LogIn | Coding I Archive | Coding I Resources |
Coding II Schedule | Coding II LogIn | Coding II Archive | Coding II Resources |
APP schedule | APP LogIn | APP Archive | APP Resources |
CSF schedule | CSF LogIn | CSF Archive | CSF Resources |

Chapter 2

 

Chapter 1 introduced you to the basic elements of a C# program. You discovered the requirements for developing, compiling, and executing applications. This chapter focuses on data. Data is the raw facts, the basic numbers and characters that are manipulated to produce useful information. In this chapter, you will begin to see the power of programming when you write applications to perform calculations. You will learn how to declare variables that hold different types of data in memory and see how arithmetic operators react given different kinds of data.

 

IN THIS CHAPTER, YOU WILL:

Examine how computers represent data
Declare memory locations for data
Explore the relationship between classes, objects, and types
Use predefined data types
Use integral data types
Use floating-point types
Learn about the decimal data type
Declare Boolean variables
Declare and manipulate strings
Work with constants
Write assignment statements using arithmetic operators
Learn about the order of operations
Learn special formatting rules for currency
Work through a programming example that illustrates the chapter's concepts

 

2 DATA TYPES AND EXPRESSIONS

2.1. Data Representation 66 | PPT

Bits 66
Bytes 66
Binary Numbering System 66
Character Sets 69
Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte... 70

2.2. Memory Locations for Data 70 | PPT

Identifiers 71
Variables 75
Literal Values 75

2.3. Types, Classes, and Objects 76 | PPT

Types 76
Classes 77
Objects 78

2.4. Predefined Data Types 79 | PPT

Value Types 79

2.5. Integral Data Types 82 | PPT

Integral Data Types 82

2.6. Floating-Point Types 85 | PPT

Floating-Point Types 85

2.8. Decimal Types 86 | PPT

Decimal Types 86

2.9. Boolean Variables 87 | PPT

Boolean Variables 87

2.10. Declaring Strings 88 | PPT

Declaring Strings 88

2.11. Making Data Constant 88 | PPT

Making Data Constant 88

2.12. Assignment Statements 89 | PPT

Basic Arithmetic Operations 92
Increment and Decrement Operations 95
Compound Operations 98

2.13. Order of Operations 100 | PPT

Order of Operations 100
Mixed Expressions 102
Casts 103

2.14. Formatting Output 104 | PPT

Formatting Output 104

2.15. Width Specifier 109 | PPT

Width Specifier 109

2.16. Coding Standards 119 | PPT

Naming Conventions 119
Spacing Conventions 119
Declaration Conventions 120

2.17. Resources 120

Resources

2.18. Quick Review 120

Review

2.19. Exercises 121

Pg 125 question 16
Pg 125 question 18

2.20. Programming Exercises 127

PE01 : Miles, feet, and inches.
PE02 : Miles to Kilometers
PE03 : Celsius to Fahrenheit
PE04 : Ruggy Shoes
PE05 : Take-Home Pay
PE06 : Exam Average
PE07 : Change
PE08 : Weighted Grade
PE09 : Granola Project
PE10 : Monetreal Smoked Meats

 

 

 

 

 

 

 

 

 

 

 

 

 

Updated: Tuesday, July 28, 2020 3:40 PM

About Us | Contact Us | ©2005 brentwoodhigh.com