CS 1620 Assignment #5 Spring 2001

How to handin.
Due : Monday Mar 12, 2001 @ midnight No grace period

Marks will be awarded for comments, style, readability, compiling and working correctly.
  1. Textbook: Page 180, (Self-Check Section 4.2). Exercices #2(a), #2(d)
  2. Textbook: Page 186, (Self-Check Section 4.3). Exercises #2
  3. Textbook: Page 190, (Self-Check Section 4.4). Exercises #2, #4
  4. Textbook: Page 220, Exercises #8
  5. Textbook: Page 221, Exercises #11

  6. LCG is the Last Gas Station on route 160 on the edge of Death Snow Valley in East Alaska. There is no other gas station for 350 kms. You are to write a program to help drivers decide if they need gas. The program asks for the following: Here is a sample of input/output:
    Enter Tank Capacity:  48
    Enter Gage Reading :  25
    Enter Kms per Litter: 25
    
    !Warning: GET GAS !!
    
  7. At the Internet Discount Store, you are asked to write a program that takes order from the Internet. The program will ask what type of item the user wants, will ask its price and if the user wants overnight shipping. Regular shipping for items under $50.00 is $3.00; for items between $50.00 and $150.00 shipping is $5.00; for item more than $150.00 shipping is $7.00. For overnight delivery add $4.00.

    Here is a sample of input/output:

    Enter the item code: DVM67#
    Enter the price: 45.5
    Overnight Shipping (0 for No; 1 for Yes): 1
    
    Your invoice is: 
    DVM67#  :     45.50
    Shipping:      7.00
    Total   :     52.50
    

Assignment List | Prev | Next | Computer Science 1620
Department of Mathematics & Computer Science
University of Lethbridge Home Page