30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 16 Graphics and Multimedia 735<br />

Radio but<strong>to</strong>ns<br />

corresponding<br />

<strong>to</strong> different pizza<br />

styles<br />

Text box<br />

indicates that<br />

Peedy is waiting<br />

for user input<br />

Fig. 16.32 Peedy waiting for speech input.<br />

If a user chooses speech input, a box appears below Peedy displaying the words that<br />

Peedy "heard" (i.e., the words translated <strong>to</strong> the program by the speech-recognition<br />

engine). Once he recognizes the user input, Peedy gives the user a description of the<br />

selected pizza. Figure 16.33 shows what happens when the user chooses Seattle as the<br />

pizza style.<br />

Peedy then asks the user <strong>to</strong> choose additional <strong>to</strong>ppings. Again, the user can either<br />

speak or use the mouse <strong>to</strong> make a selection. Check boxes corresponding <strong>to</strong> <strong>to</strong>ppings that<br />

come with the selected pizza style are checked for the user. Figure 16.34 shows what happens<br />

when a user chooses anchovies as an additional <strong>to</strong>pping. Peedy makes a wisecrack<br />

about the user’s choice.<br />

The user can submit the order either by pressing the Place My Order but<strong>to</strong>n or by<br />

speaking, “Place order” in<strong>to</strong> the microphone. Peedy recounts the order while writing<br />

down the order items on his notepad (Fig. 16.35). He then calculates the figures on his<br />

calcula<strong>to</strong>r and reports the <strong>to</strong>tal <strong>to</strong> the user (Fig. 16.36).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!