subject

In this lab, you use the pseudocode in figure below to add code to a partially created Java program. When completed, college admissions officers should be able to use the Java program to determine whether to accept or reject a student, based on his or her class rank.

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
Instructions

Study the pseudocode in picture above.

Write the interactive inputstatements to retrieve:

A student’s test score (testScoreString)

A student's class rank (classRankString)

Write the statements to convert the string representation of a student’s test score and class rank to the integer data type (testScoreand classRank, respectively).

The rest of the program is written for you.

Execute the program by clicking the "Run Code" button at the bottom and entering 87for the test score and 60 for the class rank.

Run the program again by entering 60 for the test score and 87 for the class rank.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
The value of sin(x) (in radians) can be approximated by the alternating infinite series create a function (prob3_2) that takes inputs of a scalar angle measure (in radians) and the number of approximation terms, n, and estimates sin(x). do not use the sin function in your solution. you may use the factorial function. though this can be done without a loop (more efficiently), your program must use (at least) one. you may find the mod() function useful in solving the problem.
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
How to unblock on chrome book? ?
Answers: 1
You know the right answer?
In this lab, you use the pseudocode in figure below to add code to a partially created Java program....
Questions
question
Mathematics, 11.05.2021 20:10
question
English, 11.05.2021 20:10
question
Mathematics, 11.05.2021 20:10
Questions on the website: 13722363