EGCP1130PythonExperiment 1 - Semester-1 - AY 2023-2024 2
EGCP1130PythonExperiment 1 - Semester-1 - AY 2023-2024 2
EGCP1130PythonExperiment 1 - Semester-1 - AY 2023-2024 2
Sultanate of Oman
Last
E-mail Address: Version No. 1.3 Date of Septembe
Revisio r 13, 2023
n
Course Coordinator Mr. Falah Jawad Septembe
Signature Date
(Lecturer): r 13, 2023
Chief Technician: Mr. Bernardo Gumapac
Septembe
Signature Date
r 13, 2023
Approved by: Specialization Computer Engineering
13/9/202
Program Coordinator: Ms. Ann Mary Varghese Signature Date
3
Verified by: Section CAE EEE MIE
Curriculum Committee Mr. Mohammed
Signature Date
Member: Fasiuddin
Experiment # 1 – Introduction to C Programming / Flowcharting and Diploma First Year
Algorithm EGCP1130
Course Description
Prerequisites: Nil
Goal The course aims to equip the graduates with problem solving, programming skills
and to apply real time programming approaches in all engineering disciplines
through any latest computer programming languages like python.
Objectives Outcomes
The course learning objectives are to enable the On completion of the course the student will be able
students to: to:
1. Develop knowledge of problem solving through 1. Analyze and solve various engineering problems
algorithms and flowcharts. through algorithms and flowcharts.
2. Categorize the levels of programming languages. 2. Classify the types of computer languages; High
level language to Low level language.
3. Explain the basic constructs of Python programming
language. 3. Explain the basic concepts and application of
Python programming in various engineering
4. Develop and write simple Python programs.
fields.
5. Apply Python programming skills in any real time
4. Apply the procedural statements, assignments,
engineering problems.
conditional statements, loops, function calls and
sequences.
5. Develop programs with array and string
operations.
6. Apply file handling operations to read and write
data into the files of different types.
7. Apply and write program to solve any real time
engineering problem.
After successfully completing this course, students should be able to manifest the following ticked College
Graduate Attributes (GAs):
Discipline knowledge and skills
Technical and digital competency
Creativity and Innovation
Critical Thinking, Analysis, and Problem Solving
Communication skills
Teamwork and Leadership
Entrepreneurial skills
Lifelong learning
Experiment # 1 – Introduction to C Programming / Flowcharting and Diploma First Year
Algorithm EGCP1130
DEPARTMENT OF ENGINEERING
ELECTRICAL AND ELECTRONICS ENGINEERING SECTION
Higher College of Technology, P O BOX 74, AL-KHUWAIR, CODE 133 24473600 fax 24485364
5
(Lists, Tuples, Sets and 4, 5 ,6,7,8
Dictionaries).
Arrays and Strings in 1, 2, 3, 5 ,7 1,2,3,4,5 1 Week
6 Python. 4, 5 ,6,7,8
7 1, 2, 3, 4, 7 1,2,3,4,5 1 Week
while Loop in Python.
4, 5 ,6,7,8
8 for Loop and range() 1, 2, 3, 4, 7 1,2,3,4,5 1 Week
function in Python 4, 5 ,6,7,8
9 Functions. 1, 2, 3, 5, 7 1,2,3,4,5 1 Week
4, 5 ,6,7,8
1, 2, 3, 6 ,7 1 Week
10 Files.
4, 5
Experiment # 1 – Introduction to C Programming / Flowcharting and Diploma First Year
Algorithm EGCP1130
1. Attentively LISTEN TO THE INSTRUCTIONS of the laboratory/workshop staff before starting with
any laboratory/workshop work.
2. LISTEN TO the laboratory/workshop staff as he discusses the SAFETY ARRANGEMENT for the
activity and keep in mind the required precaution and KNOW THE HAZARDS involved in the
performance of the laboratory/workshop activity.
3. READ AND UNDERSTAND THE PROCEDURE as written in the laboratory/workshop manual
before beginning with any activity. If you have doubts do not hesitate to ask the in-charge
laboratory/workshop staff.
4. Always think of safety. EXECUTE THE LABORATORY EXPERIMENT WITH EXTRA CARE
AND AVOID PLAYING WHILE DOING THE ACTIVITY. Fooling around or "horse play" in the
laboratory/workshop is absolutely forbidden. Students found in violation of this safety rule will be dealt
accordingly.
5. NEVER energize circuits or turn on equipment and devices without approval of the in-charge
laboratory/workshop staff.
6. Do not use devices and equipment if you DO NOT KNOW how to use it. Ask for HELP!
7. OBSERVE BEST PRACTICES for MANUAL HANDLING when working. Do not try to move heavy
objects alone or without the use of the appropriate equipment. Use trolley and/or lifting tools as
necessary. ASK FOR HELP!
8. HOUSEKEEPING RULE is fully implemented in all laboratories and workshops. Keep your work area
clean and organized. Return all devices and equipment in their proper storage.
9. WEAR THE APPROPRIATE ATTIRE while inside the laboratory or workshop (LABORATORY
COAT OR COVER ALL)
10. FOOD AND DRINKS are not allowed inside the laboratory or workshop.
11. FAMILIARIZE yourself with all safety arrangement in the laboratory/workshop. Know the emergency
procedures, evacuation procedures, location of first aid kit and location of the fire extinguisher.
12. If an INCIDENT/ACCIDENT happened, immediately call the attention of the laboratory
instructor/laboratory technician in charge.
DEPARTMENT OF ENGINEERING
ELECTRICAL AND ELECTRONICS ENGINEERING SECTION
Higher College of Technology, P O BOX 74, AL-KHUWAIR, CODE 133 24473600 fax 24485364
Experiment 1.
Introduction to Computer Programming / Flowcharting and
Algorithm
Obtained Mark
Student Name ID #
Section # Day/Time
Name of Faculty Email
Nabil Al Toubi
(Laboratory): Address:
Experiment # 1 – Introduction to C Programming / Flowcharting and Diploma First Year
Algorithm EGCP1130
I. INTRODUCTION:
Flowchart represents information or processes as boxes, lines, and text. The boxes represent
activities, the lines (or flowlines) represent the workflow that connects them, and the text
represents what happens at each activity. A flowchart can be drawn by hand on paper or
projected on a whiteboard. A flowchart consists of a set of interconnected shapes which signify
process steps, decision points (if-then branches), or headings.
In this activity, we will use Microsoft Word to draw the flowcharts on this experiment sheet using the
shapes option in the insert top menu. See below for reference.
Flowchart is a very simple yet powerful tool to improve productivity in both our personal and
work life. Here are some ways flowchart can be helpful:
Document a process.
Present solution to a problem.
Brainstorm ideas in a meeting.
Design an operating system.
Explain a decision-making process.
Store information.
Draw an organizational chart.
Create a visual user journey.
Create a sitemap.
Experiment # 1 – Introduction to C Programming / Flowcharting and Diploma First Year
Algorithm EGCP1130
II. AIMS:
Always bear in mind the LABORATORY / WORKSHOP SAFETY RULES (on page 5) especially item
numbers 1, 2, 3, 4, 8, 10, 11, and 12.
Skills Testing:
Task 1 (Instructor Led) : Create an algorithm and draw a flowchart that will accept 3 numbers and then
display the sum and average, and finally decide if the sum is even or odd
(3 Marks)
Task 2: Create an algorithm and draw a flowchart that will calculate the given processes - (3 marks)
U=T+A+S
B= U * Y
Z=B+4
Write and algorithm and draw a flowchart that will accept 3 numbers and display the largest number.
REFERENCES
Sources (e.g. APA style, MLA style, Harvard referencing, The Chicago Manual of Style)
Skill Testing / Experimentation (12 marks) Excellent (88-100%) Very Good (68-87 %) Fair (34-67 %) Poor (0-33 %)
(answers to the questions; flowcharts or diagrams; All task requirements were Most of the task requirements Some of the task requirements Needs Improvement
and output or result) satisfied. (3 marks) were satisfied. (2.6 mark) were satisfied. (2 marks) (1 mark)
Task 1 (3 marks)
2 Task 2 (3 marks)
Task 3 (3 marks)
Note: For 4 or more tasks, it will be scaled to 9 marks total also: (9 marks / total number of tasks)
All task requirements were Most of the task requirements Some of the task requirements
CONCLUSIONS (3 marks) Needs Improvement (1 mark)
satisfied. (3 marks) were satisfied. (2.6 marks) were satisfied. (2 marks)
Workmanship (3 marks)
3 The work completely satisfied the The work partially satisfied the job Failed to satisfy the job No evidence of quality
Quality of Work (3 marks) job requirements / specifications. requirements / specifications. (2.6 requirements / specifications. workmanship was observed.
(3 marks) marks) (2 marks) (1 mark)
4 Student solves the given problems Student solves the given problems
Student solves the given problems Student can not solve the given
Problem Solving Skills (6 marks) with minimum supervision. (5.2 with supervision. (4
by himself. (6 marks) problems. (2 marks)
marks) marks)
5
Date Performed:____________ Date Completed: __________ Date Submitted:__________
Notes:
Use black or blue pen only. Deduction will be imposed for not following instructions.
In case of absence, only those with valid reasons are allowed to repeat the experiment.