Assignment 5 problem 3

Problem 3: Radioactive active decay
Your program should display the amount of A/A0 in a patient body every hour for 24 hours after receiving the dose. Prompt user for the initial dose (A0) in millicures (mci). Typical values range from 3.8 - 15 millicures. However, you can use any value for this program. Even milligrams. Enter values without negative exponents. If you want to enter 15 milligrams, enter 15. Same, for millicures. Display, your results in a table, the first column showing hours beginning at 0, and ending at 24. The second column shows the ratio of A/A0 beginning at hour 0 when the ratio is 1.
Make sure that only positive values are entered for the initial dose using a do while loop.
I am not sure where to start.
I use a program called Dev c++ 6.3
I am not sure where to start.
Prompt user for the initial dose (A0) in millicures (mci)

Prompt the user for input. Store the user input in a variable of type double.
Tutorials:
- http://www.cplusplus.com/doc/tutorial/basic_io/
- https://codescracker.com/cpp/program/cpp-program-receive-input.htm
Your instructions are missing a rather fundamental parameter. You will need either half life or decay constant. There's also a few fundamental differences between millicuries and milligrams.

For your calculations you probably need the exp() function in the <cmath> header.
Topic archived. No new replies allowed.