Answer:
We use the Python language to implement the code, if you have and IDE, simply copy and paste the code and run it
Note: the cost function is c=(R+ .08*d)+5
Explanation:
#initialize some variables
T = 0.08 # tax for each day
F = 5.00 # one time fee
R = 100 # room rate
d = int(input("Enter the number of days stayed at the hotel "))
c = 0 # initialize cost variable
if (d > 0):
c=(R+ .08*d)+5
print(" the cost for ", d, " days is ", c )
else:
print(" Invalid entry for days ", d )
Answer:
Conversion: oh so you have translated this message, i congratulate you. not many would be able to do so, i take it you are a smart one and now that you have translated this i shall give you some advice about later life, "Make a habit of two things: to help; or at least to do no harm." - Hippocrates. this is something i live by in my own life i hope you can too.
Explanation:
:-)