Use the pseudocode below to add code to a partially created C++ program. When completed, college admissions officers should be able to use the C++ program to determine whether to accept or reject a student, based on his or her test score and class rank.
start
input testScore, classRank
if testScore >= 90 then
if classRank >= 25 then
output "Accept"
else
output "Reject"
endif
else
if testScore >= 80 then
if classRank >= 50 then
output "Accept"
else
output "Reject"
endif
else
if testScore >= 70 then
if classRank >= 75 then
output "Accept"
else
output "Reject"
endif
else
output "Reject"
endif
endif
endif
stop
Instructions in C++ (Please send answer in C++)
In the pseudocode above.
[comment]: <> (3. Write the statements to convert the string representation of a student’s test score and class rank to the integer data type (testScore and classRank, respectively).)
Please let me know if anything is required.
copyable code :
#include <iostream>
#include <string>
using namespace std;
int main()
{
string testScore_s,classRank_s;
//retrieving the student test score
cout<<"Please enter student Test score: ";
cin>>testScore_s;
//retrieving the student class rank
cout<<"Please enter student class rank: ";
cin>>classRank_s;
//converting the string representation of a student’s test score
and class rank to the integer data type
int testScore,classRank;
testScore=stoi(testScore_s);
classRank=stoi(classRank_s);
//program to say whether the student is accepted or rejected
if (testScore >= 90) //if test score is greater than or equal to
90 and classRank is greaterthan or equal to 25 then Accept the
student
{
if (classRank >= 25)
{
cout<<"Accept\n";
}
else //else reject the student
{
cout<<"Reject\n";
}
}
else if (testScore >= 80)//if test score is greater than or
equal to 80 and classRank is greaterthan or equal to 50 then Accept
the student
{
if (classRank >= 50)
{
cout<<"Accept\n";
}
else
{
cout<<"Reject\n"; //else reject the student
}
}
else if (testScore >= 70 )//if test score is greater than or
equal to 70 and classRank is greaterthan or equal to 75 then Accept
the student
{
if (classRank >= 75 )
{
cout<<"Accept\n";
}
else
{
cout<<"Reject\n"; //else reject the student
}
}
else
{
cout<<"Reject\n"; //else reject the student
}
return 0;
}
Sample output1:

Sample output2:

Use the pseudocode below to add code to a partially created C++ program. When completed, college...
In this lab, you use the pseudocode in figure below to add code
to a partially created Python program. When completed, college
admissions officers should be able to use the Python program to
determine whether to accept or reject a student, based on his or
her class rank.
Summary In this lab, you use the pseudocode in figure below to add code to a partially created Python program. When completed, college admissions officers should be able to use the Python...
In this lab, you add the input and output statements to a partially completed Python program. When completed, the user should be able to enter a year, a month, and a day. The program then determines if the date is valid. Valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31. Instructions Notice that variables have been declared for you. Write input statements to...
Write a complete C++ program that reads students names and their test scores from an input text file. The program should output each student’s name followed by the test scores and the relevant grade in an output text file. It should also find and display on screen the highest/lowest test score and the name of the students having the highest/lowest test score, average and variance of all test scores. Student data obtained from the input text file should be stored...
unctions with No Parameters Summary In this lab, you complete a partially prewritten Python program that includes a function with no parameters. The program asks the user if they have preregistered for art show tickets. If the user has preregistered, the program should call a function named discount() that displays the message "You are preregistered and qualify for a 5% discount." If the user has not preregistered, the program should call a function named noDiscount() that displays the message "Sorry,...
Write a program in C++ Lightening Lanes Case Study Problem Statement On Tuesday afternoons, Lightening Lanes Bowling Alley runs a special class to teach children to bowl. Each lane has an instructor who works with a team of four student bowlers and instructs them as they bowl three lines (games). The management of Lightening Lanes has asked you to develop a program that will report each student’s 3-game average score and compare it to the average score they bowled the...
C++ Write a program that reads students’ names followed by their test scores from the given input file. The program should output to a file, output.txt, each student’s name followed by the test scores and the relevant grade. Student data should be stored in a struct variable of type StudentType, which has four components: studentFName and studentLName of type string, testScore of type int and grade of type char. Suppose that the class has 20 students. Use an array of...
Please help me I need someone to help me with this program in C# please Write a program named Admission for a college’s admissions office. The user enters a numeric high school grade point average (for example, 3.2) and an admission test score. Display the message Accept if the student meets either of the following requirements: A grade point average of 3.0 or higher, and an admission test score of at least 60 A grade point average of less than...
In this lab, you complete a partially written Java program that includes two methods that require a single parameter. The program continuously prompts the user for an integer until the user enters 0. The program then passes the value to a method that computes the sum of all the whole numbers from 1 up to and including the entered number. Next, the program passes the value to another method that computes the product of all the whole numbers up to...
In this lab, you complete a partially written Java program that includes two methods that require a single parameter. The program continuously prompts the user for an integer until the user enters 0. The program then passes the value to a method that computes the sum of all the whole numbers from 1 up to and including the entered number. Next, the program passes the value to another method that computes the product of all the whole numbers up to...
Look at this partial class definition, and then answer questions a - b below: Class Book Private String title Private String author Private String publisher Private Integer copiesSold End Class Write a constructor for this class. The constructor should accept an argument for each of the fields. Write accessor and mutator methods for each field. Look at the following pseudocode class definitions: Class Plant Public Module message() Display "I'm a plant." End Module...