subject

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
Answers: 3

Another question on Computers and Technology

question
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
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
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
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?
Use this pseudocode to add code to the program below:

Start

input testScore,...
Questions
question
Mathematics, 13.12.2019 23:31
question
Social Studies, 13.12.2019 23:31