Input course code or Enter to quit Grade in COP1000 is 92% Grade in MAT1000 is 80% Grade in PHY1000 is 64% Grade in ETH1000 is 85% Grade in COM1000 is 78% Current term average is 79.8% Worst course is PHY1000 : 64% Dropped PHY1000

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
icon
Related questions
Question
Input course code or Enter to quit COP1000
Grade in COP1000 as % 92
Input course code or Enter to quit MAT1000
Grade in MAT1000 as % 80
Input course code or Enter to quit PHY1000
Grade in PHY1000 as % 64
Input course code or Enter to quit ETH1000
Grade in ETH1000 as % 85
Input course code or Enter to quit COM1000
Grade in COM1000 as % 78
Input course code or Enter to quit
Grade in COP1000 is 92%
Grade in MAT1000 is 80%
Grade in PHY1000 is 64%
Grade in ETH1000 is 85%
Grade in COM1000 is 78%
Current term average is 79.8%
Worst course is PHY1000 :
64%
Dropped PHY1000
Here are my revised grades...
Grade in 92 is 92%
Grade in 80 is 80%
Grade in 85 is 85%
Grade in 78 is 78%
Revised term average is 83.8%
Transcribed Image Text:Input course code or Enter to quit COP1000 Grade in COP1000 as % 92 Input course code or Enter to quit MAT1000 Grade in MAT1000 as % 80 Input course code or Enter to quit PHY1000 Grade in PHY1000 as % 64 Input course code or Enter to quit ETH1000 Grade in ETH1000 as % 85 Input course code or Enter to quit COM1000 Grade in COM1000 as % 78 Input course code or Enter to quit Grade in COP1000 is 92% Grade in MAT1000 is 80% Grade in PHY1000 is 64% Grade in ETH1000 is 85% Grade in COM1000 is 78% Current term average is 79.8% Worst course is PHY1000 : 64% Dropped PHY1000 Here are my revised grades... Grade in 92 is 92% Grade in 80 is 80% Grade in 85 is 85% Grade in 78 is 78% Revised term average is 83.8%
Expert Solution
Step 1 C++code for given output

C++ code for the given output

#include <iostream>

using namespace std;

int main() {
    int x,y,z,a,b;
    double average,final_average;
    
    cin>>x>>y>>z>>a>>b;
    cout<<"Grade in COP1000 is "<<x<<"%"<<endl;
    cout<<"Grade in MAT1000 is "<<y<<"%"<<endl;
    cout<<"Grade in PHY1000 is "<<z<<"%"<<endl;
    cout<<"Grade in ETH1000 is "<<a<<"%"<<endl;
    cout<<"Grade in COM1000 is "<<b<<"%"<<endl;
    
    average=((x+y+z+a+b)/5);
    cout<<"Current term average is "<<average<<"%"<<endl;
    cout<<"Worst course is PHY1000 "<<z<<"%"<<endl;
    cout <<"Dropped PHY1000"<<endl;
    cout<<"Here is my revised grades "<<endl;
    
    cout<<"Grade in COP1000 is "<<x<<"%"<<endl;
    cout<<"Grade in MAT1000 is "<<y<<"%"<<endl;
    cout<<"Grade in ETH1000 is "<<a<<"%"<<endl;
    cout<<"Grade in COM1000 is "<<b<<"%"<<endl;
    
    final_average= ((x+y+a+b)/4);
    cout<<"Revised term average "<<final_average<<"%"<<endl;
}

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Troubleshooting
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage