1/55
Looks like no tags are added yet.
Computer programming
It is creating step by step by step instructions using a programming language so a computer can perform tasks and solve problems ( giving instructions to the computer
what are the 10 stages of Programming Process
Requirements gathering
Analysis
Design
Implementation (coding)
Testing
Deployment
Maintenance
Documentation
Version control
Project management
Requirements Gathering
Understand what the user/client needs
Analysis
examine the requirements and possible solutions ( examine & analyze requirements)
Design
plan the program, algorithm, data, and interface (creating plan)
Implementation/code
write the actual code (writing a code)
Testing
find and fix errors (identify and fix detects)
Deployment
release the program to users ( maintain document)
Maintainance
update, improve, and fix the program
Documentation
record information about the program
Version control
track changes in the code
Project management
plan and monitor the project
What are the Programming process in C
Problem definition
Algorithm
Pseudocode / Flowchart
Code writing
Compilation
Testing and Debugging
Optimization
Problem definition
clearly identify what problem the C program needs to solve (understand the problem)
Algorithm design
create step by step solution to solve the problem (step by step for solving the problem)
Pseudocode /Flowchart
Represent the programs logic and structure before coding
Code writing
write the actual C code based on the algorithm
Compilation
Use C compiler to convert the C code into a machine-readable format
Testing and Debugging
run the program and find and fix errors /
Optimization
improve the programs performance and efficiency if needed
Procedural Programming
focuses on using procedures /functions to perform specific tasks. (step by step instructions or procedures to solve a problem)
What are the Important Characteristics of procedural programming
Functions
Global Variables
Sequential Execution
Limited data abstraction
Code Reusability
Top down design
Funtions
perform specific operations. (instructions)
Global Variables
variables accessible from different parts of the program
Sequential Execution
instructions execute step by step
Code Reusability
functions can be reused
Top down design
breaks a large problem into small problems
Object-oriented Programming
focuses on objects, which contain data and actions
What are the 2 types of programming
Procedural Programming
Object - Oriented Programming
Variable
is a name given to a storage area where a program can store data/value (storage area)
Assignment operator
it is used to assign or store a value in a variable
What are the Rules of Naming Variables
Cannot start with a number
Cannot contain spaces
Cannot use special characters
Variable is Case Sen
+
Adds two operands
-
subtracts second operand from the first
*
multiplies both operands
/
divides numerator by denomerator
%
modulus operator and remainder of after an integer division
++
increment operator increases the integer
—
decrement operator decreases the integer value by one
Algorithm
is a step by step procedure used to solve a problem or perform a task
What are the Characteristics of Algorithm
Well defined
Finite
Input
Output
Deterministic
Feasible
Correctness
Well defined
Clear steps
Finite
must eventually end
Input
receives data
Output
produce a result
Deterministic
same input gives the same output every time it’s executed
Feasible
practical to perform
correctness
produces the correct result
pseudocode
informal way of writing an algorithm using simple, human readable instructions. It is not tied to a specific language
IPO model
identify the data that goes into a program, what the program does, and what result in produces
(what goes in, what happens, what comes out
Flowchart
is a visual representation of an algorithm or process. It uses symbols and arrows to show the sequence of steos
start/end
Oval, start or end
process
rectangle, action/Calculation
Input /output
parallelogram, input or output
decision
Diamond, Question/condition
arrow
arrow line, direction/flow