Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 22.06.2019 10:10, joanasprinkman2262
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, med69
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a. an advanced knowledge of physics and math b. an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
image
Computers and Technology, 23.06.2019 23:30, cam961
What are "open-loop" and "closed-loop" systems
Answers: 1
Do you know the correct answer?
In this lab, you use the pseudocode in figure below to add code to a partially created Java program....

Questions in other subjects: