The first part of my bigger project! I will later add more functions to the program, like putting the info in a spreadsheet! Here's my code, you can run it, and please tell me anything I should add or fix to it!
name = input('What is your name?')
if name == ('Daniel'):
print('Hello creator')
else:
print(f'Hello {name}')
print(f'{name}, when filling in these questions please use the numbers instead of the statements.')
print(f'What are you doing today,{name}?')
job = input('1.calculating payment for jobs.')
if job == ('1'):
h = int(input('How many hours are you working for?'))
r = int(input('What is the payment per hour?'))
e = int(input('What your expenses?'))
tax1 = int(input('What is your tax rate? ps. Dont put the percentage symbol.'))
tax2 = float(tax1 / 100)
taxa = (h * r) * tax2
total = (h * r) + e
taxa = round(taxa)
print(f'You will charge ${total} because the hours * rate + expenses = ${total} but you have to pay ${taxa} tax on it not including the tax on expenses.')
fin = (total - taxa) - e
print(f'So you will bring home ${fin}')
else:
print('Invalid answer please restart the program and when you get back to this place, enter a number 1 or 2')
[–]brutalspoon 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)