Question: I need help with the LAB 7.1 Opening FIles and Performing File Input In this lab, you open a file, flowers.dat, and read input from

I need help with the LAB 7.1 Opening FIles and Performing File Input In this lab, you open a file, flowers.dat, and read input from that file in a prewritten Visual Basic program. The program should read and print the names of flowers and whether they are grown in shade or sun. 1.) Open the source code file named Flowers.vb using Notepad or the text editor of your choic. 2.) Declare the variables you will need. 3.) Write the Visual Basic statements that will open the input file flowers.dat for reading 4.) Write a Do While loop to read the input until EOF is reached. 5.) In the body of the loop, print the name of each flower and where it can grown (sun or shade) on the user's screen. flowers.dat Astilbe Shade Marigold Sun Begonia Sun Primrose Shade Cosmos Sun Dahlia Sun Geranium Sun Foxglove Shade Trillium Shade Pansy Sun Petunia Sun Daisy Sun Aster Sun Flowers.vb Module Flowers Sub Main( ) ' Declare variables here ' Open input file. ' Write Do While loop to read records from file. ' Print flower name and sun or shade FileClose(1) End Sub End Module

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!