Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Summer2006 Midterm 1 Review: Compute the pay rate

Questions?


def pay(hours, rate):
  gross=hours*rate
  if(gross<100):
    tax= .25*gross
  if(gross>=100 and gross<200):
    tax= .30*gross
  if(gross>=200 and gross<300):
    tax= .35*gross
  if(gross>=300 and gross <400):
    tax= .45*gross
  if(gross>=400):
    tax= .50*gross
  net=gross-tax
  print gross
  print net




That's right. - Bobby Mathew



Link to this Page