hourly.py

#hourly.py by HYC

name = str(“Hongyang Chen”)
job = str(“Lawyer”)
wage = float(“119.77”)
hour = int(“13”)

print (“Hi, my name is”, name , “and I am a” ,job,”.”)
print (“I make $”,wage, “an hour and I work” , hour, “hours a day.”)

for i in range(hour):
if i == 0:
print(“After” ,i+1,”hour,I make total of $” ,(i+1) * wage, “.”)
else:
print(“After” ,i+1,”hours,I make total of $” ,(i+1) * wage, “.”)Screen Shot 2016-12-15 at 3.05.07 PM.png

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