Thursday, October 15, 2015

Time Conversion Program

The objective of this assignment is to continue to practice parameter passing between methods and functions. I designed an application that will convert a user input integer number of seconds into equivalent number of hours, minutes, and seconds. I created a method to enter the initial seconds, then created functions to convert the seconds to the proper amount of hours and minutes. I then created the last function to display the results. I used "out" to pass by reference and a modulus (%) to calculate the remaining user input value. The following is the output of the executable after completing the calculations: 












No comments:

Post a Comment