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.
#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;
}
Comments
Leave a comment