Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Instruction: a) Do not delete anything from this page. You have to submit this d

ID: 3664516 • Letter: I

Question

Instruction: a) Do not delete anything from this page. You have to submit this doc as your lab 4

Write a simple program in c++

#include <iostream>

using namespace std;

that will compute take a student grade in numeric form and display the related Alphabet that matches the numeral. As an example: my input will be called “result” if (result >= 75) cout should indicate "Passed: Grade A else if (result >= 60) cout should indicate Passed: Grade B else if (result >= 45) cout should indicate Passed: Grade B else cout should indicate fail b) You have to provide all code, screen should and your output.

Explanation / Answer

#include<iostream.h>

#include<conio.h>

int main()

{

int result;

cout<<“enter the result”;

void grade(result);

if(result>=75)

{

cout<<“passed:grade A”;

}

elseif(result>=60)

{

cout<<“passed:grade B”;

}

elseif(result>=45)

{

cout<<“passed:grade C”;

}

else

{

cout<<“failed”;

}

return 0;

}