Block of Code

Practical Examples for Programmers

  • Home
  • C++
  • Java
  • Visual Basic
  • Discrete Math
  • Ask a Question

Radioactive Decay

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.

Radioactive Decay Screenshot

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.

Secondary Sidebar

This is the secondary sidebar

Copyright © 2025 · Metro Pro Theme on Genesis Framework · WordPress · Log in