Answered step by step
Verified Expert Solution
Question
1 Approved Answer
visual basic plz In this lab, you are to create ONE project that contains TWO forms for this assignment. The form and all controls should
visual basic plz
In this lab, you are to create ONE project that contains TWO forms for this assignment. The form and all controls should be named using VB standards. Within the code, using meaningful variable names that meet the VB standards and appropriate data types. Comments are always encouraged. Form 1: Working with Loops - The first form will have two button click events: First Button Click Event: Using a Do Loop with a Sentinel value of -1 ask the user to type in the list of courses they have completed (ex: CIS115). As they enter the courses, display the courses in a listbox. Second Button Click Event: Once the course listbox has been populated, the user will select a course from the listbox that will be converted into a new string using the guidelines given below. This event must validate that a course has been selected from the listbox before the process of generating the new string coded name can be done. (Hint: see page 274.) If a course has been selected, that name should be read into the program and converted to 'code' as follows: - All letters are converted to lower case. - All vowels within the string should be removed. - Replace numbers should be converted as follows: - 1 will become an exclamation point (!) - 2 will become the letter z (lower case) - 3 will become the letter E (upper case) - 4&8 will become dollar signs (\$) - 5 will become the letter S (upper case) - 6&7 will become ampersands (&) - 0&9 will become letter o (lower case). Once the 'coded course' name has been created, it is to be displayed in the output textbox. Form 2: Working with Text Files and Arrays - The second form will have two events: Load Event and a button click event. 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started