65 761
Assignments Done
99,3%
Successfully Done
In October 2018

Answer to Question #33151 in Visual Basic for People

Question #33151
Running on a particular treadmill you burn 3.9 calories per minute. Create an application (function) that uses a loop to display the number of calories burned after 10,15,20,25 and 30minutes
Expert's answer
Module Module1
'main function
Sub Main()
For i As Integer = 10 To 30 Step 5
Dim numberofcalories As Double = 3.8999999999999999 * i 'number of calories
Console.WriteLine(numberofcalories.ToString() + " calories burned after
" + i.ToString() + " minutes") 'show result
Next
Console.ReadLine() 'Delay
End Sub

End Module

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions