0% found this document useful (0 votes)
28 views1 page

Computing For Engineers: Lab Activity 1: Introduction To C++ Programming Objectives

This document provides an introduction to C++ programming for engineering students. It outlines the objectives of learning the C++ compiler and basic programming. Students will understand how to use the C++ compiler and be able to write simple C++ programs that perform arithmetic operations like addition based on user input. A sample C++ code is provided that adds a user input number to a hardcoded number and displays the output.

Uploaded by

Aaron Tan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Computing For Engineers: Lab Activity 1: Introduction To C++ Programming Objectives

This document provides an introduction to C++ programming for engineering students. It outlines the objectives of learning the C++ compiler and basic programming. Students will understand how to use the C++ compiler and be able to write simple C++ programs that perform arithmetic operations like addition based on user input. A sample C++ code is provided that adds a user input number to a hardcoded number and displays the output.

Uploaded by

Aaron Tan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Computing For Engineers

Lab Activity 1: Introduction to C++ programming Objectives:

To be familiar with the C++ compiler and basic programming.

Learning Outcomes:At the end of the session, the students able: To understand and familiarize with the C++ compiler.

Apparatus: PC with C++ compiler

Sample Code: The C++ code below requires one input number from user. An arithmetic operation which is addition is done. The final output from this code is the result obtained from the arithmetic operation. #include <iostream> using namespace std; int main() { int a,b,c; cout<< Please enter one number:; cin>>a; b = 10; c = a + b; cout<<c<<endl; system(pause); } Question From the code, draw the flowchart of its operation, explain the operation by commenting each line and print screen the output.

Computing For Engineers Introduction to C++ Programming

You might also like