Professional Documents
Culture Documents
Fow Seng Joe (B1757) - PFE Laboratory 1
Fow Seng Joe (B1757) - PFE Laboratory 1
Fow Seng Joe (B1757) - PFE Laboratory 1
BENGME2A
Fow Seng Joe B1757
Lab Feedback Form
Total Marks / 40
General Comments:
Name:
Learning Outcomes
Objective
Introduction
This laboratory introduces the field of computer science and covers the
fundamentals of hardware, software, operating systems, programming, problem
solving, and software engineering. The components of programs, such as key
words, variables, operators, and punctuation are covered.
Read and answer the Lab 1 Intro to C++ Programming IDE that has been
uploaded in Laboratory folder in Microsoft Teams.
Answer
Lab: 1 Introduction to C++ Programming and IDE BEE2009 PFE
5
Lab 1: Introduction to C++Programming and IDE
1)
C++ Program Object Program Executable Program
General purpose Focus on objects that File program that does
programming language make the program its task based on the
encoded instruction
directly executed
OOP language Concern the behaviour of
the object
General purpose Able to receive messages,
coding language process data and send
messages
Used to develop Compiler convert source
operating system and code into object code
browsers
Used for game Each object has its own
programming and data responsibility
structures
3)
a. int c. string e. int g. bool
b. invalid i. invalid
c. valid j. valid
d. valid k. invalid
e. invalid l. invalid
f. valid m. valid
5) a. constant statement
b. mathematical expression statement
6)
Output code:
7)
Output code:
Programming Activities
1)
Output code:
2)
Output code:
Output code:
3)
Output code:
4)
Output code: