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

(Solved) : 2 State Limitations Data Highway System Attributes Advanced Distributed Control System Hel Q30652158 . . . .(Solved) : 2 State Limitations Data Highway System Attributes Advanced Distributed Control System Hel Q30652158 . . . .

<p><img alt="2. State the limitations of the data highway system and what attributes of the advanced distributed control system help to overcome these." src="https://media.cheggcdn.com/media%2F86a%2F86a55697-2132-4ae3-aa6e-276e7cd2ea99%2FphpAs4svi.png" style="height:96px;width:1024px;" aria-describedby="d3f"/></p>2. State the limitations of