C ++ Wsu
C ++ Wsu
INTRODUCTION
TO
PROGRAMMING
1
PROBLEM SOLVING
A problem as a question or situation that presents uncer-
tainty or difficulty.
For example: Selling a product in the shop is the task
here.
The problem is to sell Or how a sales person sells a product in the
shop.
For a sale to happen in a shop you should go through the
following:
Determine what the unit price of the product is.
Count the quantity, (how many of the product) and
Calculate the total amount to be paid by the customer.
Calculate the change that you have to give back to the customer.
algorithms.
to create.
Each assembly language statement generally trans-
lates into one machine code instruction,
grams.
The final program as executed by the computer is
not as efficient,
but the savings in programmer time generally far
outweigh the inefficiencies of the finished product.
2ND GENERATION –
ASSEMBLY LANGUAGE (Symbolic Code)
3RD GENERATION –
HIGH LEVEL LANGUAGES (Independent of the machine)
4TH GENERATION –
FOURTH GENERATION LANGUAGES (4GLS) ( most advanced)