#!/usr/bin/env python # # Author : Ahmed Obied (amaobied@ucalgary.ca) # Date : Jan. 17th 2008 # Purpose : Calculates the wages earned by the employee. # The hourly rate will be a fixed rate and the program will # determine the amount of money earned based on the number # of hours worked at this rate of pay. # # constant for the rate per hour RATE_PAID = 8.05 # the number of hours an employee works hours = float(raw_input('Enter the number of hours worked: ')) # calculate the amount paid to the employee total = hours * RATE_PAID # print to the console with proper formatting print 'The employee has earned $%.2f' % total