I'm new to C++ and I need help writing this program. If anyone can help a lot it will be real appreciated. THANKYOU!!!
Down Below..........
A single cannibal can consume 1 missionary in 30 hours. Hence he/she eats at a constant rate of 1/30 of a missionary per hour. Cannibals live in tribes with a minimum of 10 members. Missionaries travel in groups whose minimum makeup is 5. When cannibals start to feast, one cannibal each hour gets indigestion and steals away into the forest. Each cannibal eats at a constant rate. Therefore, since there are fewer consumers (cannibals), fewer missionaries will be consumed in each subsequent hour.
Fortunately for the missionaries, help is on the way. Tarzan is coming! However, he is 80 miles away. During the day Tarzan travels at seven miles per hour. During the darkness he reduces his speed to 4 miles per hour. Darkness lasts nine hours. Cannibals eat at 4PM sharp when there are only three hours of daylight left.
Write a program to calculate and display how many cannibals will be caught and how many missionaries saved (if any!!). Prompt the user for the number of cannibals and missionaries, keeping in mind that the minimum number of cannibals is 10 and the minimum number of missionaries is 5. Display your results in a neat orderly manner, indicating the statistics for each hour. For example, assuming you have 30 cannibals and 10 missionaries your display should look like this:
END OF MISSIONARIES LEFT CANNIBALS EATING TARZAN CURR MISS
HOUR DISTANCE BEING EATEN
----- ----------------- ---------------- -------- -----------
0 10 30 80 10
1 9 29 73 9
2 8.03333 28 66 9
. . . .
. . . .
Consider that a missionary partially consumed is not a missionary saved.