Computer Science 121
Assignment 3
Due: February 17, 1999

  1. Write a program that will first read in and store the name of a store or website. Then it will add up the prices of five items that you found there. You should prompt for and read in each price separately and add it into a running sum. Then you should display the name of the store or website and the total bill.
  2. Write a program with a function that computes the tax on a sale. It should have one parameter, the price, and return the tax. The main function should prompt for and read in a price, call the function to compute the tax, and then display the tax and the total bill.
  3. There is no sales tax on Internet sales right now. Modify program 1 to include the sales tax function in program 2. They after displaying the store name and total bill, display a message showing how much tax was (or would be) saved by making the purchase over the Internet.