A sequential access file named vacations.txt contains records whose three fields are delimited by a comma. The application that uses the file defines a structure named TravelInfo. The TravelInfo structure contains three members: a String member named location, an Integer member named lengthOfStay, and a Double member named cost. (4, 13, 14) a. Write a Private statement to declare a one-dimensional TravelInfo array named myVacations. The array should contain 10 elements. b. Write a Dim statement to declare a one-dimensional String array named fields. c. Write a statement that reads a line of text from the vacations.txt file and assigns the fields to the fields array. The file is associated with a StreamReader variable named inFile. d. Write the statements to assign the fields contained in the first element in the fields array to the appropriate members in the first element in the myVacations array.

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!