Computer Science 121
Assignment 5
Due: March 10, 1999

  1. Write a program that reads in two product names and the prices of the products. It then displays the name of the more expensive product.
  2. Write a program that reads in 10 product names and their prices and displays the name and price of the most expensive product.
  3. Write a program that reads in product names and prices until a sentinel of zero is entered. At that time it should display the name and price of the least expensive product.