Question: c++ Write a C++ Program for your Community Supported Agriculture Farm (CSA) which delivers a box of fresh fruits and vegetables to your house once

c++
c++ Write a C++ Program for your Community Supported Agriculture Farm (CSA)

Write a C++ Program for your Community Supported Agriculture Farm (CSA) which delivers a box of fresh fruits and vegetables to your house once a week. In this Programming Project, you should define the class BoxOfProduce that contains exactly three bundles of fruits or vegetables. You can represent the fruits or vegetables as an array of data type string. Add accessor and mutator functions to get or set the fruits or vegetables stored in the array. Also write an output function that displays the complete contents of the box on the console After you have code outside the fuction, write in the main function that creates a BoxOfProduce with three items randomly selected from this list: Broccoli Tomato Kiwi Kale Tomatillo This list describe above should be stored in a text file that is read in by your program. For now you can assume that the list contains exactly five types of fruits or vegetables Do not worry if your program randomly selects duplicate produce for the three items. Next, the main function should display the contents of the box and allow the user to substitute any one of the five possible fruits or vegetables for any of the fruits or vegetables selected for the box. After the user is done with substitutions output the final contents of the box to be delivered. 1 U U

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!