Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help. this is confusing. use the flowchart and pseudocode found in the figure below to add code to a partially created Java program.

I need help. this is confusing.

use the flowchart and pseudocode found in the 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 test score and 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

Declare the variables testScoreString and classRankString.

  1. Write the interactive input statements to retrieve:
  • A students test score (testScoreString)
  • A student's class rank (classRankString)
  • Write the statements to convert the string representation of a students test score and class rank to the integer data type (testScore and classRank, respectively).
  • The rest of the program is written for you.
  • Execute the program by clicking "Run Code." Enter87for the test score and60for the class rank.
  • Execute the program by entering60for the test score and87for the class rank
  • Step by Step Solution

    There are 3 Steps involved in it

    Step: 1

    blur-text-image

    Get Instant Access to Expert-Tailored Solutions

    See step-by-step solutions with expert insights and AI powered tools for academic success

    Step: 2

    blur-text-image

    Step: 3

    blur-text-image

    Ace Your Homework with AI

    Get the answers you need in no time with our AI-driven, step-by-step assistance

    Get Started

    Recommended Textbook for

    Pro Android Graphics

    Authors: Wallace Jackson

    1st Edition

    1430257857, 978-1430257851

    More Books

    Students also viewed these Programming questions