Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with this Visual Basic form problem and program. Need to make a form t

ID: 3695901 • Letter: N

Question

Need help with this Visual Basic form problem and program. Need to make a form that user types states name in text box then clicks a button to see the state flower displayed in a label. I took pictures of the txt file: states.txt.

Visual Basic 2012, C++ with dim statements and such.

#2 (35 pts.) This program uses two parallel arrays to store information about state flowers. Text file states.txt available on First Class contains state names followed by state flowers. Create two arra strings where the first stores state names and the second stores flowers. Create two arrays of state flowers as read from the text file The arrays should be filled in the Form Load event. Sort the arrays by the state name using the bubble sort algorithm studied in lecture. Hint: Be sure the flower stays with its state so when you swap states, swap their flowers also as practiced in lab. Model of these parallel arrays: states 0 Alabama 1 Alaska 2 Arizona 3 Arkansas flowers 0 Camellia 1 Forget Me Not 2 Saguaro Cactus 3Apple Blossom Design a form in which the user enters a state name in a Text Box and clicks a button to see the state flower in a label. If the state cannot be found display an error message in the label instead. This program should call the binary search Function since the data is sorted by state. The binary search Function is passed an array of strings and a target string. It returns the index of the target if found or -1 if not found. It is the same algorithm studied in lecture, you need to adjust it to search an array of strings. Print the code and two sample outputs, one of the state flower for Maine and one showing an error from a misspelled state name.

Explanation / Answer

#include int main() { char c; for(c='A'; c
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote