Question
// Flowers.cpp - This program reads names of flowers and whether they are grown in shade or sun from an input 
// file and prints the information to the user's screen. 
// Input:  flowers.dat.
// Output: Names of flowers and the words sun or shade.

#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main()
{
   // Declare variables here
      
   // Open input file
   
   
   // Write while loop that reads records from file.
   fin >> flowerName;
   
      // Print flower name using the following format
      //cout << var << " grows in the " << var2 << endl;
      
   fin.close();   
   return 0;
} // End of main function
Expand

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Clustering is a side effect of linear probing. Group of answer choices True False Also explain why?

A: The, answer has given below;

Q: Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Re...

A: /File: ValidateCheckDigits.java import java.io.BufferedWriter; import java.io.File; import java.io.F...

Q: Suppose we are talking about a mysterious number called Opaque Number. Any positive integer is Opaqu...

A: Because of the "The first/last digit cannot be the highest digit in that number" this condition, ple...

Q: C++

A: Program is below with commented code and output.

Q: Write A Program In C  The Example :  #include&lt;stdio.h&gt; #include&lt;ctype.h&gt; #define MONTHS_...

A: Program: #include&lt;stdio.h&gt; #include&lt;ctype.h&gt; #define MONTHS_SIZE 12 #define DAYS_SIZE 7 ...

Q: Create a pentagon (5 sided polygon) in code blocks

A: Since it is not mentioned here nor the programming language. Following is a code in c++ using graphi...

Q: Question-3 There are n number of students in a class. Assume a teacher enters and wants to shake han...

A: Solution is in Step 2.

Q: Make a table comparing all network topologies

A: Actually, network is a all devices communicate with other.

Q: Briefly state the principle following multple access protocol  a). TDMA; B).FDMA; C) Pure ALOHA d)Sl...

A: Solution:  Multiple access protocols  : They are group  of protocols  that operate in Medium Access ...

Q: List file &amp; disk management tools, and describe the function of each.

A: Click to see the answer

Q: Consider a hybrid sorting algorithm that combines Mergesort with Insertion Sort.It uses Mergesort un...

A: Actually, Algorithm is a step by step process. 

Q: Convert the given CFG to CNF: a) E-> E+T | T, T-> T*F | F, F -> 0 | 1 | (E) o where the set of termi...

A: X-&gt;+ Y-&gt;* Z-&gt;( P-&gt;) E0-&gt;ST|RF|0|1|QPE-&gt;ST|RF|0|1|QPT-&gt;RF|0|1|QPF-&gt;0|1|QPQ-&g...

Q: Is it possible to deploy any one type of memory in computer for all purposes?

A: Actually, memory is used to stores the data.

Q: need code in C++ answer all parts Assume the Product structure is declared as follows: struct Produc...

A: I have solved the first 4 parts of the question, please post parts 5 to 7 in a separate post and I w...

Q: In this assignment, you are required to write a bash script, call it mycontainer.sh to do the follow...

A: The, answers are given below:

Q: Explain the benefits of hierarchial routing in terms of scale and administrative autonomy.Differenti...

A: Note: This question contains the multiple questions. According to the guidelines you will get the an...

Q: Printers today have many features that include improved quality, photo printing capabilities, digita...

A: Printers are one of the most important output devices of a computer. It is mainly used for printing ...

Q: Let B be a Boolean algebra. Show that (a) a ^0 = 0 (b) a V (a A b) = (c) a V (¬a A b) = a V b.

A: Click to see the answer

Q: Subject:Database Myid=18191103032 doing solve step bye step

A: It is used to implement database indexes In B+ tree leaf nodes denotes actual data pointers All leaf...

Q: In which of the following scenarios is it appropriate to apply a named range? a. When using COUNTIF ...

A:   The following Scenario is it appropriate to apply a named range. a)  In first scenario we can use ...

Q: TIME CLASS (Language: C++) - Write a time class named timeClass  - Write code to demonstrate that it...

A: Program: Filename: Main.java   import java.util.*; import java.lang.*; import java.io.*;   class Mai...

Q: Binary Search algorithm has an element given in sequential arrays. We have seen that at the O (logN)...

A: Objective of the question:- To write the pseudo-code of the binary search algorithm if there are mul...

Q: A robot is placed at the origin of a 2D coordinate plane (i.e. position (0, 0)). The robot is given ...

A: A coordinate plane is a two-dimensional plane formed by the intersection of a vertical line called y...

Q: Write a class named StockPrices . The class constructor should accept an array of stock prices as it...

A: Actually, c++ is powerful general purpose language.

Q: What code would you use to create a style sheet to specify 30-point blue arial heading and all other...

A: &lt;style&gt;h1{color: blue;font-size: 30px;font-family: Arial;}p {  line-height: 2;  color: blue;  ...

Q: 12) Write a program to (a) load the accumulator with the value AAH, and (b) compliment the ACC 2100 ...

A: Based on our rule, we should do the first question alone when multiple questions are posted. Please ...

Q: Q4: (Find the two lowest scores) Write a program that prompts the user to enter the number of studen...

A: GIVEN: Create a Java program that prompts the user to enter the number of students and each student’...

Q: Were locations A-M adequate, or did you need a larger sample to find the patterns?

A: Yes

Q: JAVA Please solve Question 2   public class Book{        //declaring a variable to store count of bo...

A: Actually, string is a sequence of characters.

Q: Write bash script which takes array as an input of size 10 bind its even indexes to accept even valu...

A: The, script has given below;

Q: Binary Tree Concepts 1.) Introduce a maximum priority queue using a.) A binary-tree based heap. Not ...

A: Program Plan:- 1. Initialize all the required header files. 2. Define all the required functions for...

Q: Q6: (Display patterns using loops) Use nested loops that display the following pattern in three sepa...

A: Pattern A  : Program in  C #include &lt;stdio.h&gt; int main() {    int i, j, rows;    printf("Enter...

Q: Problem 5 ( Suppose that your hash function resolves collisions using open addressing with double ha...

A: The, answer has given below;

Q: Write a modular program that analyzes a year’s worth of rainfall data. In addition to main, the prog...

A: Note: Programming language is missing in the question. So we will answer this program in C++. If you...

Q: discrete math

A: Note : As per the guidelines we are supposed to answer only one question , please repost other quest...

Q: Complete the following applied optimization word problem. Include a well-labeled figure, clearly def...

A: Actually, the given information is: To mail a package with the United States Postal service without ...