I was given this assignment below and wrote the code below that as the solution. My instructor has been blasting me for writing inefficient code for my last several assignments, and rails at me for using strings as I do. She won't show me why its wrong but just states that it is wrong. I need to know why what I am writing here is so wrong and why. Where am I being so inefficient? I am also being blasted for the use of too many strings, what is wrong with using strings and why?The Assignment:Design a program that will determine based on the temperature and  amount of rain whether or not the sprinklers should be turned on.Note: The inputs and outputs below are for the specified data. When I test  the program you will be asked to type in different values during  program execution.There are 3 regions in the Garden: F-Flowers  V-Vegetable B-Berries. Report an INVALID garden choice if F, V or B is  not entered for the garden choice.If the temperature is above 40  degrees then based on the precipitation it can be watered. The Flower  Garden it should be watered when the precipitation is less than 0.15  inches. The Vegetable Garden should be watered when less than 0.375  inches and the Berries should be watered when there is less than 0.425  inches. It should state which garden is being watered and or not.Example program OutputsGarden Sprinkler SystemWhat is the temperature in degrees(F)? 78                             How much precipitation today(in inches)?.1                            The Garden Divisions are F-Flowers  V-Vegetable B-Berries             Which do you choose (FVB)? BGiven the temperature is 78 degrees and 0.100 inches of precipitationtoday.  The Berries in the Garden will be watered.       ORGarden Sprinkler SystemWhat is the temperature in degrees(F) ?32                             How much precipitation today(in inches)?0.2                           The Garden Divisions are F-Flowers  V-Vegetable B-Berries             Which do you choose (FVB)? V                                          Given the temperature is 32 degrees and 0.200 inches of precipitationtoday.  The Vegetables in the Garden will NOT be watered.My code answer# include <iostream># include <stdio.h># include <iomanip>using namespace std;int main(){    char Typ;    string Bry = berries;    string Veg = vegetables;    string Flr = flowers;    string  AllStr;    float Tmp1, Precip;    int Tmp, FlrW, VegW, BryW, x, Selct;    bool Cont = true;    AllStr = Flr + ,  +   Bry + ,  + and  + Veg;    Selct = 0;    x = 0;    cout << setprecision(3)<<fixed;    cout<< Garden Sprinkler System\n\n\n\n;    cout<< What is the temperature in degrees(F) ? ;    cin>>Tmp1;    cout<<How much precipitation today (in inches)? ;    cin>>Precip;    cout<< The Garden Divisions are F-Flowers  V-Vegetable B-Berries;    cout<<\nWhich do you choose (FVB)? ;    cin>> Typ;    Tmp = static_cast<int>(Tmp1);    for (x  = 1; x <= 4; x++){        if(x == 4 ){            cout<<\nToo many failed attempts.... exiting program;                cout<<\n\n\n\n\n\n\n\n\n\n\n\n\n\n(loser);            Cont = false;                break;        }        if (Typ == 'B' || Typ == 'b'){            Selct =  100;            break;        }        else if  (Typ == 'F' || Typ == 'f'){            Selct =  10;            break;        }        else if  (Typ == 'V' || Typ == 'v'){            Selct =  1;            break;        }        else {            cout<< \nThe value entered was an INVALID value!;            cout<< \nThe Garden Divisions are F-Flowers  V-Vegetable B-Berries;            cout<<\nWhich do you choose (FVB)? ;                cin>> Typ;        }        }    if (Cont == true){        if (Tmp > 40){            switch(Selct){                case 100:                    if (Precip < 0.425){                        cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and <<               Precip<< inches ;                        cout<< of precipitation today.;                        cout<< \nThe << Bry<< in the Garden will be watered.;                        break;                    }                    else{                        cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and << Precip << inches of;                        cout<< precipitation today.\nThe << Bry << in the Garden will NOT be watered.;                        break;                    }                case 10:                    if (Precip < 0.375){                        cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and << Precip<< inches ;                        cout<< of precipitation today.;                        cout<< \nThe << Flr << in the Garden will be watered.;                        break;                    }                    else{                        cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and << Precip << inches of;                        cout<< precipitation today.\nThe << Flr << in the Garden will NOT be watered.;                        break;                    }                case 1:                    if (Precip < 0.15){                        cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and << Precip<< inches ;                        cout<< of precipitation today.;                        cout<< \nThe << Veg<< in the Garden will be watered.;                        break;                    }                    else{                        cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and << Precip << inches of;                        cout<< precipitation today.\nThe << Veg<<  in the Garden will NOT be watered.;                        break;                    }                default:                    cout<< \n\n\n\nThough the temperature is << Tmp << degrees and << Precip << inches of;                    cout<< precipitation today.\nThe garden type selection was invalid and the << AllStr<<endl;                    cout<<in the Garden will NOT be watered.;            }        }        else{            cout<< \n\n\n\nGiven the temperature is << Tmp << degrees and << Precip << inches of;            cout<< precipitation.\nThe << AllStr<<  in the Garden will NOT be watered today.;            cout<<\nBecause it is too cold.;        }    }    getchar();    getchar();    return 0;}
Garden sprinkler system
c++;beginner;homework