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.
MIT 6.00 Intro Computer Science (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.