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

i\'m not sure how many questions i can ask so i\'ll just ask 3 questions, I hope

ID: 3626209 • Letter: I

Question

i'm not sure how many questions i can ask so i'll just ask 3 questions, I hope it’s not too much.
Question 1.
help design a grading program. the teacher will enter 10 grades. the program needs to determine the highest grade and then average and print out the grades on the screen.
You can do this whole task inside ‘main’() or you may use a function if you like. Be sure to use a loop that will prompt the teacher to enter each of the 10 grades. “enter grade 1: XX, Enter grade 2: XX”, at the end of the program, print out: “The highest grade entered was: XX, The average of all grades entered was:XX”

Question 2.
You are a psychologist who needs to provide a qualitive evaluation for IQ scores. Create a program that takes IQ scores and provies as output the following qualitive description:
Under 100 = Below Average
100-119 = Average
120-160 = Superior
Above 160 = Genius

Question 3.
Define a ‘class’ called fraction that has 2 private members that represent the numerator and denominator respectively. They will be represented as integers. Include a constructor and a ‘public’ void function called ‘print’ that prints out the fraction. (for example, if the numerator is 3 and the denominator is 5, ‘print’ provides as output 3/5.)include the class in a program that prints out the fraction 3/5.

thank you for any help you can provide :)

Explanation / Answer

#include<iostream>
using namespace std;

int main()
{
double min,max,sum=0;;
int i;
double avg;
double a[10];
cout << "Enter Grade 1 :" ;
cin >> a[0];
max = a[0];
sum = sum+a[0];
for(i=1; i<10; i++)
{
cout << "Enter Grade " << (i+1) << " :" ;
cin >> a[i];
if(a[i]> max) max = a[i];

sum = sum + a[i];
}
avg = sum/10;
cout << "The highest grade entered was: " << max<<endl;
cout << "The average of all grades entered was: " << avg <<endl;
          
system("pause");
return 0;
}

// QUESTION 2

#include<iostream>
using namespace std;

int main()
{
double IQ;

while(1)
{
        cout <<"Enter IQ Score :(-1 to end) " << endl;
        cin >> IQ;
        if(IQ < 0 ) break;
        if(IQ < 100)
        cout << "IQ is Below Avergage" <<endl;
                if(IQ > 100 && IQ < 119)
        cout << "IQ is Avergage" <<endl;
                        if(IQ > 120 && IQ < 160)
        cout << "IQ is Superior" <<endl;
                if(IQ > 160 )
        cout << "IQ is Genius" <<endl;


        }          
system("pause");
return 0;
}
            

// QUESTION 3

#include<iostream>
using namespace std;
class fraction
{
private:int a,b;
public: fraction()
{
        a =0; b= 1;
}
void print()
{
       cout << a << "/" << b << endl;
}     
fraction(int a1,int b1):a(a1),b(b1)
{

}    
};
int main()
{
fraction f1(3,5);
f1.print();
          
system("pause");
return 0;
}