Computer Program
Sequential instructions used to operate a computer to produce a specific result.
Programming
Process of writing a program in a
language that the computer can respond to and a programmer can understand.
Programming Language
Set of instructions that can be used to construct a program
Algorithm
Step by step sequence of instructions describing how to form a computation
Pseudocode
Uses English to describe the
processing steps (algorithm).
Flowchart
Uses shapes to describe the
processing steps (algorithm).
Source Program
Language used to program (programmer's side)
Object Program
Machines version of the source program (computer's side)
Compiler
Translates from Source (programmer's) to Object (machine's) program before a statement is executed
Interpreter
Translates from Source (programmers) to Object (machine's) program that is immediately executed.
3)
There are three cups A, B, and C
Water to rinse
A and B have liquid
Pour contents of A into C
Wash A
Pour contents of B into A
Wash B
Pour contents of C into B
Wash C
4)
Piggy bank full of $, H=$.50, Q=$.25, D=$.10
N=$.05, P=$.01
Shake out $ from Piggy Bank
Separate $ in denominations.
Multiply number of coins in each denomination by the value of that denomination.
5)
Three integers A, B, and C
If A<B and A<C then A=smallest
If B<A and B<C then B= smallest
If C<A and C<B then C=smallest
1.3
1)
a)
#include <stdio.h>
main()
{
printf("Wendi Medley \n207 6th St.\nSt. Augustine, FL,. 32080");
}
2)
a)
#include <stdio.h>
main()
{
printf("Computers, computers everywhere\n as far as I can see\n");
printf("I really, really like these things,\n Oh joy, Oh joy for me!");
}