Computer Science  >  STUDY GUIDE  >  Unionville Hs AP COMPSCI 11 Chapter 3 PowerPoint Notes (1). (All)

Unionville Hs AP COMPSCI 11 Chapter 3 PowerPoint Notes (1).

Document Content and Description Below

Introduction to Programming in C++ Seventh Edition Chapter 3: Variables and Constants• Distinguish among a variable, a named constant, and a literal constant • Explain how data is stored in m ... emory • Select an appropriate name, data type, and initial value for a memory location • Declare a memory location in C++ An Introduction to Programming with C++, Seventh Edition Chapter Objectives 2• After Step 3, programmer has an algorithm and has desk-checked it • The fourth step in the process is coding the algorithm into a program • The step begins by assigning a descriptive name, data type, and (optionally) initial value to each unique input, processing, and output item in the IPO chart • These are used to store the item in the computer’s internal memory An Introduction to Programming with C++, Seventh Edition Beginning Step 4 in the ProblemSolving Process 3• Computer’s internal memory is composed of memory locations, each with a unique numeric address • Similar to collection of storage bins • Each address can store one item at a time • Address can contain numbers, text, or program instructions • To use a memory location, programmer must reserve the address, called declaring An Introduction to Programming with C++, Seventh Edition Internal Memory 4• Declaring a memory location is done with an instruction that assigns a name, data type, and (optional) initial value • The name allows the programmer to refer to the memory location elsewhere in the program using a descriptive word, rather than the numeric address • The data type indicates what type of information the address will store (e.g., number or text) An Introduction to Programming with C++, Seventh Edition Internal Memory (cont’d.) 5• Two types of memory locations can be declared: variables and named constants • Variables are memory locations whose values can change during runtime (when the program is running) • Most memory locations are variables • Named constants are memory locations whose values cannot change during program execution An Introduction to Programming with C++, Seventh Edition Internal Memory (cont’d.) 6An Introduction to Programming with C++, Seventh Edition Internal Memory (cont’d.) Figure 3-1 Illustration of storage bins 7• Name (identifier) assigned to a memory location should be descriptive • Should help t [Show More]

Last updated: 3 years ago

Preview 1 out of 52 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of Unionville Hs AP COMPSCI 11 Chapter 3 PowerPoint Notes (1). document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$12.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

56
0

Document information


Connected school, study & course


About the document


Uploaded On

Jul 04, 2021

Number of pages

52

Written in

All

Seller


Profile illustration for d.occ
d.occ

Member since 4 years

232 Documents Sold

Reviews Received
30
8
4
1
7
Additional information

This document has been written for:

Uploaded

Jul 04, 2021

Downloads

 0

Views

 56

Document Keyword Tags

Recommended For You

Get more on STUDY GUIDE »

$12.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·