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

Hey everyone, need a little help! You are a psychologist who needs to provide a

ID: 3554583 • Letter: H

Question

Hey everyone, need a little help!

You are a psychologist who needs to provide a qualitative evaluation for IQ scores. Create a program that takes IQ scores and provides as output the following qualitative description:

Under 100

=

Below Average

100-119

=

Average

120-160

=

Superior

Above 160

=

Genius

Include 2 void functions titled getIQ and printEvaluation, each with an int argument.

The function getIQ should have a Reference parameter that gets the IQ score in getIQ and then passes the value back to be printed in main( ), and

printEvaluation should have a Value parameter.

The function getIQ should prompt the user for the IQ score, get the input from the user, and print the IQ score on the screen. The function printEvaluation should take the IQ score and print the qualitative evaluation on the screen.

Under 100

=

Below Average

100-119

=

Average

120-160

=

Superior

Above 160

=

Genius

Explanation / Answer

#include<iostream>

using namespace std;

void getIQ(int &IQ)
{
   cout << "Enter IQ Score: ";
   cin >> IQ;
   cout << "Your IQ Score is " << IQ << endl;
}

void printEvaluation(int IQ)
{
   if(IQ<100)
       cout << "You are Below Average";
   else if(IQ<120)
       cout << "You are Average";
   else if(IQ<=160)
       cout << "You are Superior";
   else
       cout << "You are Genius";
}

int main()
{
   int IQ;
   getIQ(IQ);
   printEvaluation(IQ);
   return 0;
}