Syllabus

Home

Class Resources

News

CS-100 In-Class Project - Calculations

Form for grocery bill problem.

Instructions:

1. Write a procedure that produces a grocery receipt. You will need to identify the variables, come up with proper variable names and declare the variables using the DIM statement. Be sure to select the proper type for each variable. Assume a simple grocery order of apples and bananas.

Calculate and print to a list box the following information:

  • The name of the grocery store (ACME Grocery)
  • The cost of five pounds of apples @ $1.25 per pound.
  • The cost of two pounds of bananas @ $0.79 per pound.
  • The total grocery bill before tax
  • The total grocery bill with tax (8%)