School of Engineering and Applied Science
Department of Computer Science
CSci 49 -- Introduction to C Computing
http://www.seas.gwu.edu/~csci49/spring06
Prof. Michael B. Feldman
mfeldman@gwu.edu

Project #5
Due Date: Start of lecture, Thursday, March 9, 2006

Problem Specification:

You and your college roommates frequently order a late-night pizza snack. There are many pizzerias in the area that deliver to dormitories. The number of different pizza sizes and prices varies from pizzeria to pizzeria. Because you are on a tight budget, you would like to know which size pizza is the best value, so you want to compare as many different brands and sizes as possible.

To find which pizza is the best value, we must be able to do a meaningful comparison of pizza costs. Let's use unit price. Pizzas are sold by size (diameter), measured in inches, so we can define the unit price of a pizza as its price divided by its area (that is, dollars per square inch).

Develop a program that computes the unit prices for each of the pizza sizes and determines the lowest unit price. The number of different sizes and prices may vary from evening to evening, so this cannot be a fixed number in the program. It's up to you whether to use a count-controlled, sentinel-controlled, or flag-controlled repetition; just make sure it's clear in your documentation and testing.

To lend realism to the project, visit or call one or more of the local pizza delivery places, to find out their diameters and prices. Indicate in your report whom you called or visited.

What to submit:

You must follow the project preparation and submission documents on the website.

Your grade will be calculated on a 20-point basis, as follows:

Extra credit:

We'll continue the 2-point bonus for getting an early start. If you e-mail your "framework" listing file to Prof. Feldman, and the time stamp on the e-mail is no later than 5 PM, Monday, March 6, 2006, you will be awarded 2 extra project points. The "framework" must be a listing (.txt) file, with no compilation errors or warnings, that contains the declared variables, and a set of comments inserted for the main algorithm steps.

MBF 2/28/06