**hourlyEI.py

#hourlyEI1.py

#initialize character

wageH = float(161.29)
work = str(“Physicist”)
hour = int(12)
name = str(“Eddie”)

#intro

print(“Hi there! My name is “,name, “I am a”,work, “.”)
print(“I make $ “,wageH,” per hour on a”,hour, “hour shift.”)

#start for loop
for i in range(hour):
if i == 0:
print(“After “,i+1,” hours, I make a total of $”,wageH,”.”)
else:
print(“After” ,i+1, “hours I make a total of $” ,round((i+1)* wageH,2),”.”)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s