Write a C++ program that prompts the user for 3 values: the half life of an element, the starting quantity, and the target remaining quantity. For the purposes of this program, don't worry about the units of these values. Print out a table with 3 columns: time elapsed, quantity remaining, and percentage of original quantity remaining. Starting when time elapsed = 0, print rows at every half life until the quantity remaining is equal to or less than the target remaining quantity. Finally, print out a message to let the user know how much time needs to elapse to reach the target remaining quantity. All numbers should be printed with at most 2 places after the decimal point
Write a C++

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images









