COP 3502 Chapter Notes - Chapter 2: Binary Operation, Decimal Mark, Integer Literal
Document Summary
The focus of this chapter is on learning elementary programming techniques to solve problems. programs work and useful tool for inding errors in programs. Concatenate strings: the plus sign has two meanings, addiion and concatatening or combining strings. In this case the + is being used as a string concatenaion operator. Break a long string: a string cannot cross lines in the source code. To ix the error, break the string into separate substrings and sue the concatenaion operator to combine them. Wriing a program involves designing a strategy for solving the problem and then using a programming language to implement that strategy. Algorithm: describes how a problem is solved by lising the acions that need to be taken and the order of their execuion. Pseudocode: natural language mixed with some programming code. Code: write a program; when you code you translate an algorithm into a program. Variable: represents a value stored in the computer"s memory.