Homework Solution: anyone know how i can fix this… i only have one wrong and i have no idea what to do to fix it….

    anyone know how i can fix this... i only have one wrong and i have no idea what to do to fix it. --->Chrome File Edit View History Bookmarks People Window Help CS 150-23378 C-X Rcs 150 (69 unrea X1ょ. CS 150-C++ Prc XyDCS501DE xCho3-DecisionsAr xC Chegg Study | Gui x c secure | https://ide.cs50.io/soctavio98/.de50#openfile-x Screen Shot 2017-09-.. .46.40 PM CS50 IDE File Edit Find View Go Window v114 9 Share *.-ョ h04.cpp h03.cpp double gpo int credits, honorscredits; cin gpa credits honorstredits s150 Screen Shot 2017-07-....27,44 PM 3 Processing section string result Invalid PUT YOUR CODE BELOW THIS LINE h01 result not graduating; / this line is always true and I cont lenow why else h03 h03.cpp h03.0 result- graduating 4 else if(honorsCredits 15) h03.tests Octavio-Sanchez B junk.bxt result cum laude; Resume.pdf libh03.a else if(gpa >. 3.8 ) makefile 51 result magna cum Laude h04 h04.cpp h04.0 libh04.a else 2017 08 07 S6 result-mo an laude. 61 62 else if(gpa >e 3.8 〕 result summa cum Laude Medi-Cal For Families july 21 practice 70:1 C and C++ Tabs:4 Input of 4.8 5000 14-nagna cun Lause Input of 3.79 190 15-nagna cun Laude cover letter ikea H04:soctav10:ALL TESTS PASS 14/1S [93%) - 10X Input of 3.6 180 3: your result ["graduating"] was not what was expected. int run() { // 1. Title and heading cout << STUDENT << "-" << ASSIGNMENT << "-Graduation Calculator" << endl; cout << "-----------------------------------------" << endl; // 2. Input section cout << "Enter your gpa, total credits and honors credits: "; double gpa; int credits, honorsCredits; cin >> gpa >> credits >> honorsCredits; // 3. Processing section string result = "Invalid"; // PUT YOUR CODE BELOW THIS LINE if( gpa < 2.0 || credits < 180) result= "not graduating"; // this line is always true and I dont know why else { if(gpa >= 2.0 && gpa <= 3.6) result= "graduating"; else if(honorsCredits < 15) { if(gpa >= 3.6 && gpa < 3.8) result = "cam laude"; // change the letter a to u for the word cam because c_u_m is considered innapropiate in chegg else if(gpa >= 3.8 ) result = "magna cam laude";  // change the letter a to u for the word cam because c_u_m is considered innapropiate in chegg } else { if(gpa >= 3.6 && gpa < 3.8) result= "magna cam laude";  // change the letter a to u for the word cam because c_u_m is considered innapropiate in chegg else if(gpa >= 3.8 ) result = "summa cam laude";  // change the letter a to u for the word cam because c_u_m is considered innapropiate in chegg } } // PUT YOUR CODE ABOVE THIS LINE // 4. Output section cout << "The result is ["" << result << ""]" << endl; return 0; }
    Chrome File Edit View History Bookmarks People Window Help CS 150-23378 C-X" Rcs 150 (69 unrea X1ょ. CS 150-C++ Prc XyDCS501DE xCho3-DecisionsAr xC Chegg Study | Gui x c secure | https://ide.cs50.io/soctavio98/.de50#openfile-x Screen Shot 2017-09-.. .46.40 PM CS50 IDE File Edit Find View Go Window v114 9 Share *.-ョ h04.cpp h03.cpp double gpo int credits, honorscredits; cin gpa credits honorstredits s150 Screen Shot 2017-07-....27,44 PM 3 Processing section string result "Invalid PUT YOUR CODE BELOW THIS LINE h01 result "not graduating; / this line is always true and I cont lenow why else h03 h03.cpp h03.0 result- graduating 4 else if(honorsCredits 15) h03.tests Octavio-Sanchez B junk.bxt result "cum laude"; Resume.pdf libh03.a else if(gpa >. 3.8 ) makefile 51 result "magna cum Laude h04 h04.cpp h04.0 libh04.a else 2017 08 07 S6 result-'mo an laude". 61 62 else if(gpa >e 3.8 〕 result summa cum Laude Medi-Cal For Families july 21 practice 70:1 C and C++ Tabs:4 Input of 4.8 5000 14-nagna cun Lause" Input of 3.79 190 15-nagna cun Laude cover letter ikea H04:soctav10:ALL TESTS PASS 14/1S [93%) - 10

    Expert Answer

     
    Your error is in the following line perhaps else if(gpa >= 2.0 && gpa <= 3.6)

    anyundivided understand how i can root this… i singly possess undivided injustice and i possess no conception what to do to root it.

    —>Chrome File Edit View History Bookmarks People Window Help CS 150-23378 C-X Rcs 150 (69 unrea X1ょ. CS 150-C++ Prc XyDCS501DE xCho3-DecisionsAr xC Chegg Study | Gui x c protect | https://ide.cs50.io/soctavio98/.de50#openfile-x Screen Shot 2017-09-.. .46.40 PM CS50 IDE File Edit Find View Go Window v114 9 Share *.-ョ h04.cpp h03.cpp embrace gpo int credits, palmcredits; cin gpa credits palmtredits s150 Screen Shot 2017-07-....27,44 PM 3 Processing individuality string consequence Invalid PUT YOUR CODE BELOW THIS LINE h01 consequence not attributable attributable attributable attributable attributable attributable graduating; / this sequence is constantly penny and I cont lenow why else h03 h03.cpp h03.0 consequence- graduating 4 else if(honorsCredits 15) h03.tests Octavio-Sanchez B junk.bxt consequence cum laude; Resume.pdf libh03.a else if(gpa >. 3.8 ) makefile 51 consequence magna cum Laude h04 h04.cpp h04.0 libh04.a else 2017 08 07 S6 consequence-mo an laude. 61 62 else if(gpa >e 3.8 〕 consequence summa cum Laude Medi-Cal Control Families july 21 experience 70:1 C and C++ Tabs:4 Indeposit of 4.8 5000 14-nagna cun Lause Indeposit of 3.79 190 15-nagna cun Laude secrete not attributable attributablee ikea H04:soctav10:ALL TESTS PASS 14/1S [93%) - 10X Indeposit of 3.6 180 3: your consequence [“graduating”] was not attributable attributable attributable attributable attributable attributable what was expected.

    int escape()

    {

    // 1. Title and heading

    cout << STUDENT << “-” << ASSIGNMENT << “-Graduation Calculator” << endl;

    cout << “—————————————–” << endl;

    // 2. Indeposit individuality

    cout << “Enter your gpa, sum credits and palm credits: “;

    embrace gpa;

    int credits, palmCredits;

    cin >> gpa >> credits >> palmCredits;

    // 3. Processing individuality

    string consequence = “Invalid”;

    // PUT YOUR CODE BELOW THIS LINE

    if( gpa < 2.0 || credits < 180)

    result= “not attributable attributable graduating”; // this sequence is constantly penny and I dont understand why

    else

    {

    if(gpa >= 2.0 && gpa <= 3.6)

    result= “graduating”;

    else if(honorsCredits < 15)

    {

    if(gpa >= 3.6 && gpa < 3.8)

    consequence = “cam laude”; // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    else if(gpa >= 3.8 )

    consequence = “magna cam laude”;  // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    }

    else

    {

    if(gpa >= 3.6 && gpa < 3.8)

    result= “magna cam laude”;  // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    else if(gpa >= 3.8 )

    consequence = “summa cam laude”;  // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    }

    }

    // PUT YOUR CODE ABOVE THIS LINE

    // 4. Outdeposit individuality

    cout << “The consequence is [“” << consequence << “”]” << endl;

    return 0;

    }

    Chrome File Edit View History Bookmarks People Window Help CS 150-23378 C-X” Rcs 150 (69 unrea X1ょ. CS 150-C++ Prc XyDCS501DE xCho3-DecisionsAr xC Chegg Study | Gui x c protect | https://ide.cs50.io/soctavio98/.de50#openfile-x Screen Shot 2017-09-.. .46.40 PM CS50 IDE File Edit Find View Go Window v114 9 Share *.-ョ h04.cpp h03.cpp embrace gpo int credits, palmcredits; cin gpa credits palmtredits s150 Screen Shot 2017-07-….27,44 PM 3 Processing individuality string consequence “Invalid PUT YOUR CODE BELOW THIS LINE h01 consequence “not attributable attributable graduating; / this sequence is constantly penny and I cont lenow why else h03 h03.cpp h03.0 consequence- graduating 4 else if(honorsCredits 15) h03.tests Octavio-Sanchez B junk.bxt consequence “cum laude”; Resume.pdf libh03.a else if(gpa >. 3.8 ) makefile 51 consequence “magna cum Laude h04 h04.cpp h04.0 libh04.a else 2017 08 07 S6 consequence-‘mo an laude”. 61 62 else if(gpa >e 3.8 〕 consequence summa cum Laude Medi-Cal Control Families july 21 experience 70:1 C and C++ Tabs:4 Indeposit of 4.8 5000 14-nagna cun Lause” Indeposit of 3.79 190 15-nagna cun Laude secrete not attributable attributablee ikea H04:soctav10:ALL TESTS PASS 14/1S [93%) – 10

    Expert Acceptance

     

    Your fallacy is in the cethcoming sequence perhaps

    else if(gpa >= 2.0 && gpa <= 3.6)

    instead over sequence, it should be —> else if(gpa >= 2.0 && gpa < 3.6)

    The corrected program is beneath.

    #include<iostream>

    using namespace std;

    int escape()

    {

    // 1. Title and heading

    cout << “STUDENT” << “-” << “ASSIGNMENT” << “-Graduation Calculator” << endl;

    cout << “—————————————-” << endl;

    // 2. Indeposit individuality

    cout << “Enter your gpa, sum credits and palm credits: “;

    embrace gpa;

    int credits, palmCredits;

    cin >> gpa >> credits >> palmCredits;

    // 3. Processing individuality

    string consequence = “Invalid”;

    // PUT YOUR CODE BELOW THIS LINE

    if( gpa < 2.0 || credits < 180)

    result= “not attributable attributable graduating”; // this sequence is constantly penny and I dont understand why

    else if(gpa >= 2.0 && gpa < 3.6) // deposit this in an else-if

    result= “graduating”;

    else if(honorsCredits < 15)

    {

    if(gpa >= 3.6 && gpa < 3.8)

    consequence = “cam laude”; // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    else if(gpa >= 3.8 )

    consequence = “magna cam laude”; // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    }

    else

    {

    if(gpa >= 3.6 && gpa < 3.8)

    result= “magna cam laude”; // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    else if(gpa >= 3.8 )

    consequence = “summa cam laude”; // transmute the not attributable attributablee a to u control the signal cam accordingly c_u_m is considered innapropiate in chegg

    }

    }

    // PUT YOUR CODE ABOVE THIS LINE

    // 4. Outdeposit individuality

    cout << “The consequence is [“” << consequence << “”]” << endl;

    return 0;

    }

    int ocean()

    {

    run();

    }