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 
Step-by-step 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 )