Question: In this lab, you use the pseudocode found in the figure below to add code to a partially created C + + program. When completed,
In this lab, you use the pseudocode found in the figure 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 then
if classRank then
output "Accept"
else
output "Reject"
endif
else
if testScore then
if classRank then
output "Accept"
else
output "Reject"
endif
else
if testScore then
if classRank then
output "Accept"
else
output "Reject"
endif
else
output "Reject"
endif
endif
endif
stop
Instructions
Task : Declare two integer variables named testScore and classRank.
Task : Write the interactive input statements to retrieve a students test score testScore and class rank classRank from the user of the program. Do not forget to prompt the user for the test score and class rank.
Execute the program by entering for the test score and for the class rank. Execute the program by entering for the test score and for the class rank.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
