SlideShare a Scribd company logo
1 of 34
TTLM Code: ICT DBA3 05 0710
UC : Design A Database 1
1. Attendance (10%)
2. Quizzes:- (10%)
3. Theory exam (30%) 5/5/2015
4. Lab Assessment (50%) 8/5/2015
LO1: Select the Program Design Approach
LO2: Document the program logic or design
LO3: Validate the Design
UC : Design A Database 3
1.1 Obtaining Design Documentation and
Requirement for the Program Clarification
1.1.1Pseudo code
 Pseudocode is an informal high-level
description of the operating principle of a
computer program or other algorithm.
UC : Design A Database
4
 Pseudocode
English-like representation of a program
It could be viewed as the outline of a program
It can’t be compiled or executed.
The focus is on solving the problem, not
worrying about the specifics of a
programming Language.
UC : Design A Database 5
 It uses the structural conventions of a
programming language, but is intended for
human reading rather than machine reading.
 Pseudocode typically omits details that are not
essential for human understanding of the
algorithm, such as variable declarations,
system-specific code and some subroutines.
UC : Design A Database 6
 The programming language is augmented with
natural language description details, where
convenient, or with compact mathematical
notation.
 The purpose of using pseudocode is that it is
easier for people to understand than conventional
programming language code, and that it is an
efficient and environment-independent
description of the key principles of an algorithm.
UC : Design A Database 7
 It is commonly used in textbooks and scientific
publications that are documenting various
algorithms, and also in planning of computer
program development, for sketching out the
structure of the program before the actual coding
takes place
UC : Design A Database 8
 When we write programs, we assume that the
computer executes the program starting at the
beginning and working its way to the end. We call
this sequence
 SEQUENCE is a linear progression where one
task is performed sequentially after another.
In pseudo code it look like this
UC : Design A Database 9
Statement 1;
Statement 2;
Statement 3;
Statement 4;
Statement 5 ;
Example, for making a cup of tea:
Organize everything together;
Plug in kettle;
Put teabag in cup;
Put water into kettle;
Wait for bottle to boil;
Add water to cup;
Remove teabag with spoon/fork/;
Add milk and /or sugar;
Serve;
UC : Design A Database 10
 What if we need to tell the computer to keep
doing something until some condition occurs?
Let’s say we wish to indicate that you need to
keep filling the kettle with water until it is full.
We call this a loop.
 WHILE is a loop (repetition) with a simple
conditional test at its beginning Or, in general
UC : Design A Database 11
While (<condition>)
Do <Statements>;
Endwhile;
As we could state this as:
While (Kettle is not
full)
Do keep filling Kettle;
EndWhile;
Example, above:
Organize everything together;
Plug in kettle;
Put teabag in cup;
While (Kettle is not full)
Do keep filling Kettle;
EndWhile;
Wait for bottle to boil;
Add water to cup;
Remove teabag with spoon/fork/;
Add milk and /or sugar;
Serve;
UC : Design A Database 12
 What if we want to make a choice, for example,
do we want add sugar or not to the tea? We call
this selection.
 IF-THEN-ELSE is a decision (selection) in
which a choice is made between two alternative
courses of action.
UC : Design A Database 13
UC : Design A Database 14
 A flow chart is a graphical or symbolic
representation of a process.
 Each step in the process is represented by a
different symbol and contains a short
description of the process step.
 The flow chart symbols are linked together with
arrows showing the process flow direction.
UC : Design A Database 15
• Pictorial representation of a program
• Can be created with pencil and paper,
Microsoft Word, PowerPoint, Visio (a copy
of this is in the back of the Farrell book), etc.
• For this class, all flowcharts must be done in
Visio
UC : Design A Database 16
UC : Design A Database 17
UC : Design A Database 18
1) Sequence
2) Selection
3) Repetition
UC : Design A Database 19
1) Sequence
UC : Design A Database 20
2) Selection
UC : Design A Database 21
1) Sequence:
These is the types of control structure in
which program flows from top to bottom
sequentially without changing the flow of
program execution.
None of the program statements are
skipped or repeated. Every statements are
executed one after another.
UC : Design A Database 22
#include
int main ( )
{
int a=5,b=3,c;
c=a+b;
printf(“Value is
%d”, c);
return 0;
}
UC : Design A Database 23
Here, in this above
program example, every
statements are executed
line by line from top left
to right bottom.
None of the statements
are skipped and repeated.
3) Repetition
UC : Design A Database 24
 A program is required to read three numbers, add
them together and print their total.
 Pseudo code
Add_three_numbers
Read number1, number2, number3
Total = number1 + number2 + number3
Print total
END
UC : Design A Database 25
Input Processing Output
Number1
Number2
Number3
Read three numbers
Add number together
Print total number
total
UC : Design A Database 26
Defining diagram
#include
int main ( )
{
int a=5,b=3,c;
c=a+b;
printf(“Value is %d”, c);
return 0;
}
UC : Design A Database 27
UC : Design A Database 28
 The following flow
chart example
presents a very simple
flow chart for the
process of getting out
of bed in the morning.
UC : Design A Database 29
UC : Design A Database 30
 A program is required to prompt the terminal
operator for the maximum and minimum
temperature readings on a particular day,
accept those readings as integers, and calculate
and display to the screen the average
temperature, calculated by (maximum
temperature + minimum temperature)/2.
Input Processing Output
Max_temp
Min_temp
Prompt for temperatures
Get temperatures
Calculate average temperature
Display average temperature
total
UC : Design A Database 31
Defining diagram
Pseudo code
Find average_temperature
Prompt operator for max_temp, min_temp
Get max_temp, min_temp
Avg_temp= (max_Temp + min_temp)/2
Output avg_temp to the screen
END
UC : Design A Database 32
Flow Chart
UC : Design A Database 33
 https://www.filehorse.com/download-visual-
paradigm-community-edition/
UC : Design A Database 34

More Related Content

What's hot

Human Computer Interaction Notes 176.pdf
Human Computer Interaction Notes 176.pdfHuman Computer Interaction Notes 176.pdf
Human Computer Interaction Notes 176.pdfvijaykumarK44
 
IGCSE ICT 0417 P3 Website Authoring using Front Page
IGCSE ICT 0417 P3 Website Authoring using Front PageIGCSE ICT 0417 P3 Website Authoring using Front Page
IGCSE ICT 0417 P3 Website Authoring using Front PageShamir George
 
Internet and intranet
Internet and intranetInternet and intranet
Internet and intranetRohit Kumar
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeBala Ganesh
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internetASIT Education
 
binary number system
 binary number system binary number system
binary number systemvishal gupta
 
Introduction to Internet
Introduction to InternetIntroduction to Internet
Introduction to Internetsameera.moparty
 
Microsoft word
Microsoft wordMicrosoft word
Microsoft wordgherryta
 
Operate personal computer
Operate personal computer Operate personal computer
Operate personal computer Abenezer Abiti
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
Advance database system (part 3)
Advance database system (part 3)Advance database system (part 3)
Advance database system (part 3)Abdullah Khosa
 
The impact of information technology on society
The impact of information technology on societyThe impact of information technology on society
The impact of information technology on societySandra Bloomfield
 
HCI - Chapter 4
HCI - Chapter 4HCI - Chapter 4
HCI - Chapter 4Alan Dix
 
Digital rights & responsibilities
Digital rights & responsibilitiesDigital rights & responsibilities
Digital rights & responsibilitiesJASTAL01
 
Mouse presentation
Mouse presentationMouse presentation
Mouse presentationAbdur Rouf
 
Ethics for IT Professionals and IT Users
Ethics for IT Professionals and IT UsersEthics for IT Professionals and IT Users
Ethics for IT Professionals and IT Usersalmario1988
 

What's hot (20)

Human Computer Interaction Notes 176.pdf
Human Computer Interaction Notes 176.pdfHuman Computer Interaction Notes 176.pdf
Human Computer Interaction Notes 176.pdf
 
IGCSE ICT 0417 P3 Website Authoring using Front Page
IGCSE ICT 0417 P3 Website Authoring using Front PageIGCSE ICT 0417 P3 Website Authoring using Front Page
IGCSE ICT 0417 P3 Website Authoring using Front Page
 
Internet and intranet
Internet and intranetInternet and intranet
Internet and intranet
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
 
Computer Mouse
 Computer Mouse Computer Mouse
Computer Mouse
 
binary number system
 binary number system binary number system
binary number system
 
Introduction to Internet
Introduction to InternetIntroduction to Internet
Introduction to Internet
 
Microsoft word
Microsoft wordMicrosoft word
Microsoft word
 
Operate personal computer
Operate personal computer Operate personal computer
Operate personal computer
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Advance database system (part 3)
Advance database system (part 3)Advance database system (part 3)
Advance database system (part 3)
 
Basic Computer Skills
Basic Computer SkillsBasic Computer Skills
Basic Computer Skills
 
The impact of information technology on society
The impact of information technology on societyThe impact of information technology on society
The impact of information technology on society
 
HCI - Chapter 4
HCI - Chapter 4HCI - Chapter 4
HCI - Chapter 4
 
Digital rights & responsibilities
Digital rights & responsibilitiesDigital rights & responsibilities
Digital rights & responsibilities
 
Mouse presentation
Mouse presentationMouse presentation
Mouse presentation
 
Ethics for IT Professionals and IT Users
Ethics for IT Professionals and IT UsersEthics for IT Professionals and IT Users
Ethics for IT Professionals and IT Users
 
Mail filtering agents
Mail filtering agentsMail filtering agents
Mail filtering agents
 

Similar to ICT DBA3 03 0710 Design Program Logic.pptx

Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptcosc242101003
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptxshoaibkhan716300
 
Software Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer ScienceSoftware Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer ScienceArti Parab Academics
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chaptersIbrahim Elewah
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfMMRF2
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGJEENA SARA VIJU
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigmskasenerd
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfSusieMaestre1
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmDHANIK VIKRANT
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptReshuReshma8
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowchartsmoazwinner
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docxrosemarybdodson23141
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5Alok Jain
 

Similar to ICT DBA3 03 0710 Design Program Logic.pptx (20)

lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
 
CHAPTER 1
CHAPTER 1CHAPTER 1
CHAPTER 1
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptx
 
Software Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer ScienceSoftware Engineering Fundamentals in Computer Science
Software Engineering Fundamentals in Computer Science
 
Computer programming all chapters
Computer programming all chaptersComputer programming all chapters
Computer programming all chapters
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
program development and paradigms
program development and paradigmsprogram development and paradigms
program development and paradigms
 
Procedural programming
Procedural programmingProcedural programming
Procedural programming
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 
Programing Fundamental
Programing FundamentalPrograming Fundamental
Programing Fundamental
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
Stnotes doc 5
Stnotes doc 5Stnotes doc 5
Stnotes doc 5
 

More from Infotech27

normalization.ppt
normalization.pptnormalization.ppt
normalization.pptInfotech27
 
ICT DBA3 03 0710 Designing a Database.pptx
ICT DBA3 03 0710 Designing a Database.pptxICT DBA3 03 0710 Designing a Database.pptx
ICT DBA3 03 0710 Designing a Database.pptxInfotech27
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfInfotech27
 
ICT DBA3 03 0710 Design Program Logic.pptx
ICT DBA3 03 0710 Design Program Logic.pptxICT DBA3 03 0710 Design Program Logic.pptx
ICT DBA3 03 0710 Design Program Logic.pptxInfotech27
 
C++_programs.ppt
C++_programs.pptC++_programs.ppt
C++_programs.pptInfotech27
 
ICT-DBA-level4
ICT-DBA-level4ICT-DBA-level4
ICT-DBA-level4Infotech27
 

More from Infotech27 (7)

normalization.ppt
normalization.pptnormalization.ppt
normalization.ppt
 
ICT DBA3 03 0710 Designing a Database.pptx
ICT DBA3 03 0710 Designing a Database.pptxICT DBA3 03 0710 Designing a Database.pptx
ICT DBA3 03 0710 Designing a Database.pptx
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
 
ICT DBA3 03 0710 Design Program Logic.pptx
ICT DBA3 03 0710 Design Program Logic.pptxICT DBA3 03 0710 Design Program Logic.pptx
ICT DBA3 03 0710 Design Program Logic.pptx
 
C++_programs.ppt
C++_programs.pptC++_programs.ppt
C++_programs.ppt
 
c++basics.ppt
c++basics.pptc++basics.ppt
c++basics.ppt
 
ICT-DBA-level4
ICT-DBA-level4ICT-DBA-level4
ICT-DBA-level4
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Recently uploaded (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

ICT DBA3 03 0710 Design Program Logic.pptx

  • 1. TTLM Code: ICT DBA3 05 0710 UC : Design A Database 1
  • 2. 1. Attendance (10%) 2. Quizzes:- (10%) 3. Theory exam (30%) 5/5/2015 4. Lab Assessment (50%) 8/5/2015
  • 3. LO1: Select the Program Design Approach LO2: Document the program logic or design LO3: Validate the Design UC : Design A Database 3
  • 4. 1.1 Obtaining Design Documentation and Requirement for the Program Clarification 1.1.1Pseudo code  Pseudocode is an informal high-level description of the operating principle of a computer program or other algorithm. UC : Design A Database 4
  • 5.  Pseudocode English-like representation of a program It could be viewed as the outline of a program It can’t be compiled or executed. The focus is on solving the problem, not worrying about the specifics of a programming Language. UC : Design A Database 5
  • 6.  It uses the structural conventions of a programming language, but is intended for human reading rather than machine reading.  Pseudocode typically omits details that are not essential for human understanding of the algorithm, such as variable declarations, system-specific code and some subroutines. UC : Design A Database 6
  • 7.  The programming language is augmented with natural language description details, where convenient, or with compact mathematical notation.  The purpose of using pseudocode is that it is easier for people to understand than conventional programming language code, and that it is an efficient and environment-independent description of the key principles of an algorithm. UC : Design A Database 7
  • 8.  It is commonly used in textbooks and scientific publications that are documenting various algorithms, and also in planning of computer program development, for sketching out the structure of the program before the actual coding takes place UC : Design A Database 8
  • 9.  When we write programs, we assume that the computer executes the program starting at the beginning and working its way to the end. We call this sequence  SEQUENCE is a linear progression where one task is performed sequentially after another. In pseudo code it look like this UC : Design A Database 9
  • 10. Statement 1; Statement 2; Statement 3; Statement 4; Statement 5 ; Example, for making a cup of tea: Organize everything together; Plug in kettle; Put teabag in cup; Put water into kettle; Wait for bottle to boil; Add water to cup; Remove teabag with spoon/fork/; Add milk and /or sugar; Serve; UC : Design A Database 10
  • 11.  What if we need to tell the computer to keep doing something until some condition occurs? Let’s say we wish to indicate that you need to keep filling the kettle with water until it is full. We call this a loop.  WHILE is a loop (repetition) with a simple conditional test at its beginning Or, in general UC : Design A Database 11
  • 12. While (<condition>) Do <Statements>; Endwhile; As we could state this as: While (Kettle is not full) Do keep filling Kettle; EndWhile; Example, above: Organize everything together; Plug in kettle; Put teabag in cup; While (Kettle is not full) Do keep filling Kettle; EndWhile; Wait for bottle to boil; Add water to cup; Remove teabag with spoon/fork/; Add milk and /or sugar; Serve; UC : Design A Database 12
  • 13.  What if we want to make a choice, for example, do we want add sugar or not to the tea? We call this selection.  IF-THEN-ELSE is a decision (selection) in which a choice is made between two alternative courses of action. UC : Design A Database 13
  • 14. UC : Design A Database 14
  • 15.  A flow chart is a graphical or symbolic representation of a process.  Each step in the process is represented by a different symbol and contains a short description of the process step.  The flow chart symbols are linked together with arrows showing the process flow direction. UC : Design A Database 15
  • 16. • Pictorial representation of a program • Can be created with pencil and paper, Microsoft Word, PowerPoint, Visio (a copy of this is in the back of the Farrell book), etc. • For this class, all flowcharts must be done in Visio UC : Design A Database 16
  • 17. UC : Design A Database 17
  • 18. UC : Design A Database 18
  • 19. 1) Sequence 2) Selection 3) Repetition UC : Design A Database 19
  • 20. 1) Sequence UC : Design A Database 20
  • 21. 2) Selection UC : Design A Database 21
  • 22. 1) Sequence: These is the types of control structure in which program flows from top to bottom sequentially without changing the flow of program execution. None of the program statements are skipped or repeated. Every statements are executed one after another. UC : Design A Database 22
  • 23. #include int main ( ) { int a=5,b=3,c; c=a+b; printf(“Value is %d”, c); return 0; } UC : Design A Database 23 Here, in this above program example, every statements are executed line by line from top left to right bottom. None of the statements are skipped and repeated.
  • 24. 3) Repetition UC : Design A Database 24
  • 25.  A program is required to read three numbers, add them together and print their total.  Pseudo code Add_three_numbers Read number1, number2, number3 Total = number1 + number2 + number3 Print total END UC : Design A Database 25
  • 26. Input Processing Output Number1 Number2 Number3 Read three numbers Add number together Print total number total UC : Design A Database 26 Defining diagram
  • 27. #include int main ( ) { int a=5,b=3,c; c=a+b; printf(“Value is %d”, c); return 0; } UC : Design A Database 27
  • 28. UC : Design A Database 28
  • 29.  The following flow chart example presents a very simple flow chart for the process of getting out of bed in the morning. UC : Design A Database 29
  • 30. UC : Design A Database 30  A program is required to prompt the terminal operator for the maximum and minimum temperature readings on a particular day, accept those readings as integers, and calculate and display to the screen the average temperature, calculated by (maximum temperature + minimum temperature)/2.
  • 31. Input Processing Output Max_temp Min_temp Prompt for temperatures Get temperatures Calculate average temperature Display average temperature total UC : Design A Database 31 Defining diagram
  • 32. Pseudo code Find average_temperature Prompt operator for max_temp, min_temp Get max_temp, min_temp Avg_temp= (max_Temp + min_temp)/2 Output avg_temp to the screen END UC : Design A Database 32
  • 33. Flow Chart UC : Design A Database 33