Use this pseudocode to add code to the program below:
Start
input testScore,...
Computers and Technology, 11.02.2020 00:37, kianajackson9828
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
Answers: 3
Computers and Technology, 22.06.2019 06:30, westjayson69
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
Computers and Technology, 22.06.2019 14:40, coryowens44
For this assignment you have to write a c program that will take an infix expression as input and display the postfix expression of the input. after converting to the postfix expression, the program should evaluate the expression from the postfix and display the result. what should you submit? write all the code in a single file and upload the .c file. compliance with rules: ucf golden rules apply towards this assignment and submission. assignment rules mentioned in syllabus, are also applied in this submission. the ta and instructor can call any students for explaining any part of the code in order to better assess your authorship and for further clarification if needed. problem: we as humans write math expression in infix notation, e. g. 5 + 2 (the operators are written in-between the operands). in computer's language, however, it is preferred to have the operators on the right side of the operands, ie. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix write a program that takes an "infix" expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % ( example infix expression: (7-3)/(2+2) postfix expression: 7 3 2 2 result: rubric: 1) if code does not compile in eustis server: 0. 2) checking the balance of the parenthesis: 2 points 3) incorrect postfix expression per test case: -2 points 4) correct postfix but incorrect evaluation per test case: -i points 5) handling single digit inputs: maximum 11 points 6) handling two-digit inputs: 100 percent (if pass all test cases)
Answers: 3
Mathematics, 16.08.2020 01:01
Mathematics, 16.08.2020 01:01
Computers and Technology, 16.08.2020 01:01
Mathematics, 16.08.2020 01:01