Uploaded by amanQuo

Assignment 1 DIT1 052120760083

advertisement
INTRODUCTION TO STRUCTURED PROGRAMMING.
ASSIGNMENT 1
1a. A CPU is a important part of every computer. The CPU send signals to control the other part of the
computer, almost like how a brain controls the body. The CPU is an electronic machine that works on a
list of computer thing to do, called instructions.
b. Bit that’s turned on represent 1
Bit that’s turned off represent 0
c. Digital device
d. Keyword
e. Mnemonic
F. Compiler produce a program written in assembly language while An interpreter produce a result from
a program
g. System software
2a. 11=1011
b. 65=111001
c. 100=1100100
d. 255=11111111
3a. 1101=13
b. 1000=8
c. 101011=63
4. Letter
Decimal
Binary
K
75
01001011
W
87
01010111
A
65
01000001
K
75
01001011
U
85
01010101
5a. BASIC was created by John G. Thomas E. Kurt
C++ was created by Bjarne Stroustrup
Java was created by James Gosling
Python was created by Guido Van Rossum
b. BASIC was created in 1960’s
C++ was created in 1980
Java was created in 1996
Python was created in 1991
c. BASIC was created to enable student in non-scientific fields to use computers. At the time, nearly all
computers required writing custom software, which only scientists an mathematicians tented to learn.
The idea behind the creating of C++ programming was to add object orientation to C programming
language. The major upgradation are object-oriented programming methodology, namespace feature,
operator overloading, error and exception handing.
The motivation was to create a new language that would allow consumer electronic device to
communicate.
Python was mainly developed for emphasis on code readability, and it’s syntax allows programmers to
express concepts in fewer lines of code.
Download