Answer to Question #325791 in C++ for Rille

Question #325791

Create a c++ program that let the user input his/here grade on the following subjects: Programming, web application, oral communication, multimedia and physics and calculate the average.


Note: the program must also display/output the subjects will grades from the user and the average.

1
Expert's answer
2022-04-08T03:48:05-0400
#include <iostream>
using namespace std;


int main() {
    int prog, web, oral, mmedia, phys, avg;


    cout << "Eter your grade on Programming: ";
    cin >> prog;
    cout << "Enter your grade on Web application: ";
    cin >> web;
    cout << "Enetr your grade on Oral communication: ";
    cin >> oral;
    cout << "Enter your grade on Multimedia: ";
    cin >> mmedia;
    cout << "Enetr your grade on Physics: ";
    cin >> phys;


    avg = (prog + web + oral + mmedia + phys) / 5;


    cout << endl;
    cout << "Your grade on Programming is " << prog << endl;
    cout << "Your grade on Web application is " << web << endl;
    cout << "Your grade on Oral communication is " << oral << endl;
    cout << "Your grade on Multimedia is " << mmedia << endl;
    cout << "Your grade on Physics is " << phys << endl;
    cout << "Your average grade is " << avg << endl;

    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS