Using Visual Basic, write a program containing a for…next loop. Cobalt-60, a radioactive form of cobalt used in cancer therapy, decays over a period of time. Each year, 12% of the amount present at the beginning of the year will have decayed. If a container of cobalt-60 initially contains 10 grams, determine the amount remaining after five years. See the figure below.
Suggested Control Names and Attributes( without container ):
Name Property | Text Property | Control Type | Notes |
frmRadioactive | Radioactivity | Form | Holds Controls |
btnAnalyze | Analyze Radioactive Decay | Button | Triggers event to display analysis of decay |
txtAmount | TextBox | Displays amount of radioactivity. Read only set to true. |