What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; string LG; while ( i <= 2) { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl;
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QP string LG; 1 while ( i <= 2) { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl;
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit string LG; while ( i <= 2) { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl;
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num string LG; while ( i <= 2) { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl;
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; while ( i <= 2) { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl;
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; while ( i <= 2) //true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl;
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; while ( i <= 2) //true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade?
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) //true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) //true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") //false { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) //true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") //false { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) //true 4.0 { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") //false { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) //true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") //false { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade?
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // true { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // true { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true ”A” { 7.0 cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // true { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // true ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // true { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // false ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; GPA _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // false ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A
What is output line of the following C++ code? Please trace int i = 1, QP; DATA: 4, B, 3, A double credit, totCredit=0.0; double num = 0.0; GPA _i_ QPcredit totCredit num LG string LG; “B” while ( i <= 2) // false ”A” { cout<<"Class # "<<i<<"credit Letter Grade? "; cin >>credit>>LG; if (LG == "A") // { QP = 4; } else { QP = 3; } totCredit = totCredit + credit; num = num + credit * QP; i = i + 1; } double GPA = num / totCredit; cout<<"GPA = "<<GPA<<endl; Class # 1 credit Letter Grade? 4 B Class # 2 credit Letter Grade? 3 A GPA=