Q CENGAGE | MINDTAP Using Flowcharts and Pseudocode to Write a Java Program ☐ c to Write a Java Program Y Ⓒ a Summary In

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Q CENGAGE | MINDTAP Using Flowcharts and Pseudocode to Write a Java Program ☐ c to Write a Java Program Y Ⓒ a Summary In

Post by answerhappygod »

Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 1
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 1 (138.89 KiB) Viewed 19 times
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 2
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 2 (118.25 KiB) Viewed 19 times
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 3
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 3 (111.38 KiB) Viewed 19 times
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 4
Q Cengage Mindtap Using Flowcharts And Pseudocode To Write A Java Program C To Write A Java Program Y A Summary In 4 (128.27 KiB) Viewed 19 times
All the instructions are included in the picture on the left.Please read them and provide corrections for what I need to do tofix what I already have listed. You can see the full program in themiddle of each picture and the errors I keep receiving on the rightside.
Q CENGAGE | MINDTAP Using Flowcharts and Pseudocode to Write a Java Program ☐ c to Write a Java Program Y Ⓒ a Summary In this lab, you 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 Declarations num original Number num calculatedAnswer input originalNumber not eof? No stop Yes This is the priming input. calculated Answer= original Number 2 output calculatedAnswer CollegeAdmission.java 1 /* Program Name: College Admission.java 2 Function: This program determines if a student will be admitted or rejected. 3 Input: Interactive 4 Output: Accept or Reject 5 */ 6 9 7 import java.util.Scanner; 8 public class College Admission 9 { 10 11 12 22 23 24 13 14 15 16 17 10 18 19 20 21 testScoreString=s.nextline(); 25 26 27 public static void main(String args[]) { 28 29 Scanner s = new Scanner(System.in); // Declare variables. String testScoreString; String classRankString; int testScore; int classRank; // Get input and convert to correct data type System.out.println("Enter test score: "); testScore= Integer.parseInt(testScoreString); System.out.println("Enter class rank"); classRankString =s.nextline(); classRank Integer.parseInt(classRankString); Q Search this course > Terminal College Admission.java :21: error: cannot fi nd symbol x testScoreString=s .nextline(); symbol: method ne xtline() location: variable s of type Scanner College Admission.java :25: error: cannot fi nd symbol classRankString =s.nextline(); symbol: method ne xtline() location: variable. s of type Scanner 2 errors Error: Could not find or load main class ollegeAdmission A-Z
Using Flowcharts and Pseudocode to Write a Java Program c to Write a Java Program Jal Ⓡ start This step gets all subsequent inputs. No else stop else input testScore, classRank if testScore >= 90 then endif if classRank >= 25 then output "Accept" output "Reject" calculatedAnswer= originalNumber 2 output calculated Answer else else input originalNumber if testScore >= 80 then if classRank >= 50 then output "Accept" endif output "Reject" if tortScoro -70 thon CollegeAdmission.java 30 31 32 33 34 35 36 37 29 38 20 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 // Test using admission requirements and print Accept or Reject if testScore >= 90 ) { if( classRank >= 25) { } else System.out.println("Accept"); System.out.println("Reject"); } else { if testScore >= 80 ) { if( classRank >= 50) } else { System.out.println("Accept"); System.out.println("Reject"); else if testScore >= 70 ) { if( classRank >=75) System.out.println("Accept"); System.out.println("Reject"); else > Terminal .nextline(); Ⓡ College Admission.java :21: error: cannot fi nd symbol testScoreString=s symbol: xtline() method ne location: variable s of type Scanner College Admission.java :25: error: cannot fil nd symbol classRankString =s.nextline(); X symbol: method ne xtline() location: variable s of type Scanner 2 errors Error: Could not find or load main class C ollege Admission A-Z
Using Flowcharts and Pseudocode to Write a Java Program c to Write a Java Program endif E L Ⓒ else if testScore >= 80 then stop if classRank >= 50 then output "Accept" endif else else endif output "Reject" if testScore >= 70 then endif if classRank >= 75 then output "Accept" else else endif endif output "Reject" output "Reject" Instructions 1. Study the pseudocode in picture above. 2. Declare the variables testScoreString and CollegeAdmission.java 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 FA 54 55 56 57 58 59 60 61 62 63 64 } else System.out.println("Reject"); } else { if testScore >= 80 ) { if( classRank >= 50 ) else } else { System.out.println("Accept"); System.out.println("Reject"); if testScore >= 70 ) { if( classRank >=75 ) System.out.println("Accept"); System.out.println("Reject"); else } } else System.out.println("Reject"); } // End of main() method 65} // End of College Admission class 66 > Terminal College Admission.java :21: error: cannot fi nd symbol testScoreString=s .nextline(); · X symbol: method ne xtline() location: variable. s of type Scanner College Admission.java :25: error: cannot fi nd symbol classRankString =s.nextline(); A symbol: method ne xtline() location: variable s of type Scanner 2 errors Error: Could not find or load main class C ollegeAdmission A-Z
Using Flowcharts and Pseudocode to Write a Java Program c to Write a Java Program Ⓒ 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 a student'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." Enter 87 for the test score and 60 for the class rank. 7. Execute the program by entering 60 for the test score and 87 for the class rank. Grading CollegeAdmission.java 37 38 39 40 41 42 43 44 45 46 47 47 48 49 50 50 51 51 52 52 53 54 54 55 56 57 58 59 60 61 62 } else System.out.println("Reject"); } else { if testScore >= 80 ) { if( classRank >= 50 ) else } else { System.out.println("Accept"); System.out.println("Reject"); if testScore >= 70 ) { if( classRank >=75) System.out.println("Accept"); System.out.println("Reject"); else } } else System.out.println("Reject"); } // End of main() method 63 64 65} // End of College Admission class 66 > Terminal College Admission.java :21: error: cannot fi nd symbol testScoreString=s .nextline(); X symbol: method ne xtline() location: variable s of type Scanner College Admission.java :25: error: cannot fil nd symbol classRankString =s.nextline(); A symbol: method ne xtline() location: variable s of type Scanner 2 errors Error: Could not find or load main class C ollegeAdmission A-Z
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply