Use this pseudocode to add code to the program below:
Start
input testScore,...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 11.02.2020 00:37 kianajackson9828
Use this pseudocode to add code to the program below:
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
/* Program Name: CollegeAdmission. java
Function: This program determines if a student will be admitted or rejected.
Input: Interactive
Output: Accept or Reject
*/
import javax. swing. JOptionPane;
public class CollegeAdmission
{
public static void main(String args[])
{
// Declare variables
// Get input and convert to correct data type
// Test using admission requirements and print Accept or Reject
if( testScore >= 90 )
{
if( classRank >= 25)
{
System. out. println("Accept");
}
else
System. out. println("Reject");
}
else
{
if( testScore >= 80 )
{
if( classRank >= 50 )
System. out. println("Accept");
else
System. out. println("Reject");
}
else
{
if( testScore >= 70 )
{
if( classRank >=75 )
System. out. println("Accept");
else
System. out. println("Reject");
}
else
System. out. println("Reject");
}
}
} // End of main() method
} // End of CollegeAdmission class
1. declare two string variables named testScoreString and classRankString
2. declare two integer vaiables named testScore and classRank
3. write the interactive input statements to retrieve a student's test score and class rank from the user of the program
4. write the statements to convert the string representation of a student's test score and class rank to the integer data type
5. compile and excute by entering 60 for the test score 87 for the class rank
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 20:00
Avirus enters a computer or network as code embedded in other software directly from another computer
Answers: 1
You know the right answer?
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 01.04.2020 18:02
![question](/tpl/images/cats/mir.png)
World Languages, 01.04.2020 18:02
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 01.04.2020 18:02
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 01.04.2020 18:02
![question](/tpl/images/cats/fizika.png)
Physics, 01.04.2020 18:02
![question](/tpl/images/cats/fizika.png)
Physics, 01.04.2020 18:02
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 01.04.2020 18:02
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/ekonomika.png)
Business, 01.04.2020 18:02
![question](/tpl/images/cats/biologiya.png)
Biology, 01.04.2020 18:02
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 01.04.2020 18:02