My program.
# Goal: to calculate interest income. # Identify variable and initialize parameters # Initial sum of money which is a number income = 0.0 # Float # Interest rate which is a number time = 0 # Integer # Calculate and Display Results while time income = 10.0 ∗ time puts "My text"
# Goal: to calculate interest income. # Identify variable and initialize parameters # Initial sum of money which is a number income = 0.0 # Float # Interest rate which is a number time = 0 # Integer # Calculate and Display Results while time income = 10.0 ∗ time puts "My text"
[code lang=”ruby”]
# Goal: to calculate interest income.
# Identify variable and initialize parameters
# Initial sum of money which is a number
income = 0.0 # Float
# Interest rate which is a number
time = 0 # Integer
# Calculate and Display Results
while time income = 10.0 ∗ time
puts "My text"
[/code]
References …
| COURSE |