Professional Documents
Culture Documents
Lab 1 Introduction To Progrmming
Lab 1 Introduction To Progrmming
Learning Objectives/Outcomes:
Upon completion of this lab, the student should be able to:
• use the smartv3 system for gaining the course learning materials, taking the quizzes and
tests, submitting the course works and joining the discussion forum – Practice 1
• familiar with C++ Integrated Development Environment (IDE) for coding, compiling and
debugging C++ program – Practice 2
• write a C++ program structure, includes the comments, preprocessor directive, main
function, standard library such as input stream (cin), comments, white space and basic
formatting (e.g. ‘\n’, ‘\t’, etc.) – Practices 3 & 4
The C++ IDE tools could be assessed through the following web sites. Download and install the
program.
After the installation, familiar yourself with the installed C++ IDE environment:
i. Writing and editing C++ Code
ii. Configure your compiler and build your C++ project
iii. Debugging the program under the debugger or run in debug mode to investigate the
problems
1
Practice 3: Structure of C++ Program (Estimate 15 minutes to 30 minutes)
Write your first C++ Program that displays a message “Welcome to KT14303 Programming
Principle Faculty of Computing and Informatics Universiti Malaysia Sabah!” inside a box on the
console screen, as shown in Figure 1 below. Do your best to approximate lines with characters
such as ‘|’ or ‘-‘ .
SAMPLE RUN :
****************************************************
* Welcome to KT14303 Programming Principles *
* Faculty of Computing and Informatics *
* Universiti Malaysia Sabah! *
****************************************************
SAMPLE RUN :
****************************************************
* Welcome to KT14303 Programming Principles *
* Faculty of Computing and Informatics *
* STUDENT NAME *
* BI21XXXXXX *
* while (! (succeed =try())); *
****************************************************