Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

visual basic Form 2: Working with Text Files and Arrays - The second form will have two events: Load Event and a button click event.

image text in transcribed
visual basic
Form 2: Working with Text Files and Arrays - The second form will have two events: Load Event and a button click event. Before you begin working on your code, you need to create a CSV text file. The file name should be Courses.txt. This file should be stored in the Project's bin/Debug folder and should contain at least 6 records. Each record will be made up of the following fields: - Course Id - Title - Credit hours - Grade Sample Records could be: CIS115,Beginning Programming,4,A CIS324,Database Design,3,B This program will work with a class level array named courses that needs to be created before the events can work with it. Load Event: At Load time, use the ReadAllLines command to read the records that make up the Courses.txt file into the courses array. Aka - Populate the courses array from the text file. Button Click Event: This event should traverse through the class-level courses array, use the Split command to divide each record into individual fields and display these fields in an output listbox in a well-formatted meaningful way. No sample form is given so each student is to design their own form layout as well as the format for the output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions