so yeah, I'm pretty nib at programming and am falling behind in class somewhat. The teacher gave us 3 assignments to do that were due 2 days ago(today is last day to turn in). I got the first 2 done within a few hours, but now im more or less stumped on how to go about the next part. The last problems states:
and so far I'm pretty stumped, dont even know how to make charts in C, any help would be appreciated as today is last day i can still get credit for this (wouldn't ask others to do work for me normally)
Quote:One common task that the biology students must undertake is cultivating specimens of bacteria. Typically, each day, the bacteria multiply at some given rate. (For example, if there are b bacteria at the beginning of the day, there will be 1.1b bacteria at the end of the day.) But, some of these bacteria, a constant number, also die. Thus, the formula for figuring out how many bacteria are alive on day n+1 is based on how much bacteria are alive on day n in the following manner:
f(n+1) = bf(n) – d
where f(n) represents the number of bacteria alive at the beginning of day n, b represents the growth rate (a real number greater than 1), and d represents the number of bacteria that die each day.
The biology department would like you to write a program that takes in the following information:
1) Number of bacteria on day 1
2) Growth rate
3) Number of bacteria that die each day
4) Number of days the bacteria will grow
And outputs a chart to the screen that shows how many bacteria will be alive on each day.
Note: If the number of bacteria alive after replication is less than d, the number that are supposed to die each day, then all remaining bacteria die. (You can’t have a negative number of bacteria.)
Furthermore, in all cases, there is one of three outcomes:
1) The bacteria continue to indefinitely grow (well, in real life the lab will just kill them)
2) A steady state is achieved with the same number of bacteria each day
3) The number of bacteria alive will eventually get down to 0.
You should also output which of these scenarios will happen.
Input Specification
1. The number of bacteria of day 1 will be a positive integer.
2. The growth rate will be a real number greater than 1 and less than 10.
3. The number of bacteria that die each day will be a positive integer.
4. The number of days the bacteria will grow will be a positive integer greater than 2 and less than 100.
Output Specification
Output a chart with the following column headers:
Day Number of Bacteria
Each following line should have the following format:
d X
where d represents the day number of growing the bacteria, and X represents the number of bacteria alive at the beginning of that day. (You’ll need to store the number of bacteria in a double, but print it out as an integer by casting the variable. If necessary, ask your instructor how to do this.)
After the chart, output a blank line and then output one of the following statements:
The bacteria will eventually die out.
The bacteria will live in a steady state forever.
The bacteria will grow without bound.
depending on which of the three scenarios is accurate.
and so far I'm pretty stumped, dont even know how to make charts in C, any help would be appreciated as today is last day i can still get credit for this (wouldn't ask others to do work for me normally)

