Monday, Oct 30 - Home quiz and lab assignment. Due Day: Monday, Oct 30, by 4 pm.

Instructions

  • login to your account. Stay in your HOME directory. Write the programs in files called oct30p1.py, oct30p2.py, oct30p3.py
  • When your ready to e-mail type pine yanako
  • Hit ENTER
  • Highlight Attchmnt: (use arrows on your keyboard to scroll down)
  • Type oct30p1.py
  • Hit ENTER
  • Hit CTRL + X to send the message
  • Hit Y to confirm

  • Repeat the same procedure again to send second e-mail:
  • type pine yanako
  • Hit ENTER
  • Highlight Attchmnt: (use arrows on your keyboard to scroll down)
  • Type oct30p2.py
  • Hit ENTER
  • Hit CTRL + X to send the message
  • Hit Y to confirm

  • Repeat the same procedure again to send third e-mail:
  • type pine yanako
  • Hit ENTER
  • Highlight Attchmnt: (use arrows on your keyboard to scroll down)
  • Type oct30p3.py
  • Hit ENTER
  • Hit CTRL + X to send the message
  • Hit Y to confirm
  • Quiz

    In this program you will find a total price of the purchase based on the following rule: items priced a 100 dollars and below receive 15% discount. All other items receive 25% discount. Write a program that first reads one integer - the number of items user purchased in the store. The program then reads the price for each item. The program finds the total purchase price based on the rule above. Write everything in main. Assume the input is valid.

    Lab Assignment