SlideShare a Scribd company logo
Microsoft Visual Basic 2010



CHAPTER THREE

 Program Design and Coding
3      Objectives

  ►Change the BackColor property of an object
  ►Understand Visual Basic 2010 code statement formats
  ►Use IntelliSense to enter Visual Basic 2010 code
   statements
  ►Correct errors in Visual Basic 2010 code
  ►Write code for an object
  ►Print code
  ►Prepare an Event Planning Document



Chapter 3: Program Design and Coding                     2
3      BackColor Property

  ►Click the Windows Form object to select it
  ►If necessary, scroll in the Properties window until the
   BackColor property is displayed, and then click the
   right column of the BackColor property
  ►Click the BackColor arrow. Then, if necessary, click
   the Web tab to display the Web tabbed page
  ►Scroll to display the color you wish to apply
  ►Click the color you wish to apply on the color list



Chapter 3: Program Design and Coding                         3
3      BackColor Property




Chapter 3: Program Design and Coding   4
3      Sizing an Image

  ►With the PictureBox object containing the
   StandardRoom image selected, scroll in the
   picStandardRoom Properties window until you see the
   SizeMode property. Click the SizeMode property
   name in the left column and then click the SizeMode
   arrow in the right column of the SizeMode property
  ►Click StretchImage in the SizeMode list




Chapter 3: Program Design and Coding                     5
3      Sizing an Image




Chapter 3: Program Design and Coding   6
3      Running a Program

  ►Point to the Start Debugging button on the Standard
   toolbar
  ►Click the Start Debugging button on the Standard
   toolbar




Chapter 3: Program Design and Coding                     7
3      Entering Visual Basic Code for Event Handling

  ►With Visual Studio 2010 and the Hotel Room Selection
   program open and the frmHotelRoomSelection.vb
   [Design] tabbed window visible, point to the Standard
   Room Button object in the Windows Form object
  ►Double-click the Standard Room Button object




Chapter 3: Program Design and Coding                       8
3      Entering Visual Basic Code for Event Handling




Chapter 3: Program Design and Coding                     9
3      Visual Basic 2010 Coding Statements

  ►The Visual Basic syntax specifies how each statement
   must be written
  ►When the user clicks the Standard Room button while
   the program is running, the standard room image
   should be displayed in the picStandardRoom
   PictureBox object




Chapter 3: Program Design and Coding                      10
3      General Format of a Visual Basic Statement




Chapter 3: Program Design and Coding                  11
3      IntelliSense

  ►IntelliSense displays all allowable entries you can
   make in a Visual Basic statement each time a dot
   (period), equal sign, or other special character
   required for the statement is typed




Chapter 3: Program Design and Coding                     12
3      Entering a Visual Basic Statement
  ► With the code window open and the insertion point positioned
    as shown in Figure 3-25 on page 131, type pic followed by a
    period
  ► To identify the correct entry, type the first letters of the entry
    until the entry is selected. In this case, type s on your keyboard
  ► When IntelliSense highlights the correct object name, press the
    key on the keyboard corresponding to the entry that is to
    follow the object name. In this case, press the PERIOD key
  ► As with the object name in the second step, the next step is to
    enter one or more characters until IntelliSense highlights the
    desired property in the list. Type the letter, v on your keyboard




Chapter 3: Program Design and Coding                                     13
3      Entering a Visual Basic Statement

  ►Press the key for the character that is to follow the
   property name. In this case, press the SPACEBAR on
   the keyboard
  ►Press the EQUAL SIGN key on the keyboard and then
   press the SPACEBAR. On the IntelliSense list, click the
   Common tab to display the most common results
  ►Type t on the keyboard
  ►Press the key for the character that is to follow the
   True entry. In this case, press the ENTER key


Chapter 3: Program Design and Coding                         14
3      Comments in Program Statements

  ►To insert a blank line following the event code
   generated by Visual Studio that begins with the word,
   Private, click anywhere in that line and then press the
   END key on your keyboard
  ►Press the ENTER key
  ►Type the first line of the comments, beginning with an
   apostrophe, as shown in Figure 3-46 on page 143, and
   then press the ENTER key




Chapter 3: Program Design and Coding                         15
3      Comments in Program Statements




Chapter 3: Program Design and Coding      16
3      Same Line Comments




Chapter 3: Program Design and Coding   17
3      Introductory Comments

  ►Click to the left of the word, Public, on line 1 in the
   program to place the insertion point on that line
  ►Press the ENTER key one time, and then press the UP
   ARROW key one time
  ►Type an apostrophe, a space, the text, Program
   Name: and then press the TAB key one time
  ►Type Hotel Room Selection as the name of the
   program. Then, press the ENTER key




Chapter 3: Program Design and Coding                         18
3      Introductory Comments




Chapter 3: Program Design and Coding   19
3      Correcting Errors in Code

  ►Using IntelliSense reduces the likelihood of coding
   errors considerably, although it is still possible to code
   an error
    • One possible error may be forgetting an
      apostrophe in a comment statement
  ►A build errors message means the Visual Basic
   compiler detected a coding error in the program




Chapter 3: Program Design and Coding                            20
3      Correcting Errors in Code




Chapter 3: Program Design and Coding   21
3      Correcting Errors in Code

  ►Click the No button in the Microsoft Visual Studio
   dialog box that informs you of a build error
  ►Double-click anywhere on the error line
  ►Click in the leftmost column on line 7 to place the
   insertion point at that location
  ►Type an apostrophe
  ►Click anywhere in the code editing window




Chapter 3: Program Design and Coding                     22
3      Correcting Errors in Code




Chapter 3: Program Design and Coding   23
3      Additional Click Events

  ►On the frmHotelRoomSelection.vb [Design] tabbed
   page, double-click the Exit Window Button object




Chapter 3: Program Design and Coding                  24
3      Close Procedure

  ►With the insertion point positioned as shown in Figure
   3-64 on page 154, type clo to highlight Close in the
   IntelliSense list
  ►Press the ENTER key




Chapter 3: Program Design and Coding                        25
3      Printing Code
  ►Click File on the menu bar to display the File menu
  ►Click Print on the File menu to display the Print dialog
   box
  ►Ensure that a check mark appears in the Include line
   numbers check box if you want line numbers on your
   printout. Most developers prefer line numbers on
   printouts
  ►Make any other selections you find necessary in the
   Print dialog box
  ►Click the OK button in the Print dialog box to print the
   code

Chapter 3: Program Design and Coding                          26
3      Event Planning Document




Chapter 3: Program Design and Coding   27
3      Phase 4 – Code the Program

  ►After the events and tasks within the vents have been
   identified, the developer is ready to code the program
    • Entering Visual Basic statements to accomplish the
      tasks specified on the event planning document
  ►Developer enters the code and implements the logic




Chapter 3: Program Design and Coding                        28
Microsoft Visual Basic 2010


CHAPTER THREE
   COMPLETE
 Program Design and Coding

More Related Content

What's hot (20)

PPT
Vb introduction.
sagaroceanic11
 
PPTX
Chapter 3 — Program Design and Coding
francopw
 
PPT
Vb basics
sagaroceanic11
 
PDF
Visual Basic IDE Introduction
Ahllen Javier
 
PPTX
Visual Basic Controls ppt
Ranjuma Shubhangi
 
PPTX
Visual Programming
Bagzzz
 
PDF
Visual basic 6.0
sanket1996
 
PPTX
visual basic programming
sowndaryadharmaraj
 
PPT
Introduction to visual basic programming
Roger Argarin
 
PPT
Visual basic
umesh patil
 
PPT
Visual Basic Programming
Osama Yaseen
 
DOCX
Visual basic
Dharmik
 
PPT
Chapter03 Ppt
Osama Yaseen
 
PPT
visual basic v6 introduction
bloodyedge03
 
PPT
Chapter 01: Intro to VB2010 Programming
patf719
 
PPT
visual basic for the beginner
Salim M
 
PPTX
Vp lecture1 ararat
Saman M. Almufti
 
PDF
Visual basic 6 black book
Ajay Goyal
 
PPT
Visual programming
Dr. C.V. Suresh Babu
 
PPT
Best practices for upgrading vb 6.0 projects to vb.net
ajmal_fuuast
 
Vb introduction.
sagaroceanic11
 
Chapter 3 — Program Design and Coding
francopw
 
Vb basics
sagaroceanic11
 
Visual Basic IDE Introduction
Ahllen Javier
 
Visual Basic Controls ppt
Ranjuma Shubhangi
 
Visual Programming
Bagzzz
 
Visual basic 6.0
sanket1996
 
visual basic programming
sowndaryadharmaraj
 
Introduction to visual basic programming
Roger Argarin
 
Visual basic
umesh patil
 
Visual Basic Programming
Osama Yaseen
 
Visual basic
Dharmik
 
Chapter03 Ppt
Osama Yaseen
 
visual basic v6 introduction
bloodyedge03
 
Chapter 01: Intro to VB2010 Programming
patf719
 
visual basic for the beginner
Salim M
 
Vp lecture1 ararat
Saman M. Almufti
 
Visual basic 6 black book
Ajay Goyal
 
Visual programming
Dr. C.V. Suresh Babu
 
Best practices for upgrading vb 6.0 projects to vb.net
ajmal_fuuast
 

Viewers also liked (20)

PPT
Visual Basic Calculator
mohamedsaad24
 
PPTX
Chapter 1 — Introduction to Visual Basic 2010 Programming
francopw
 
DOCX
Basic calculator tutorial
Gilkye
 
PPTX
Chapter 4 — Variables and Arithmetic Operations
francopw
 
PPSX
Calculator and how to make it using VB 6.0
surajkumarpadhy
 
PPT
Visual Basic Codes And Screen Designs
prcastano
 
PDF
CMD in 2013
Jurriaan Mous
 
PPTX
12 Reasons Why Hot Entrepreneurs Fail
Dix & Pond Consulting LLC
 
PDF
Ejer calc basico
Daniel Fernando Torres
 
PDF
Prg1 clases01
Jorge Juárez
 
PPT
VB Codes
prcastano
 
PDF
Ejercicios writer1
Derechos Humanos
 
PPTX
Curso vb2010L1
Juan Islas
 
PDF
Examen writer
UTE
 
PDF
Ejercicios de open office writer
joseandresmateos
 
PDF
C# guia total del programador freelibros.org
Koffe Revolution
 
PPTX
Introduction to Processing and creative coding
Jerome Herr
 
PDF
Ejercicios writer
guadalinfobornos
 
PDF
Writing Modular Command-line Apps with App::Cmd
Ricardo Signes
 
PPTX
Visual studio 2010
Fitira
 
Visual Basic Calculator
mohamedsaad24
 
Chapter 1 — Introduction to Visual Basic 2010 Programming
francopw
 
Basic calculator tutorial
Gilkye
 
Chapter 4 — Variables and Arithmetic Operations
francopw
 
Calculator and how to make it using VB 6.0
surajkumarpadhy
 
Visual Basic Codes And Screen Designs
prcastano
 
CMD in 2013
Jurriaan Mous
 
12 Reasons Why Hot Entrepreneurs Fail
Dix & Pond Consulting LLC
 
Ejer calc basico
Daniel Fernando Torres
 
Prg1 clases01
Jorge Juárez
 
VB Codes
prcastano
 
Ejercicios writer1
Derechos Humanos
 
Curso vb2010L1
Juan Islas
 
Examen writer
UTE
 
Ejercicios de open office writer
joseandresmateos
 
C# guia total del programador freelibros.org
Koffe Revolution
 
Introduction to Processing and creative coding
Jerome Herr
 
Ejercicios writer
guadalinfobornos
 
Writing Modular Command-line Apps with App::Cmd
Ricardo Signes
 
Visual studio 2010
Fitira
 
Ad

Similar to Chapter 03 - Program Coding and Design (20)

PPTX
Chapter 03
llmeade
 
PDF
Microsoft Visual Basic Programs To Accompany Programming Logic And Design 3rd...
teyrefededa
 
PPTX
COM 211 PRESENTATION.pptx
AnasYunusa
 
PPTX
Object Oriented Programming I
raven_rainagi
 
DOC
Visual basic
Alisha Korpal
 
PPTX
CHAPTER 3 - LESSON C
MLG College of Learning, Inc
 
PPTX
Chapter 02 - Program and Grapahical User Interface
patf719
 
PPTX
UNIT I.pptx
BhargaviJ8
 
PPT
Ms vb
sirjade4
 
PDF
Visualbasic tutorial
Andi Simanjuntak
 
PPT
visualbasicprograming
dhi her
 
PDF
Software engineering modeling lab lectures
marwaeng
 
PPTX
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
PPTX
Vb6.0 intro
JOSEPHINEA6
 
PPTX
CHAPTER 1: Lesson B
MLG College of Learning, Inc
 
PPTX
Programming basics
Senri DLN
 
PDF
Ict project pdf
Happy Nezza Aranjuez
 
PPT
Chapter 01
llmeade
 
PPT
Basiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiicccic.ppt
AhmedAlAfandi5
 
PDF
Vb tutorial
jayguyab
 
Chapter 03
llmeade
 
Microsoft Visual Basic Programs To Accompany Programming Logic And Design 3rd...
teyrefededa
 
COM 211 PRESENTATION.pptx
AnasYunusa
 
Object Oriented Programming I
raven_rainagi
 
Visual basic
Alisha Korpal
 
CHAPTER 3 - LESSON C
MLG College of Learning, Inc
 
Chapter 02 - Program and Grapahical User Interface
patf719
 
UNIT I.pptx
BhargaviJ8
 
Ms vb
sirjade4
 
Visualbasic tutorial
Andi Simanjuntak
 
visualbasicprograming
dhi her
 
Software engineering modeling lab lectures
marwaeng
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Vb6.0 intro
JOSEPHINEA6
 
CHAPTER 1: Lesson B
MLG College of Learning, Inc
 
Programming basics
Senri DLN
 
Ict project pdf
Happy Nezza Aranjuez
 
Chapter 01
llmeade
 
Basiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiicccic.ppt
AhmedAlAfandi5
 
Vb tutorial
jayguyab
 
Ad

Recently uploaded (20)

PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 

Chapter 03 - Program Coding and Design

  • 1. Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding
  • 2. 3 Objectives ►Change the BackColor property of an object ►Understand Visual Basic 2010 code statement formats ►Use IntelliSense to enter Visual Basic 2010 code statements ►Correct errors in Visual Basic 2010 code ►Write code for an object ►Print code ►Prepare an Event Planning Document Chapter 3: Program Design and Coding 2
  • 3. 3 BackColor Property ►Click the Windows Form object to select it ►If necessary, scroll in the Properties window until the BackColor property is displayed, and then click the right column of the BackColor property ►Click the BackColor arrow. Then, if necessary, click the Web tab to display the Web tabbed page ►Scroll to display the color you wish to apply ►Click the color you wish to apply on the color list Chapter 3: Program Design and Coding 3
  • 4. 3 BackColor Property Chapter 3: Program Design and Coding 4
  • 5. 3 Sizing an Image ►With the PictureBox object containing the StandardRoom image selected, scroll in the picStandardRoom Properties window until you see the SizeMode property. Click the SizeMode property name in the left column and then click the SizeMode arrow in the right column of the SizeMode property ►Click StretchImage in the SizeMode list Chapter 3: Program Design and Coding 5
  • 6. 3 Sizing an Image Chapter 3: Program Design and Coding 6
  • 7. 3 Running a Program ►Point to the Start Debugging button on the Standard toolbar ►Click the Start Debugging button on the Standard toolbar Chapter 3: Program Design and Coding 7
  • 8. 3 Entering Visual Basic Code for Event Handling ►With Visual Studio 2010 and the Hotel Room Selection program open and the frmHotelRoomSelection.vb [Design] tabbed window visible, point to the Standard Room Button object in the Windows Form object ►Double-click the Standard Room Button object Chapter 3: Program Design and Coding 8
  • 9. 3 Entering Visual Basic Code for Event Handling Chapter 3: Program Design and Coding 9
  • 10. 3 Visual Basic 2010 Coding Statements ►The Visual Basic syntax specifies how each statement must be written ►When the user clicks the Standard Room button while the program is running, the standard room image should be displayed in the picStandardRoom PictureBox object Chapter 3: Program Design and Coding 10
  • 11. 3 General Format of a Visual Basic Statement Chapter 3: Program Design and Coding 11
  • 12. 3 IntelliSense ►IntelliSense displays all allowable entries you can make in a Visual Basic statement each time a dot (period), equal sign, or other special character required for the statement is typed Chapter 3: Program Design and Coding 12
  • 13. 3 Entering a Visual Basic Statement ► With the code window open and the insertion point positioned as shown in Figure 3-25 on page 131, type pic followed by a period ► To identify the correct entry, type the first letters of the entry until the entry is selected. In this case, type s on your keyboard ► When IntelliSense highlights the correct object name, press the key on the keyboard corresponding to the entry that is to follow the object name. In this case, press the PERIOD key ► As with the object name in the second step, the next step is to enter one or more characters until IntelliSense highlights the desired property in the list. Type the letter, v on your keyboard Chapter 3: Program Design and Coding 13
  • 14. 3 Entering a Visual Basic Statement ►Press the key for the character that is to follow the property name. In this case, press the SPACEBAR on the keyboard ►Press the EQUAL SIGN key on the keyboard and then press the SPACEBAR. On the IntelliSense list, click the Common tab to display the most common results ►Type t on the keyboard ►Press the key for the character that is to follow the True entry. In this case, press the ENTER key Chapter 3: Program Design and Coding 14
  • 15. 3 Comments in Program Statements ►To insert a blank line following the event code generated by Visual Studio that begins with the word, Private, click anywhere in that line and then press the END key on your keyboard ►Press the ENTER key ►Type the first line of the comments, beginning with an apostrophe, as shown in Figure 3-46 on page 143, and then press the ENTER key Chapter 3: Program Design and Coding 15
  • 16. 3 Comments in Program Statements Chapter 3: Program Design and Coding 16
  • 17. 3 Same Line Comments Chapter 3: Program Design and Coding 17
  • 18. 3 Introductory Comments ►Click to the left of the word, Public, on line 1 in the program to place the insertion point on that line ►Press the ENTER key one time, and then press the UP ARROW key one time ►Type an apostrophe, a space, the text, Program Name: and then press the TAB key one time ►Type Hotel Room Selection as the name of the program. Then, press the ENTER key Chapter 3: Program Design and Coding 18
  • 19. 3 Introductory Comments Chapter 3: Program Design and Coding 19
  • 20. 3 Correcting Errors in Code ►Using IntelliSense reduces the likelihood of coding errors considerably, although it is still possible to code an error • One possible error may be forgetting an apostrophe in a comment statement ►A build errors message means the Visual Basic compiler detected a coding error in the program Chapter 3: Program Design and Coding 20
  • 21. 3 Correcting Errors in Code Chapter 3: Program Design and Coding 21
  • 22. 3 Correcting Errors in Code ►Click the No button in the Microsoft Visual Studio dialog box that informs you of a build error ►Double-click anywhere on the error line ►Click in the leftmost column on line 7 to place the insertion point at that location ►Type an apostrophe ►Click anywhere in the code editing window Chapter 3: Program Design and Coding 22
  • 23. 3 Correcting Errors in Code Chapter 3: Program Design and Coding 23
  • 24. 3 Additional Click Events ►On the frmHotelRoomSelection.vb [Design] tabbed page, double-click the Exit Window Button object Chapter 3: Program Design and Coding 24
  • 25. 3 Close Procedure ►With the insertion point positioned as shown in Figure 3-64 on page 154, type clo to highlight Close in the IntelliSense list ►Press the ENTER key Chapter 3: Program Design and Coding 25
  • 26. 3 Printing Code ►Click File on the menu bar to display the File menu ►Click Print on the File menu to display the Print dialog box ►Ensure that a check mark appears in the Include line numbers check box if you want line numbers on your printout. Most developers prefer line numbers on printouts ►Make any other selections you find necessary in the Print dialog box ►Click the OK button in the Print dialog box to print the code Chapter 3: Program Design and Coding 26
  • 27. 3 Event Planning Document Chapter 3: Program Design and Coding 27
  • 28. 3 Phase 4 – Code the Program ►After the events and tasks within the vents have been identified, the developer is ready to code the program • Entering Visual Basic statements to accomplish the tasks specified on the event planning document ►Developer enters the code and implements the logic Chapter 3: Program Design and Coding 28
  • 29. Microsoft Visual Basic 2010 CHAPTER THREE COMPLETE Program Design and Coding