Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago