I have a problem with C# arrays! Can anyone help? Here is the scope of the problem I have to solve> I am expected to write a console application that is capable of doing the following: #A user must be able to enter 10 trip distances as a decimal, along with the dates of the trips as string.These values need to be stored in 2 separate arrays. The user might not always want to enter all of the trips at the same time, so as an example, it should be possible for a user to enter the data for a 4 trips and then return later to enter the other 6...or even just enter them one by one.
Also find an attachment below that will explain all the details to you!
"user must be able to enter 10 trip distances as a decimal, along with the dates of the trips as string.These values need to be stored in 2 separate arrays." So create two different arrays, one for the distances and one for the dates. You'll have to convert the distances into floats, and convert your dates into strings.
Join our real-time social learning platform and learn together with your friends!