A snail goes up A feet during the day and falls B feet at night. How long does it take him to go up H feet? Given three integer
numbers H, A and B (A>B), the program should output a number of days
1 answer:
Answer:
H=(A*D)-(B*(D-1))
H = A*D- B*D+B
H-B = (A-B)*D
D= (H-B)/(A-B)
Python 3 code
import math
H=int(input('Enter Height: '))
up=int(input('Enter Number of Feet Up: '))
down=int(input('Enter Number of Feet Down: '))
D=(H-down)/(up-down)
print(math.ceil(D),' Days'
Explanation:
The output of the Program is given in the attached file.
You might be interested in
Answer:
See attachment below
Explanation:
Yes they can contain copyright
You just type in the answer as long as it is more then 20 characters
The answer is an Intruder Prevention System (IPS). An Intrusion Detection System (IDS) will detect an attack but will not block it.
Hard to answer to short but I will try the head gear let's you talk to people on the internet