Assignment no1CPE02
Assignment no1CPE02
Instructions: Answer the following questions in the space provided after each item adjust the
space if necessary. Cite your sources and avoid plagiarism. Save your response as
Assignment1_SRURNAME. Turn in your work on or before the due date ends. A hard copy of
this template will be submitted in the next face-to-face meeting.
- Programming is, quite literally, all around us. From the take-out we order, to the movies
we stream, code enables everyday actions in our lives. Tech companies are no longer
recognizable as just software companies — instead, they bring food to our door, help us get a
taxi, influence outcomes in presidential elections, or act as a personal trainer.
- Problem Analysis
-Algorithm Design
-Modularization
•Breaking down into functions or methods •Encapsulation -Error Handling •Edge cases
and exceptions •Validations
-Optimization
3. Describe what are the structures governing the design and implementation of modern
programming languages.
ASSIGNMEN
T NO. 1 CPE02: COMPUTER PROGRAMMING
Professor: Dr. Jennis Articona
- Generally coding is done in high level language or low level language (assembly language).
For the computer to understand these languages, they must be translated into machine level
language. The translation process is carried out by a compiler/interpreter (for high level
language) or an assembler (for assembly language program). The machine language code thus
created can be saved and run immediately or later on. In an interpreted program, each
program statement is converted into machine code before program is executed. The execution
occurs immediately one statement at a time sequentially. BASIC is one of the frequently used
interpreted language. In contrast to interpreter, a compiler converts a given source code into
object code. Once an object code is obtained, the compiled programs can be faster and more
efficient than interpreted programs.
5. Distinguish the different features of 1st, 2nd, 3rd, 4th, 5th and 6th generation programming
languages.
- Programming languages have evolved significantly over time, moving from fundamental
machine-specific code to complex languages that are simpler to write and understand. Each
new generation of programming languages has improved, allowing developers to create more
efficient, human-readable, and adaptable software. The transition from the first low-level
languages to current, high-level languages offered new tools and ideas that continue to
influence how we write software today.
- Procedural Programming (POP) breaks tasks into step-by-step functions, while Object-
Oriented Programming (OOP) builds with objects that hold data and actions. If you are
building a house, you may place every brick one at a time with a thorough design.
ASSIGNMEN
T NO. 1 CPE02: COMPUTER PROGRAMMING
Professor: Dr. Jennis Articona
- There are many factors that influence the choice of programming languages, the main
factors are cost, organization policy, availability, reliability, suitability and expandability. All
these factors should be considered when choosing a programming language.