Recitation 10 Problems

# Recitation 10 Problems - 14:440:127 Introduction to...

This preview shows pages 1–2. Sign up to view the full content.

14:440:127 Introduction to Computers for Engineers Recitation 10- Problems for students to attempt Please complete these problems on your own time if you do not finish in recitation. You don’t need to show us the completed recitation problems, although we recommending saving a copy of your solutions for your own benefit. 1. Write a switch/case statement that displays the following menu for Taco Bell, allows the user to select one item, and then displays the amount of that item: Soft Taco \$0.69 Chicken Soft Taco \$1.99 Nachos Supreme \$2.09 Fruitista Freeze \$1.50 2. Edit the menu above to include a fifth option: “done.” Each time the user selects an option, the menu should display again until the user chooses “done.” Then, display a list of what they ordered (and quantities), as well as the total amount of their purchase. Hint: use a while(1) loop, which is an infinite loop, and then have case 5 of your switch statement be a “break” statement. 3.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 01/11/2010 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.

### Page1 / 2

Recitation 10 Problems - 14:440:127 Introduction to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online