19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

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.

6. Voting Machine. The members of the local Gilligan’s Isl<strong>and</strong> fan club bring a computer<br />

to their annual meeting to use in the election of a new president. Write a<br />

program to h<strong>and</strong>le the election. The program should add each c<strong>and</strong>idate to a list<br />

box as he or she is nominated. After the nomination process is complete, club<br />

members should be able to approach the computer one at a time <strong>and</strong> double-click<br />

on the c<strong>and</strong>idate of their choice. When a “Tally Votes” comm<strong>and</strong> button is<br />

clicked, a second list box, showing the number of votes received by each c<strong>and</strong>idate,<br />

should appear alongside the first list box. Also, the name(s) of the c<strong>and</strong>idate(s)<br />

with the highest number of votes should be displayed in a picture box.<br />

7. Airplane Seating Chart. An airplane has 30 rows (numbered 1 through 30), with<br />

6 seats (labeled A, B, C, D, E, <strong>and</strong> F) in each row. Write a program to display a<br />

7-by-31 grid with a cell for each seat. As each passenger selects a seat <strong>and</strong> a<br />

meal (regular, low-calorie, or vegetarian), the ticket agent clicks on the cell corresponding<br />

to the seat. A dialog box requests the type of meal <strong>and</strong> then one of<br />

the letters R, L, or V is placed in the cell clicked. At any time, the agent can<br />

request the number of seats filled, the number of window seats vacant, <strong>and</strong> the<br />

numbers of each type of meal ordered.<br />

<strong>Programming</strong> Projects 319

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

Saved successfully!

Ooh no, something went wrong!