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
-
-
![18
19
20
21
22
23
24
25
26
27
28
29
30
NNNNI
33
34
35
www
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
public static int priorityScore(Scanner sc) {
System.out.print("Patient's age: "); 기
int age = sc.nextInt();
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()
break;
feature I
feature 2
==
}
5)
System.out.print("Is our hospital \"in network\" for the patient's insurance? "); →→
String insurance = sc.next();
->4
System.out.print("Patient pain level (1-10): ");
int pain = sc.nextInt();
if (pain >=1 && pain <=10)
break;
while(pain < 1 || pain >10) {
System.out.print("Invalid pain level, enter valid pain level (1-10): ");
pain = sc.nextInt ();
System.out.print("Patient temperature (in degress Fahrenheit): "); →
double temperature= sc.nextDouble();
- ig hore it](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6c680976-d041-43f6-b2b7-59630778639d%2Fb21c5afe-b145-4336-8c87-712ec54a691d%2Farap4ek_processed.jpeg&w=3840&q=75)
![Each patient starts out with a base score of 100, which then is increased or decreased based on the inputted
information as follows:
• If the age of the patient is a child (younger than 12 years old) or a senior citizen (at least 75 years old), add 50
to their score.
• If the first digit of their zip code is the same as the first digit of the hospital's zip code, add 25 to their score. If
the second digit of their zip code also matches the second digit of the hospital's zip code, add another 15 to
their score.
o NOTE: If the first digit of each zip code doesn't match, then it doesn't matter whether the second digits
of each zip code match - no change should be made to the patient's priority score.
• If the hospital is "in-network" for the patient's medical insurance, add 50 to their score.
• Take the patient's reported pain level, multiply it by 10, and add it to their score.
• If the patient's temperature is above 99.5 degrees Fahrenheit, add 8 to their score.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6c680976-d041-43f6-b2b7-59630778639d%2Fb21c5afe-b145-4336-8c87-712ec54a691d%2F3iwtt6g_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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
![6. A method to print out the overall statistics for the day
o takes two parameters-- the number of patients and the maximum score
o no return value
J:
ided in your Workspace)](https://content.bartleby.com/qna-images/question/6c680976-d041-43f6-b2b7-59630778639d/9e7f5879-7479-4882-82e0-6d1cdbc79d10/dhr1wzl_thumbnail.jpeg)
Thank you.
Can u plz provide a screenshot of the code?
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)