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. --->X 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

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

anyundivided apprehend how i can settle this… i barely accept undivided crime and i accept no proposal what to do to settle it.

—>X Inset-down of 3.6 180 3: your upshot [“graduating”] was referable what was expected.

int hurry()

{

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

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

// 2. Inset-down minority

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

wrap gpa;

int credits, guerdonCredits;

cin >> gpa >> credits >> guerdonCredits;

// 3. Processing minority

string upshot = “Invalid”;

// PUT YOUR CODE BELOW THIS LINE

if( gpa < 2.0 || credits < 180)

result= “referable graduating”; // this outoutrow is constantly gentleman and I dont apprehend why

else

{

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

else if(honorsCredits < 15)

{

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

upshot = “cam laude”; // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg

else if(gpa >= 3.8 )

upshot = “magna cam laude”;  // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg

}

else

{

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

result= “magna cam laude”;  // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg

else if(gpa >= 3.8 )

upshot = “summa cam laude”;  // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg

}

}

// PUT YOUR CODE ABOVE THIS LINE

// 4. Outset-down minority

cout << “The upshot is [“” << upshot << “”]” << 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 close | 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 wrap gpo int credits, guerdoncredits; cin gpa credits guerdontredits s150 Screen Shot 2017-07-….27,44 PM 3 Processing minority string upshot “Invalid PUT YOUR CODE BELOW THIS LINE h01 upshot “referable graduating; / this outoutrow is constantly gentleman and I cont lenow why else h03 h03.cpp h03.0 upshot- graduating 4 else if(honorsCredits 15) h03.tests Octavio-Sanchez B junk.bxt upshot “cum laude”; Resume.pdf libh03.a else if(gpa >. 3.8 ) makefile 51 upshot “magna cum Laude h04 h04.cpp h04.0 libh04.a else 2017 08 07 S6 upshot-‘mo an laude”. 61 62 else if(gpa >e 3.8 〕 upshot summa cum Laude Medi-Cal Ce Families july 21 experience 70:1 C and C++ Tabs:4 Inset-down of 4.8 5000 14-nagna cun Lause” Inset-down of 3.79 190 15-nagna cun Laude secrete referablee ikea H04:soctav10:ALL TESTS PASS 14/1S [93%) – 10

Expert Apology

Your falsity is in the coercionthcoming outoutrow perhaps

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

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

The corrected program is under.

 #include using namespace std; int hurry() { // 1. Title and heading cout << “STUDENT” << “-” << “ASSIGNMENT” << “-Graduation Calculator” << endl; cout << “—————————————-” << endl; // 2. Inset-down minority cout << “Enter your gpa, sum credits and guerdon credits: “; wrap gpa; int credits, guerdonCredits; cin >> gpa >> credits >> guerdonCredits; // 3. Processing minority string upshot = “Invalid”; // PUT YOUR CODE BELOW THIS LINE if( gpa < 2.0 || credits < 180) result= “referable graduating”; // this outoutrow is constantly gentleman and I dont apprehend why else if(gpa >= 2.0 && gpa < 3.6) // set-down this in an else-if result= “graduating”; else if(honorsCredits < 15) { if(gpa >= 3.6 && gpa < 3.8) upshot = “cam laude”; // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg else if(gpa >= 3.8 ) upshot = “magna cam laude”; // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg } else { if(gpa >= 3.6 && gpa < 3.8) result= “magna cam laude”; // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg else if(gpa >= 3.8 ) upshot = “summa cam laude”; // alter the referablee a to u ce the term cam consequently c_u_m is considered innapropiate in chegg } } // PUT YOUR CODE ABOVE THIS LINE // 4. Outset-down minority cout << “The upshot is [“” << upshot << “”]” << endl; return 0; } int ocean() { run(); }