Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I need help on this assignment on cengage. I have already included all the flowers in my code but I'm not sure what else

Hello I need help on this assignment on cengage. I have already included all the flowers in my code but I'm not sure what else I'm missing. Plz help due today!

image text in transcribed
Opening Files and Performing File Input in C+ s course X Opening Files and Flowers.cpp flowers.dat + >_ Terminal + Performing File Input 10 int main( ) 11 Instructions Flowers. cpp: In function 'i 12 / / Declare variables here )' : 13 / / Open input file Flowers . cpp : 18:4: error: 1. Ensure the source code file named 14 not declared in this scope 15 fin > > flowerName; Flowers.cpp is open in the code 16 / / Write while loop that reads records from file. editor. 17 Flowers . cpp: 18:4: note: sug 18 fin > > flowerName; lternative: 'main' 2. Declare the variables you will need. 19 fin >> flowerName; ANN 3. Write the C++ statements that will 20 / / Print flower name using the following format main 21 / / cout > flowerName; 24 / /cout

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions