Structured Programming Assignments
Structured Programming Assignments
ASSIGNMENT 1
DATE: 10.06.2023
ADVANTAGES DISADVANTAGES
● Provide direct control over ● Programmers must know deeply about
computer hardware. the computer hardware to interact
● Debugging is easy as it's closer to with it.
computer. ● No space for errors, programmers
● Sufficient memory management have to write error free code for the
enables programmers manage the computer hardware.
computer memory directly hence ● Time consuming, memory and
faster execution. complexity of instructions have to be
● Can write highly efficient code managed.
used in software that requires high ● Less portable and have to be hardware
efficiency. specific.
COMPILER INTERPRETER
● Takes an entire program as input. ● Takes a single instruction as input.
● Compiles programs every time. ● Converts higher level program into
lower level program every time.
● Display errors after checking the ● Display errors for every instruction.
whole program.
● Requires more memory for object ● Requires less memory.
code generation.
● Intermediate object code is ● No Intermediate object code is
generated. generated.
● Faster conditional control statements ● Slower conditions control statements
execution. execution.
START
INPUT Position
IF Position 1
PRINT "Gold"
IF Position 2
PRINT "Silver"
ELSE IF Position 3
PRINT "Bronze"
END IF
STOP