cp.txt - #include<iostream> using namespace std float main\/Quiz float Q1 Q2 Q3 Q4 Q5 Qavg cout <\"Enter the marks of Q1 out of 20 cin > Q1 cout <\"Enter

cp.txt - #include<iostream> using namespace std float...

This preview shows page 1 out of 1 page.

#include<iostream> using namespace std; float main(); //Quiz { float Q1, Q2, Q3, Q4, Q5, Qavg; cout << "Enter the marks of Q1 out of 20:"; cin >> Q1; cout << "Enter the marks of Q2 out of 30:"; cin >> Q2; cout << "Enter the marks of Q3 out of 30:"; cine Q3; cout << "Enter the marks of Q4 out of 20:"; cin >> Q4; cout << "Enter the marks of Q5 out of 10:"; cin >> Q5; Qavg = (Q1 + Q2 + Q3 + Q4 + Q5) / 110 * 30; cout << "Total average marks of quiz is:"; cout << Qavg << endl; //Assignment float Ass1, Ass2, Ass3, Ass4, Ass5, aavg;
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '18
  • Zia Ul Rehman
  • Qavg

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture