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, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
You know the right answer?
Use this pseudocode to add code to the program below:

Start

input testScore,...
Questions
question
Mathematics, 03.07.2020 16:01
Questions on the website: 13722360