0% found this document useful (0 votes)
44 views6 pages

CP Lab - 01 - 024

This document provides instructions and objectives for Computer Programming Lab CSC 113. It discusses differentiating between algorithms and pseudocode, provides an algorithm and pseudocode for summing two numbers, instructions for setting up a basic C++ program in Visual Studio, and explanations of the Output window, Solution Explorer, and Errors List. It concludes with instructions to run a basic cout program.
Copyright
© © All Rights Reserved
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)
44 views6 pages

CP Lab - 01 - 024

This document provides instructions and objectives for Computer Programming Lab CSC 113. It discusses differentiating between algorithms and pseudocode, provides an algorithm and pseudocode for summing two numbers, instructions for setting up a basic C++ program in Visual Studio, and explanations of the Output window, Solution Explorer, and Errors List. It concludes with instructions to run a basic cout program.
Copyright
© © All Rights Reserved
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/ 6

COMPUTER

PROGRAMMING LAB
CSC 113

BSE 1

FALL 2020

LAB JOURNAL # 1

Submitted by:
Muhammad Ezaan Ali
Submitted To: Engr.
Waleed
Department of Software Engineering
Bahria University Islamabad Campus

LAB OBJECTIVES:
 To become well aware of algorithm and pseudocode
 Basic cout program.

1. Differentiate between Algorithm and


Pseudocode.
An algorithm is a step by step procedure for solving a problem. A procedure is a sequence
of instructions, where each is carried out in a finite amount of time.

Whereas a Pseudocode is an informal way of writing a program. It is not exactly a computer


program. It represents the algorithm of the program but in natural language and mathematical
notations. It uses simple English language letters.

2. Algorithm and Pseudocode for a computer


related problem.
Pseudocode for Sum of Two Numbers:

START
Set sum=0;
Read: num1, num2;
Set sum = num1+num2;
Print sum;
STOP

Algorithm for Sum of Two Numbers:

Step 1: Get first number from user


Step 2: Get second number from user
Step 3: Apply ‘+’ operator on the two numbers
Step 4: Display Sum on screen

3. Setup your first C++ program on Visual Studio.


 Open visual studio.
 Click on New Project.
 Click on Empty Project.
 An empty project opens
 Now press ctrl+shift+a
 Select .cpp file.
 A blank project opens.
 Happy coding.

4. Explain the following


Output
The Output window shows the output of the compiler/build system as well as output from
debugging sessions.

Solution explorer
Solution Explorer window that is used to manage solutions, projects, and files. It provides a
complete view of all the files in a project, and it enables us to add or remove files and to
organize files into different subfolders.

Errors list
The Error List is used to display information about a specific error message. We can also copy
the error number or error string text from the Output window.

5. Run the basic cout program.


Program
Result

You might also like