Question: Create a Visual Basic program similar to the one described below Create arrays to store the data from the Restaurants.dat file. The fields are Name,

Create a Visual Basic program similar to the one described below

Create arrays to store the data from the Restaurants.dat file.

The fields are Name, Seating, Type, Rating

Use a loop to load the data into parallel arrays and display the contents in a RichTextBox.

Put the types in a ListBox. Populate the ListBox when the program loads.

Use the ListBox to search the type array. Display the records for all matches. Count and display the number of matches.

Use a TextBox and a Button to search the name array for matching names. Display the records for all matches. Count and display the number of matches.

Use a NumericUpDown to display the health inspection rating for all restaurants greater than or equal to that rating. Display the records for all matches. Count and display the number of matches.

Count the number of records. Display the number of records when the program loads and at the end of every search.

.dat file

Chew the Fat,204,Buffet,85 Clucker's,180,Buffet,93 River Bend,142,Buffet,92

Wally's,154,Casual,90 Grain Bin,116,Casual,98 Back 40,83,Casual,92

Yellow Dragon,122,Chinese,88 Panda House,58,Chinese,95 Beijing Wok,71,Chinese,95

Tate's,250,Family,88 Gary's,94,Family,86

Barbie Q's,45,Fast,92 Woofer's,49,Fast,93

Beach Combers,94,Intimate,88 Bow Ties and Tutus,92,Intimate,94 Table for Two,85,Intimate,87 Owt Pizza,76,Pizza,100 Italia's,78,Pizza,86

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!