Course Solutions Uncategorized (Solved) : Change Program C C Include Include Include Using Namespace Std Define Nc 4 Define Ns 10 V Q36057857 . . . .

(Solved) : Change Program C C Include Include Include Using Namespace Std Define Nc 4 Define Ns 10 V Q36057857 . . . .

 

Change this program from C to C++.

#include <iostream>
#include<cmath>
#include<iomanip>
using namespace std;

#define NC 4
#define NS 10

void displaymenu() {
   printf(“1. Student’s gradesn”);
   printf(“2. Student’s averagen”);
   printf(“3. Course’s gradesn”);
   printf(“4. Course’s averagen”);
   printf(“5. Student’s statisticsn”);
   printf(“6. Course’s statisticsn”);
   printf(“7. First ranked student in a givencoursen”);
   printf(“8. First ranked studentn”);
   printf(“9. Exitn”);
}

void studentGrade(int matrix[NS][NC]) {
   int stuNo;
   printf(“nPlease enter the student for whom you wantto see the grades: “);
   scanf(“%d”, &stuNo);
   if (stuNo > 0 && stuNo < 11) {
       printf(“Below are the grades forstudent %dn”, stuNo);
       for (int i = 0; i < NC; i++) {//looping through all the courses for this

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post