Question: I need help with 7, so far i have this 6. Define a struct fruitType to store the following data about a fruit: Fruit name

 I need help with 7, so far i have this 6.

I need help with 7, so far i have this

Define a struct fruitType to store the following data about a fruit:

6. Define a struct fruitType to store the following data about a fruit: Fruit name (string), color (string), fat (int), sugar (int), and car- bohydrate (int). (1) Assume the definition of Exercise 6. Declare a variable of type fruitType to store the following data: Fruit name-banana, color, yellow, fat-1, sugar-15, carbohydrate-22. (2) 7. HNM in #include #include using namespace std; 789 6 7 8 9 10 11 12 13 struct fruitType { string fruitName; string color; int fat; int sugar; int carbs

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!