SlideShare a Scribd company logo
1 of 21
Introduction to embedded
systems and realtime
systems
B. Ramamurthy
CSE321
This course is partially supported National Science
Foundation NSF DUE Grant: 0737243
3/8/2024 1
Introduction to Realtime
Systems & Embedded Systems
B. Ramamurthy
CSE321
This course is partially supported National Science
Foundation NSF DUE Grant: 0737243
3/8/2024 2
The course will enable you to:
 Understand and design embedded
systems and real-time systems
 For real-time systems:
◦ Identify the unique characteristics of real-time
systems
◦ Explain the general structure of a real-time
system
◦ Define the unique design problems and
challenges of real-time systems
◦ Apply real-time systems design techniques to
various software programs.
3/8/2024 3
Course overview
 For embedded systems it will enable
you to :
◦ Understand the basics of an embedded
system
◦ Program an embedded system
◦ Design, implement and test an embedded
system.
◦ Ex: realtime + embedded : games on a
Gameboy or arcade games
◦ Ex: realtime: Spore on a laptop
3/8/2024 4
Example real-time and embedded
systems
Domain Application
Avionics Navigation; displays
Multimedia Games; simulators
Medicine Robot surgery; remote surgery;
medical imaging
Industrial systems Robot assembly lines;
automated inspection
Civilian Elevator control
Automotive system; Global
positioning system (GPS)
3/8/2024 5
Lets discuss some realtime system
(RTS) characteristics
3/8/2024 6
Realtime Characteristics
 RTS have to respond to events in a
certain pre-detemined amount of time.
◦ The time constraints have to be considered
during planning, design, implementation and
testing phases.
 Internal failures due to software and
hardware fault have be handled
satisfactorily.
◦ You cannot simply pop-up a dialog error box
that says “send report” or “don’t send report”.
◦ Also external failures due to outside sources
need to be handled.
3/8/2024 7
Realtime Characteristics
(contd.)
 Typical interaction in an RTS is
asynchronous. Thus an RTS should
have features to handle asynchronous
events such as interrupt handlers and
dispatcher and associated resources.
 Potential for race condition: when
state of resources are timing
dependent race condition may occur.
 Periodic tasks are common.
3/8/2024 8
Embedded System
 Is a special purpose system designed
to perform a few dedicated functions.
 Small foot prints (in memory)
 Highly optimized code
 Cell phones, mp3 players are
examples.
 The components in an mp3 player are
highly optimized for storage
operations. (For example, no need to
have a floating point operation on an
3/8/2024 9
Real-time system concepts
 A system is a mapping of a set of input into a set of
outputs.
 A digital camera is an example of a realtime
system: set of input including sensors and imaging
devices producing control signals and display
information.
 Realtime system can be viewed as a sequence of
job to be scheduled.
 Time between presentation of a set of inputs to a
system and the realization of the required behavior,
including availability of all associated outputs, is
called the response time of the system.
3/8/2024 10
Real-time system concepts
(contd.)
 Real-time system is the one in which logical
correctness is based on both the correctness of the
output as well as their timeliness.
 A soft real-time system is one in which performance
is degraded by failure to meet response-time
constraints.
 A hard real-time system is one in which failure to
meet a single deadline may lead to complete and
catastrophic failure.
 More examples:
◦ Automatic teller: soft
◦ Robot vacuum cleaner: firm
◦ Missile delivery system: hard
3/8/2024 11
Regular Computer System
3/8/2024 12
“From Minimalist”:
STIR-FRIED CHICKEN WITH CREAMED CORN
Time: 20 minutes
1 pound boneless chicken (breasts or thighs), in 1/2-inch chunks
2 tablespoons soy sauce
1 teaspoon sesame oil
1 tablespoon sherry, rice wine, sake or white wine
2 tablespoons peanut oil or another neutral oil, like corn or grape
seed
1 tablespoon minced garlic
1 tablespoon minced ginger
1 small chili, seeds and stems removed, minced (or dried red chili
flakes to taste)
1 15-ounce can creamed corn
1 cup corn kernels (fresh, frozen or canned)
Chopped cilantro leaves for garnish.
1. In a small bowl, mix the chicken with the soy sauce, the sesame oil
and the wine. Put the peanut oil into a deep skillet or wok, preferably
nonstick, and turn heat to high. Drain chicken. When oil is hot, add
chicken to skillet, and cook, undisturbed, until bottom browns, about 2
minutes. Stir once or twice, and cook 2 minutes longer. Turn the heat
down to medium-low.
2. Add the garlic, the ginger and the chili to the skillet, and stir; 15
seconds later, add the creamed corn and the corn kernels. Cook,
stirring occasionally, until heated through, 3 or 4 minutes. Garnish,
and serve over white rice.
Data
Algorithm
Program
Embedded Systems
3/8/2024 13
The Number Game (1)
3/8/2024 14
1 3 5 7
9 11 13 15
17 19 21 23
25 27 29 31
The Number Game (2)
3/8/2024 15
2 3 6 7
10 11 14 15
18 19 22 23
26 27 30 31
The Number Game (4)
3/8/2024 16
4 5 6 7
12 13 14 15
20 21 22 23
28 29 30 31
The Number Game (8)
3/8/2024 17
8 9 10 11
12 13 14 15
24 25 26 27
28 29 30 31
The Number Game (16)
3/8/2024 18
16 17 18 19
20 21 22 23
24 25 26 27
28 29 30 31
Analysis
 What is theory /concept behind this game?
 How did I arrive at the number you guessed?
 How can I automate this process?
 What is the data and what is the algorithm?
 How can we convey these to a computing
machine?
 While a computer talks binary, we humans write
programs in languages such as Java, C#, C++,
Basic etc.
Binary numbers (1’s and 0’s) is the number system
used by the computer systems.
We humans use decimal number system that has 10
distinct symbols (0,1,2,3,4,5,6,7,8,9)
Your task: Write a C program to computerize this
3/8/2024 19
3/8/2024 20
1 3 5 7
9 11 13 15
17 19 21 23
25 27 29 31
2 3 6 7
10 11 14 15
18 19 22 23
26 27 30 31
16 17 18 19
20 21 22 23
24 25 26 27
28 29 30 31
4 5 6 7
12 13 14 15
20 21 22 23
28 29 30 31
8 9 10 11
12 13 14 15
24 25 26 27
28 29 30 31
Summary
 We examined the course objectives
for embedded and realtime systems
 We looked at sample systems
 Homework:
◦ Write a program that automates the
number game
◦ Logo for NEXOS
3/8/2024 21

More Related Content

Similar to embedded system hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh .ppt

Similar to embedded system hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh .ppt (20)

MouthMouse
MouthMouseMouthMouse
MouthMouse
 
CAT eBook
CAT eBookCAT eBook
CAT eBook
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Understanding Computers - Today and Tomorrow
Understanding Computers - Today and TomorrowUnderstanding Computers - Today and Tomorrow
Understanding Computers - Today and Tomorrow
 
Tic tac toe game code
Tic tac toe game codeTic tac toe game code
Tic tac toe game code
 
Tic tac toe
Tic tac toeTic tac toe
Tic tac toe
 
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
PROJECT REPORT ON COMPUTER SHOP SYSTEM IN C++
 
Nt1320 Unit 6
Nt1320 Unit 6Nt1320 Unit 6
Nt1320 Unit 6
 
Uses Of Calculus is Computer Science
Uses Of Calculus is Computer ScienceUses Of Calculus is Computer Science
Uses Of Calculus is Computer Science
 
dhamo
dhamodhamo
dhamo
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
Embeddedsystems 091130091010-phpapp02
Embeddedsystems 091130091010-phpapp02Embeddedsystems 091130091010-phpapp02
Embeddedsystems 091130091010-phpapp02
 
Number systems.17
Number systems.17Number systems.17
Number systems.17
 
Tictac
TictacTictac
Tictac
 
System Resources
System ResourcesSystem Resources
System Resources
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
chapter 2.pptx
chapter 2.pptxchapter 2.pptx
chapter 2.pptx
 
Iot based garbage monitoring system
Iot based garbage monitoring systemIot based garbage monitoring system
Iot based garbage monitoring system
 
Ntroduction to computer architecture and organization
Ntroduction to computer architecture and organizationNtroduction to computer architecture and organization
Ntroduction to computer architecture and organization
 
COMPUTER SKILLS AND COMPUTER APPLICATIONS.pptx
COMPUTER SKILLS AND COMPUTER APPLICATIONS.pptxCOMPUTER SKILLS AND COMPUTER APPLICATIONS.pptx
COMPUTER SKILLS AND COMPUTER APPLICATIONS.pptx
 

More from Tusharchauhan939328

More from Tusharchauhan939328 (9)

solar inverter PPT (2).pptx
solar inverter PPT (2).pptxsolar inverter PPT (2).pptx
solar inverter PPT (2).pptx
 
Of final (2).pptx
Of final (2).pptxOf final (2).pptx
Of final (2).pptx
 
Webster-1006-LithiumBatteries.ppt
Webster-1006-LithiumBatteries.pptWebster-1006-LithiumBatteries.ppt
Webster-1006-LithiumBatteries.ppt
 
Reinforcement-Learning.ppt
Reinforcement-Learning.pptReinforcement-Learning.ppt
Reinforcement-Learning.ppt
 
54436828-Plastic-Electronics.ppt
54436828-Plastic-Electronics.ppt54436828-Plastic-Electronics.ppt
54436828-Plastic-Electronics.ppt
 
Motorized Four Way Hacksaw Mechanism PPT.pptx
Motorized Four Way Hacksaw Mechanism PPT.pptxMotorized Four Way Hacksaw Mechanism PPT.pptx
Motorized Four Way Hacksaw Mechanism PPT.pptx
 
PPT-1 INTRODUCTION SEMINAR (1).pptx
PPT-1 INTRODUCTION SEMINAR (1).pptxPPT-1 INTRODUCTION SEMINAR (1).pptx
PPT-1 INTRODUCTION SEMINAR (1).pptx
 
ACHAL NEET PPT OF PCB-1.pptx
ACHAL NEET PPT OF PCB-1.pptxACHAL NEET PPT OF PCB-1.pptx
ACHAL NEET PPT OF PCB-1.pptx
 
PCB desine final.pdf
PCB desine final.pdfPCB desine final.pdf
PCB desine final.pdf
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

embedded system hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh .ppt

  • 1. Introduction to embedded systems and realtime systems B. Ramamurthy CSE321 This course is partially supported National Science Foundation NSF DUE Grant: 0737243 3/8/2024 1
  • 2. Introduction to Realtime Systems & Embedded Systems B. Ramamurthy CSE321 This course is partially supported National Science Foundation NSF DUE Grant: 0737243 3/8/2024 2
  • 3. The course will enable you to:  Understand and design embedded systems and real-time systems  For real-time systems: ◦ Identify the unique characteristics of real-time systems ◦ Explain the general structure of a real-time system ◦ Define the unique design problems and challenges of real-time systems ◦ Apply real-time systems design techniques to various software programs. 3/8/2024 3
  • 4. Course overview  For embedded systems it will enable you to : ◦ Understand the basics of an embedded system ◦ Program an embedded system ◦ Design, implement and test an embedded system. ◦ Ex: realtime + embedded : games on a Gameboy or arcade games ◦ Ex: realtime: Spore on a laptop 3/8/2024 4
  • 5. Example real-time and embedded systems Domain Application Avionics Navigation; displays Multimedia Games; simulators Medicine Robot surgery; remote surgery; medical imaging Industrial systems Robot assembly lines; automated inspection Civilian Elevator control Automotive system; Global positioning system (GPS) 3/8/2024 5
  • 6. Lets discuss some realtime system (RTS) characteristics 3/8/2024 6
  • 7. Realtime Characteristics  RTS have to respond to events in a certain pre-detemined amount of time. ◦ The time constraints have to be considered during planning, design, implementation and testing phases.  Internal failures due to software and hardware fault have be handled satisfactorily. ◦ You cannot simply pop-up a dialog error box that says “send report” or “don’t send report”. ◦ Also external failures due to outside sources need to be handled. 3/8/2024 7
  • 8. Realtime Characteristics (contd.)  Typical interaction in an RTS is asynchronous. Thus an RTS should have features to handle asynchronous events such as interrupt handlers and dispatcher and associated resources.  Potential for race condition: when state of resources are timing dependent race condition may occur.  Periodic tasks are common. 3/8/2024 8
  • 9. Embedded System  Is a special purpose system designed to perform a few dedicated functions.  Small foot prints (in memory)  Highly optimized code  Cell phones, mp3 players are examples.  The components in an mp3 player are highly optimized for storage operations. (For example, no need to have a floating point operation on an 3/8/2024 9
  • 10. Real-time system concepts  A system is a mapping of a set of input into a set of outputs.  A digital camera is an example of a realtime system: set of input including sensors and imaging devices producing control signals and display information.  Realtime system can be viewed as a sequence of job to be scheduled.  Time between presentation of a set of inputs to a system and the realization of the required behavior, including availability of all associated outputs, is called the response time of the system. 3/8/2024 10
  • 11. Real-time system concepts (contd.)  Real-time system is the one in which logical correctness is based on both the correctness of the output as well as their timeliness.  A soft real-time system is one in which performance is degraded by failure to meet response-time constraints.  A hard real-time system is one in which failure to meet a single deadline may lead to complete and catastrophic failure.  More examples: ◦ Automatic teller: soft ◦ Robot vacuum cleaner: firm ◦ Missile delivery system: hard 3/8/2024 11
  • 12. Regular Computer System 3/8/2024 12 “From Minimalist”: STIR-FRIED CHICKEN WITH CREAMED CORN Time: 20 minutes 1 pound boneless chicken (breasts or thighs), in 1/2-inch chunks 2 tablespoons soy sauce 1 teaspoon sesame oil 1 tablespoon sherry, rice wine, sake or white wine 2 tablespoons peanut oil or another neutral oil, like corn or grape seed 1 tablespoon minced garlic 1 tablespoon minced ginger 1 small chili, seeds and stems removed, minced (or dried red chili flakes to taste) 1 15-ounce can creamed corn 1 cup corn kernels (fresh, frozen or canned) Chopped cilantro leaves for garnish. 1. In a small bowl, mix the chicken with the soy sauce, the sesame oil and the wine. Put the peanut oil into a deep skillet or wok, preferably nonstick, and turn heat to high. Drain chicken. When oil is hot, add chicken to skillet, and cook, undisturbed, until bottom browns, about 2 minutes. Stir once or twice, and cook 2 minutes longer. Turn the heat down to medium-low. 2. Add the garlic, the ginger and the chili to the skillet, and stir; 15 seconds later, add the creamed corn and the corn kernels. Cook, stirring occasionally, until heated through, 3 or 4 minutes. Garnish, and serve over white rice. Data Algorithm Program
  • 14. The Number Game (1) 3/8/2024 14 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31
  • 15. The Number Game (2) 3/8/2024 15 2 3 6 7 10 11 14 15 18 19 22 23 26 27 30 31
  • 16. The Number Game (4) 3/8/2024 16 4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31
  • 17. The Number Game (8) 3/8/2024 17 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31
  • 18. The Number Game (16) 3/8/2024 18 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  • 19. Analysis  What is theory /concept behind this game?  How did I arrive at the number you guessed?  How can I automate this process?  What is the data and what is the algorithm?  How can we convey these to a computing machine?  While a computer talks binary, we humans write programs in languages such as Java, C#, C++, Basic etc. Binary numbers (1’s and 0’s) is the number system used by the computer systems. We humans use decimal number system that has 10 distinct symbols (0,1,2,3,4,5,6,7,8,9) Your task: Write a C program to computerize this 3/8/2024 19
  • 20. 3/8/2024 20 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 2 3 6 7 10 11 14 15 18 19 22 23 26 27 30 31 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31
  • 21. Summary  We examined the course objectives for embedded and realtime systems  We looked at sample systems  Homework: ◦ Write a program that automates the number game ◦ Logo for NEXOS 3/8/2024 21