1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vesna [10]
3 years ago
10

You are a psychologist who needs to provide a qualitative evaluation for IQ scores. Create a program that takes IQ scores (one a

t a time) 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. Output should be displayed as the following: "The entered IQ score of xyz is considered to be an assessment score based off of qualitative description." Where xyz is the score entered and assessment is Below Average, Average, Superior or Genius.
Computers and Technology
1 answer:
dsp733 years ago
4 0

Answer:

Check the explanation

Explanation:

#include <iostream>

#include <iomanip>

using namespace std;

int getIQ(); // return the score

void printEvaluation(int);

int main()

{

   int IQ = 0;

   IQ = getIQ();

   

   printEvaluation(IQ);

   return 0;

}

int getIQ()

{

   int score = 0;

   cout << "Please enter your IQ Score to receive your IQ Rating:\n";

   cin >> score;

   

   return score;

}

void printEvaluation(int aScore)

{

   cout << "IQ Score: " << aScore << " IQ Rating: ";

   

   if (aScore <= 100)

   {

       cout << "Below Average\n";

   }

   else if (aScore <= 119)

   {

       cout <<"Average\n";

   }

   else if (aScore <= 160)

   {

       cout << "Superior\n";

   }

   else if (aScore >= 160 )

   {

       cout << "Genius\n";

   }

}

You might be interested in
Create a class in JobApplicant.java that holds data about a job applicant. Include a name, a phone number, and four Boolean fiel
Amanda [17]

Answer:

// Here is JobApplicant.java

public class JobApplicant {   // class name

private String name;   // String type private data member/field to hold name of the applicant

private String phoneNum;  // String type private data member to hold phone number of the applicant

private boolean word;  // boolean private data member to check the word processing skill of applicant

private boolean spreadsheet;  // boolean private data member to check the spreadsheets skill of applicant

private boolean database;  // boolean private data member to check the database skill of applicant

private boolean graphics;  // boolean private data member to check the graphics skill of applicant

public JobApplicant(String name, String phNum, boolean wrd, boolean sprdsht, boolean db, boolean graph){  //parameterized constructor that accepts values for each of the fields

this.name = name;  

this.phoneNum = phNum;  

this.word = wrd;  

this.spreadsheet = sprdsht;

this.database = db;  

this.graphics = graph;  }  

public String getName() {  //accessor get method for name field

return name;  }  

public String getPhoneNum() {   //accessor get method for phoneNum field

return phoneNum;  }  

public boolean getWord() {   //accessor get method for word skill

return word;  }

public boolean getSpreadsheet() {   //accessor method for spreadsheet skill

return spreadsheet;  }

public boolean getDatabase() {   //accessor get method for database skill

return database;  }

public boolean getGraphics() {   //accessor get method for graphics skill

return graphics;   }  }

                     

Explanation:

// Here is the TestJobApplicants.java

public class TestJobApplicants {   // class name

public static void main(String[] args) {  //start of main() function

JobApplicant applicant1 = new JobApplicant("applicant1", "123", true, true, true, false);  //creates object of JobApplicant class named applicant1 and instantiate it by using constructor of JobApplicant. Here the name field is set to applicant1, phoneNum is 123, the skills word, spreadsheet and database is set to true while skill graphics is set to false

JobApplicant applicant2 = new JobApplicant("applicant2", "456", true, true, true, true);  //creates another object i.e. applicant2 of JobApplicant class and passes values of each field of the class to the constructor of class

JobApplicant applicant3 = new JobApplicant("applicant3", "789", true, false, false, true);  //creates another object for other applicant i.e. applicant23 of JobApplicant class and passes values for each field of the class using constructor of class

isQualified(applicant1);  //calls isQualified boolean method by passing object applicant1 to it in order to determine whether applicant is qualified for an interview

isQualified(applicant2);  //calls isQualified method to determine whether applicant2 is qualified for an interview

isQualified(applicant3); }   //calls isQualified method to determine whether applicant3 is qualified for an interview

public static boolean isQualified(JobApplicant applicant) {  //boolean method to determine if applicant is qualified for interview

 int skills = 0;  //initializes the skills count to 0

 boolean isQualified;  //boolean variable whose value determines if applicant is qualified for interview

 final int requireSkills = 3;  //at least 3 skills are required so the maximum value of skills is 3 and this is assigned to requireSkills variable

 if(applicant.getWord())  /*The applicant object is used to call method getWord() which returns the current value of word field (true/false) for the current applicant and if condition checks if applicant has word processing skills. */

  skills++;  //add 1 to the count of skills when above if condition evaluates to true

 if(applicant.getSpreadsheet())  //if applicant has spreadsheet skills

  skills++;  //add 1 to the count of skills

 if(applicant.getDatabase())  //if applicant has database skills

  skills++;  //add 1 to the count of skills

 if(applicant.getGraphics())  //if applicant has graphics skills

  skills++; //add 1 to the count of skills

 if(skills >= requireSkills){  //if the skills count is at least 3 or more

  isQualified = true;  //value of isQualified is set to true when above if condition evaluates to true which means the user is qualified for interview

System.out.println(applicant.getName()+ " is qualified for interview!");}  //displays this message if isQualified is true

 else  //if the value of skills is less than 3

 { isQualified = false;  // isQualified is set to false which means the user is not qualified for interview

System.out.println(applicant.getName()+" is not qualified for interview!");}  //displays this message if isQualified is false

  return isQualified;   }  } //returns the value of isQualified (true/false)

6 0
4 years ago
What is the difference between paper size and page margins in Word?
sergij07 [2.7K]

Answer:

Paper size refers to the size of the paper you will be printing your document on, while page margins refer to the outside area of a page that can be made bigger or smaller to fit content.

Launch the Page Setup dialog box from the Page Setup group; in the Margins section, enter the page margin values and click OK.

All the statements are correct.

Right-click and add to dictionary

Type the words onto the first page of the document, and click on the Header button to repeat it on all of the other pages

pictures shapes and clipart

none of the above

Explanation:

7 0
3 years ago
Which of the following views would you use to see your Web page while working on it?
brilliants [131]
D) Alt Tags thats the answer i think
8 0
3 years ago
In the lab, wireshark continued to capture data in the background until the:
Alex17521 [72]
In the lab, Wireshark continued to capture data in the background until the capture process was manually stopped later in the lab.
Wireshark is a packet analysis tools, it gets the information for traffic passing through a specific network node.

5 0
3 years ago
Linda and her mom want to start a company selling homemade brownies to large supermarket chains. To get started, they have creat
lianna [129]

Answer:

Peer to Peer Network

Explanation:

In a peer to peer network, the 'peers' are computer systems which are connected to each other via the Internet. Files can be shared directly between systems on the network without the need of a central server. In other words, each computer on a peer to peer network becomes a file server as well as a client.

The only requirements for a computer to join a peer-to-peer network are an Internet connection and a peer to peer software.

4 0
3 years ago
Other questions:
  • How do networks help protect data? -by preventing access by more than one person at a time -by restricting access to department
    11·2 answers
  • Microsoft ____ is the new web browser.
    13·2 answers
  • You've been asked to find the average of a range of numbers. Which of the following could you use to find the average of cells A
    9·1 answer
  • What is a common method for testing a spot weld?
    13·1 answer
  • What is the purpose of look up tables in spreadsheet software apex
    13·1 answer
  • What is the output of the following code? stackList stack; int x, y; x = 2; y = 3; stack.push(8); stack.push(x); stack.push(x +
    6·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    11·1 answer
  • Which part of the Word application window should the user go to for the following activities?
    14·1 answer
  • How does communication produce clarity and direction​
    13·1 answer
  • what is the worst-case big o running time for finding the maximum value in an array of size n by scanning from left to right and
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!