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, 21.06.2019 21:00
Is it ok to use a does red wine clean the inside of a computer true or false
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
You know the right answer?
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 13.12.2019 23:31
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/fizika.png)
Physics, 13.12.2019 23:31
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 13.12.2019 23:31
![question](/tpl/images/cats/istoriya.png)
History, 13.12.2019 23:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.12.2019 23:31
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.12.2019 23:31