Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Computer Engineering Department - ITU

CE100L: Computing Fundamentals & Programming Lab

Course Instructor: Usama Bin Shakeel Dated: 07/09/2022

Teaching Assistant: Aqsa Khalid Semester: Fall 2022

Lab Engineer: Nadir Abbas Batch: BSCE2022

Lab 2A. Learn How to Write an Algorithm & Drawing


Flowcharts

Report Total
Name Roll number Scaled to 10
(out of 100) (out of 10)

Checked on: ____________________________

Signature: ____________________________
Objective
The goal of this handout is to learn about writing an algorithm and drawing flowcharts.
Equipment and Component
Component Description Value Quantity
Computer Available in lab 1

Conduct of Lab
1. Students are required to perform this experiment individually.
2. In case the lab experiment is not understood, the students are advised to seek help from the course
instructor, lab engineers, assigned teaching assistants (TA) and lab attendants.

Theory and Background


A programming algorithm is a procedure or formula used for solving a problem. It is based on conducting
a sequence of specified actions in which these actions describe how to do something, and your computer
will do it exactly that way every time. An algorithm works by following a procedure, made up of inputs.
Flowchart is a graphical representation of an algorithm. Programmers often use it as a program-planning
tool to solve a problem. It makes use of symbols which are connected among them to indicate the flow of
information and processing. The process of drawing a flowchart for an algorithm is known as
“flowcharting”.

Lab Tasks

Task A

Write an algorithm to take 10 integers as input, find the average, then display the average as
output.

Algorithm to find the average of ten inteagers


1) START
2) Take the input of ten integers. Lets say a, b, c, d, e, f, g, h, I, j.
(where a can be any number)
3) Add all the input and let the answer be equal to “sum” as:
sum=a+b+c+d+e+f+g+h+i+j
4) Divide the number “sum” with 10 and let the answer be equal
to result. As: Result=Sum/10.
5) Display the “result”
6) End
Task B

Draw a flowchart for task A.

Task C
Push the repository.
Assessment Rubric for Lab
Method for assessment:
Lab reports and instructor observation during lab sessions. Outcome assessed:
a. Ability to conduct experiments, as well as to analyze and interpret data (P) b. Ability to function on multi-disciplinary teams (A)
c. Ability to use the techniques, skills, and modern engineering tools necessary for engineering practice (P)
Performance Max Obtained
Task CLO Description Exceeds expectation Meets expectation Does not meet expectation
metric marks marks
Executes without errors Executes without errors, user
Does not execute due to syntax
excellent user prompts, prompts are understandable,
1. Realization errors, runtime errors, user
good use of symbols, minimum use of symbols or
of experiment 1 1 Functionality 40 prompts are misleading or non-
spacing in output. Through spacing in output. Some
(a) existent. No testing has been
testing has been completed testing has been completed
completed (0-19)
(35-40) (20-34)
Actively engages and Cooperates with other group
Distracts or discourages other
2. Teamwork Group cooperates with other group member(s) in a reasonable
1 3 5 group members from conducting
(b) Performance member(s) in effective manner but conduct can be
the experiment (0-1)
manner (4-5) improved (2-3)
On Spot Able to make changes (8- Partially able to make changes
3. Conducting 1 1 10 Unable to make changes (0-4)
Changes 10) (5-7)
experiment (a,
c) Answered all questions (8- Unable to answer all questions
1 1 Viva 10 Few incorrect answers (5-7)
10) (0-4)
4. Laboratory
Comments are added and Comments are added and
safety and Code
1 3 5 does help the reader to does not help the reader to Comments are not added (0-1)
disciplinary commenting
understand the code (4-5) understand the code (2-3)
rules (a)
Excellent use of white
space, creatively organized Includes name, and
Poor use of white space
work, excellent use of assignment, white space
5. Data (indentation, blank lines) making
1 3 Code Structure 5 variables and constants, makes the program fairly easy
collection (c) code hard to read, disorganized
correct identifiers for to read. Title, organized work,
and messy (0-1)
constants, No line-wrap (4- good use of variables (2-3)
5)
Solution is efficient, easy to A logical solution that is easy
6. Data A difficult and inefficient solution
1 4 Algorithm 20 understand, and maintain to follow but it is not the most
analysis (a, c) (0-5)
(15-20) efficient (6-14)
Documentation
7. Computer
1 2 & Github 5 Timely (4-5) Late (2-3) Not done (0-1)
use (c)
Submissions
Max Marks (total): 100 Obtained Marks (total):

Lab Engineer Signature: ________________________

You might also like