PARTNEREN mm mm 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 System.out.print("patient's age: "); // feature I = > feature 2 System.out.print("Patient's zip code: "); > int zip = sc.nextInt(); while(String.valueof(zip).length() != 5) { System.out.print("Invalid zip code, enter valid zip code: "); zip = sc.nextInt (); } if(string.valueof (zip).length() == 5) break; System.out.print("Is our hospital \"in network\" for the patient's insurance?"); →→ String insurance = sc.next(); System.out.print("Patient pain level (1-10): "); -> 4 int pain = sc.nextInt(); while(pain < 1 || pain >10) { System.out.print("Invalid pain level, enter valid pain level (1-10): "); pain = sc.nextInt(); } if(pain >=1 && pain <=10) break; System.out.print("Patient temperature (in degress Fahrenheit): "); double temperature = sc.nextDouble(); => ig hore it →5
Image 1 is my code, and image 2 is how to calculate the score.
i need to write 2 methods (Inalready wrote the method 3)
Method 3: A method to collect the required patient information (age, zip code, insurance information, pain level, and temperature) and compute the priority score
-
-
takes one Scanner parameter
-
returns the computed score
Method 4: A method to calculate the priority score of the patient (this method should be called in the method 3)
-
takes five parameters, once for each patient feature
-
returns the computed score
-
-
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Thank you again!
Further with method 3 and four I need add one more method, assume I have multiple patients.
please provide a screenshot.
see the image for the requirements
Thank you.
Can u plz provide a screenshot of the code?