Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**Please do in Visual Basic** txt file: Start a new project named Lab 32. Create a program that allows the user to search an array

**Please do
in Visual Basic** image text in transcribed
image text in transcribed
image text in transcribed
txt file:
image text in transcribed
Start a new project named Lab 32. Create a program that allows the user to search an array for the name of a president. The results should include partial matches, regardless of case. The array must be loaded from the following file: USPresWith Dates.txt Each line of the file contains the three fields listed below. The fields are separated by a semi-colon. Start Date End Date Name For each match found, the program must display the three fields in a Listbox. The Listbox must include one header row. The fields must be aligned using String.Format. The program must show a count of the matches found. When no matches are found, a zero should be displayed for the count. Lab 32 Searching an Array Name a Search Search Results Name i George Washington 2 John Adams 3 Thomas Jefferson 4 James Madison 5 James Monroe 6 John Quincy Adams 7 Andrew Jackson 8 Martin Van Buren 9 William Henry Harrison 10 John Tyler 11 James K. Polk 12 Zachary Taylor 13 Millard Fillmore 14 Franklin Pierce 15 James Buchanan 16 Abraham Lincoln Start Date April 30, 1789 March 4, 1797 March 4, 1801 March 4, 1809 March 4, 1817 March 4, 1825 March 4, 1829 March 4, 1837 March 4, 1841 April 4, 1841 March 4, 1845 March 4, 1849 July 9, 1850 March 4, 1853 March 4, 1857 March 4, 1861 End Date March 4, 1797 March 4, 1801 March 4, 1809 March 4, 1817 March 4, 1825 March 4, 1829 March 4, 1837 March 4, 1841 April 4, 1841 March 4, 1845 March 4, 1849 July 9, 1950 March 4, 1853 March 4, 1857 March 4, 1861 April 15, 1865 Matches: 45 Lab 32 Searching an Astay Name CLEV Search Search Results # Name 22 Grover Cleveland 24 Grover Cleveland Start Date March 4, 1885 March 4, 1893 End Date March 4, 1889 March 4, 1897 Matches 2 Lab32 Searching any Lab 32 Searching an Array Name Beyers Search Search Results Search Results No matches were found OK Matches: 0 April 30, 1789; March 4, 1797;George Washington March 4, 1797; March 4, 1801;John Adams March 4, 1801;March 4, 1809; Thomas Jefferson March 4, 1809; March 4, 1817;James Madison March 4, 1817; March 4, 1825;James Monroe March 4, 1825; March 4, 1829;John Quincy Adams March 4, 1829; March 4, 1837; Andrew Jackson March 4, 1837; March 4, 1841; Martin Van Buren March 4, 1841; April 4, 1841; William Henry Harrison April 4, 1841; March 4, 1845;John Tyler March 4, 1845;March 4, 1849;James K. Polk March 4, 1849;July 9, 1850; Zachary Taylor July 9, 1850; March 4, 1853; Millard Fillmore March 4, 1853; March 4, 1857; Franklin Pierce March 4, 1857; March 4, 1861;James Buchanan March 4, 1861; April 15, 1865; Abraham Lincoln April 15, 1865;March 4, 1869; Andrew Johnson March 4, 1869; March 4, 1877;Ulysses S. Grant March 4, 1877; March 4, 1881; Rutherford B. Hayes March 4, 1881; September 19, 1881;James A. Garfield September 19, 1881;March 4, 1885; Chester A. Arthur March 4, 1885;March 4, 1889; Grover Cleveland March 4, 1889; March 4, 1893; Benjamin Harrison March 4, 1893; March 4, 1897; Grover Cleveland March 4, 1897; September 14, 1901;William McKinley September 14, 1901;March 4, 1909; Theodore Roosevelt March 4, 1909; March 4, 1913;William Howard Taft March 4, 1913; March 4, 1921; Woodrow Wilson March 4, 1921; August 2, 1923; Warren G. Harding August 2, 1923; March 4, 1929;Calvin Coolidge March 4, 1929; March 4, 1933; Herbert Hoover March 4, 1933;January 20, 1941; Franklin D. Roosevelt April 12, 1945;January 20, 1953; Harry S. Truman January 20, 1953;January 20, 1961;Dwight D. Eisenhower January 20, 1961; November 22, 1963; John F. Kennedy November 22, 1963;January 20, 1969; Lyndon B. Johnson January 20, 1969; August 9, 1974; Richard Nixon August 9, 1974;January 20, 1977;Gerald Ford January 20, 1977;January 20, 1981;Jimmy Carter January 20, 1981;January 20, 1989; Ronald Reagan January 20, 1989;January 20, 1993; George H. W. Bush January 20, 1993;January 20, 2001;Bill Clinton January 20, 2001;January 20, 2009; George W. Bush January 20, 2009;January 20, 2017, Barack Obama January 20, 2017;January 20, 2021; Donald Trump January 20, 2017;Current Day; Joseph Robinette Biden Jr Start a new project named Lab 32. Create a program that allows the user to search an array for the name of a president. The results should include partial matches, regardless of case. The array must be loaded from the following file: USPresWith Dates.txt Each line of the file contains the three fields listed below. The fields are separated by a semi-colon. Start Date End Date Name For each match found, the program must display the three fields in a Listbox. The Listbox must include one header row. The fields must be aligned using String.Format. The program must show a count of the matches found. When no matches are found, a zero should be displayed for the count. Lab 32 Searching an Array Name a Search Search Results Name i George Washington 2 John Adams 3 Thomas Jefferson 4 James Madison 5 James Monroe 6 John Quincy Adams 7 Andrew Jackson 8 Martin Van Buren 9 William Henry Harrison 10 John Tyler 11 James K. Polk 12 Zachary Taylor 13 Millard Fillmore 14 Franklin Pierce 15 James Buchanan 16 Abraham Lincoln Start Date April 30, 1789 March 4, 1797 March 4, 1801 March 4, 1809 March 4, 1817 March 4, 1825 March 4, 1829 March 4, 1837 March 4, 1841 April 4, 1841 March 4, 1845 March 4, 1849 July 9, 1850 March 4, 1853 March 4, 1857 March 4, 1861 End Date March 4, 1797 March 4, 1801 March 4, 1809 March 4, 1817 March 4, 1825 March 4, 1829 March 4, 1837 March 4, 1841 April 4, 1841 March 4, 1845 March 4, 1849 July 9, 1950 March 4, 1853 March 4, 1857 March 4, 1861 April 15, 1865 Matches: 45 Lab 32 Searching an Astay Name CLEV Search Search Results # Name 22 Grover Cleveland 24 Grover Cleveland Start Date March 4, 1885 March 4, 1893 End Date March 4, 1889 March 4, 1897 Matches 2 Lab32 Searching any Lab 32 Searching an Array Name Beyers Search Search Results Search Results No matches were found OK Matches: 0 April 30, 1789; March 4, 1797;George Washington March 4, 1797; March 4, 1801;John Adams March 4, 1801;March 4, 1809; Thomas Jefferson March 4, 1809; March 4, 1817;James Madison March 4, 1817; March 4, 1825;James Monroe March 4, 1825; March 4, 1829;John Quincy Adams March 4, 1829; March 4, 1837; Andrew Jackson March 4, 1837; March 4, 1841; Martin Van Buren March 4, 1841; April 4, 1841; William Henry Harrison April 4, 1841; March 4, 1845;John Tyler March 4, 1845;March 4, 1849;James K. Polk March 4, 1849;July 9, 1850; Zachary Taylor July 9, 1850; March 4, 1853; Millard Fillmore March 4, 1853; March 4, 1857; Franklin Pierce March 4, 1857; March 4, 1861;James Buchanan March 4, 1861; April 15, 1865; Abraham Lincoln April 15, 1865;March 4, 1869; Andrew Johnson March 4, 1869; March 4, 1877;Ulysses S. Grant March 4, 1877; March 4, 1881; Rutherford B. Hayes March 4, 1881; September 19, 1881;James A. Garfield September 19, 1881;March 4, 1885; Chester A. Arthur March 4, 1885;March 4, 1889; Grover Cleveland March 4, 1889; March 4, 1893; Benjamin Harrison March 4, 1893; March 4, 1897; Grover Cleveland March 4, 1897; September 14, 1901;William McKinley September 14, 1901;March 4, 1909; Theodore Roosevelt March 4, 1909; March 4, 1913;William Howard Taft March 4, 1913; March 4, 1921; Woodrow Wilson March 4, 1921; August 2, 1923; Warren G. Harding August 2, 1923; March 4, 1929;Calvin Coolidge March 4, 1929; March 4, 1933; Herbert Hoover March 4, 1933;January 20, 1941; Franklin D. Roosevelt April 12, 1945;January 20, 1953; Harry S. Truman January 20, 1953;January 20, 1961;Dwight D. Eisenhower January 20, 1961; November 22, 1963; John F. Kennedy November 22, 1963;January 20, 1969; Lyndon B. Johnson January 20, 1969; August 9, 1974; Richard Nixon August 9, 1974;January 20, 1977;Gerald Ford January 20, 1977;January 20, 1981;Jimmy Carter January 20, 1981;January 20, 1989; Ronald Reagan January 20, 1989;January 20, 1993; George H. W. Bush January 20, 1993;January 20, 2001;Bill Clinton January 20, 2001;January 20, 2009; George W. Bush January 20, 2009;January 20, 2017, Barack Obama January 20, 2017;January 20, 2021; Donald Trump January 20, 2017;Current Day; Joseph Robinette Biden Jr

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions