0% found this document useful (0 votes)
2 views17 pages

COS 201- Module 1

The document serves as an introduction to computer programming, emphasizing its importance in creating applications and solving problems across various domains. It outlines the programming process, including problem identification, analysis, solution design, and implementation, while highlighting the skills developed through programming such as analytical thinking and automation. Additionally, it provides practical examples, such as planning a birthday party and preparing for school resumption, to illustrate the problem-solving process in action.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views17 pages

COS 201- Module 1

The document serves as an introduction to computer programming, emphasizing its importance in creating applications and solving problems across various domains. It outlines the programming process, including problem identification, analysis, solution design, and implementation, while highlighting the skills developed through programming such as analytical thinking and automation. Additionally, it provides practical examples, such as planning a birthday party and preparing for school resumption, to illustrate the problem-solving process in action.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

COS 201

Computer
Programming I
Module 1:Introduction to Computer
Programming
Introduction
 Computers are used for various tasks in various settings,
such as school, work, and home. Creating applications to
run these tasks
 How do we make these applications to handle these tasks?
 We program these apps to perform diverse functions
through software created by programmers and developers.
 A programmer, or software developer, is a person with the
training and skills necessary to design, create, and test
computer programs.
 Computer programming is an important and versatile
career employed across many industries and fields.
 In this course we will be learning how this application are
made
Computer Programming
 A program is a set of instructions that tells the computer what
to do.
 Computer programming (often shortened as coding), is the
process of;
 writing, testing, debugging/troubleshooting and maintaining
instructions (source code) for solving a problem with the
computer.
 A source code is written in an acceptable computer
programming language. (C++, Java, Python etc.)
 The purpose of programming is to create a program that
exhibits a certain described behavior (customization).
 The process of writing source code requires expertise in many
different subjects, including knowledge of the application
domain.
What is Programming
 Programming is the craft of transforming
requirements into something that a computer can
execute.
 It is also the process of creating a set of instructions
(called a program) that tells a computer how to
perform a task. It involves:
 Writing precise, step-by-step commands
 Using specific programming languages that the computer
can understand
 Converting human thoughts and solutions into machine-
executable format (Coding)
Why Programming Matters
An essential skill for problem-solving
 programming is a fundamental tool for problem-
solving, as it allows for;
 The development of analytical and logical thinking,
 The automation of tasks,
 The modelling and simulation of scenarios,
 The manipulation and analysis of data,
 The rapid prototyping of solutions,
 These capabilities make programming an
essential skill for effective problem-solving in a
wide range of domains.
Key Ways Programming Contributes
To Problem-Solving
 Algorithmic Thinking: Programming requires the ability
to break down complex problems into a series of logical
steps or algorithms. This helps develop analytical and
problem-solving skills
 Automation: Programming allows for the automation of
repetitive or tedious tasks, freeing up time and resources
to focus on more complex problem-solving.
 Modeling and Simulation: Programming enables the
creation of models and simulations to test hypotheses,
explore scenarios, and experiment with potential solutions
without the risks or constraints of the real world..
Key Ways Programming Contributes
To Problem-Solving
 Data Manipulation and Analysis: Programming provides the
tools to collect, organize, and analyze data, which is crucial for
identifying patterns, trends, and insights that can inform problem-
solving approaches.
 Rapid Prototyping: The iterative nature of programming allows
for the rapid development and testing of solutions, enabling quick
feedback and the ability to iterate on ideas.
Key Ways Programming Contributes
To Problem-Solving
 Scalability and Adaptability: Well-designed programs can
be easily scaled and adapted to handle larger or more
complex problems, making them a valuable tool for
problem-solving.
 Collaboration and Communication: Programming often
involves working with teams, which fosters collaboration,
communication, and the sharing of diverse perspectives to
tackle complex problems.
The Problem-Solving Process
The Problem-Solving Process
 Problem Identification: Understanding what needs to be
solved, Identifying inputs and required outputs and determining
constraints and requirements
 Problem Analysis: Breaking down complex problems into
smaller parts, identifying patterns and relationships and
determining necessary resources
 Solution Design: Creating algorithms to solve the problem,
planning data structures and Designing user interfaces (if
needed)
 Implementation: Writing the actual code, Testing and debugging
and Optimizing performance
Example: Planning a Birthday Party
 Problem Identification
 Understanding what needs to be solved: You want to plan a fun
birthday party.
 Identifying inputs and required outputs: You need to know how many
guests are coming, what food and drinks to provide, and what
activities/entertainment you should include.
 Determining constraints and requirements: You have a limited
budget, a small venue, and a specific date and time.
 Problem Analysis
 Breaking down complex problems into smaller parts:
 List the tasks: sending invitations, ordering food, buying decorations,
planning games, etc.
 Identifying patterns and relationships: Figure out how many guests
will attend which helps dictate the amount of food and drinks needed.
 Determining necessary resources: Determine what you need to buy
(cake, drinks, decorations) and who can help (friends, family).
Planning a Birthday Party
 Solution Design
 Creating algorithms: Outline steps for each task, like:
 Create a guest list, Send invitations, Confirm attendance, and Order
food based on headcount.
 Planning data structures: Create a simple spreadsheet to keep track
of guest RSVPs and budgets.
 Designing user interfaces: If you're using an online invitation service,
design the page to be easy to navigate for your guests.
 Implementation
 Writing the actual code: Not literally code here, but putting your plan
into action—send invitations, order food, buy decorations.
 Testing and debugging: Check if guests received invitations, adjust if
food order is too small or too large based on RSVPs.
 Optimizing performance: If the budget allows, consider things like
double-checking supplies to avoid last-minute rushes or tweaking the
game schedule based on what works well previously.
Class work

 Planning my resumption
 Using the Problem-Solving Process, to help solve
this problem of a student preparing for school
resumption after a break.
Example: Planning for school
resumption
 Problem Identification

 Understanding what needs to be solved: The student


needs to get ready for school.
 Identifying inputs and required outputs: The student needs school
supplies (notebooks, pens, textbooks), a schedule for classes, and
potentially new clothes.
 Determining constraints and requirements: There’s a limited
budget for new supplies, and the student needs to be ready by a specific
date.
 Problem Analysis
 Breaking down complex problems into smaller parts:
 Create a list of required supplies, review the school schedule, and plan
clothing needs.
 Identifying patterns and relationships: Analyze which subjects
require specific textbooks and what items are left over from the previous
term.
 Determining necessary resources: Check what supplies can be
reused and what needs to be bought.
Planning for school resumption
 Solution Design
 Creating algorithms: Outline the steps to follow:
 List all subjects for the new term.
 Research the needs for each subject (books, materials).
 Create a shopping list for supplies and clothes.
 Set aside time for back-to-school shopping.
 Planning data structures: Use a checklist or a digital
app to track what items are needed and which ones have
already been purchased.
 Designing user interfaces: If using an online store,
make it user-friendly for quick navigation and purchasing
of items.
Planning for school resumption

 Implementation

 Writing the actual code: In this context, it means


putting the plan into action—shopping for supplies,
organizing the backpack, and laying out clothes for the
first day.
 Testing and debugging: After shopping, check to
ensure all items on the list have been bought; if
something is missing, adjust plans to acquire it.
 Optimizing performance: If the budget is tight,
prioritize essential items first and consider second-hand
options for items that are still in good condition.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy