Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help in JAVA This method moved all profiles of already twice vaccinated people at the end of the Database. It returns the number of
need help in JAVA
This method moved all profiles of already twice vaccinated people at the end of the Database.
It returns the number of people who have already been vaccinated twice.
public int moveDoneToEnd(boolean secondAdministered) {
//complete code here
//THIS IS WHAT I CURRENTLY HAVE PLEASE ADD //TO IT
if(secondAdministered == true) {
return
}
}
EXTRA INFORMATION:
Example of a Profile in the Database:
public DocProfile(String Firstname, String Lastname, int dob, int medCondition, int firstDose, int secDose, boolean secondAdministered) {}
EXAMPLE OF PROFILE I CREATED THERE ARE 7 BUT THIS IS 1 OF THEM:
DocProfile profile1 = new DocProfileDB("Brady", "Tom", 20010811, 1, 20210505, 20210605, true);
Profiles that do have second Dose administered are 5
DO NOT USE **CHARAT**
IF YOU NEED MORE INFORMATION LET ME KNOW
DO NOT TURN IN BLANK ANSWER I WILL DISLIKE THE QUESTION AND REPORT YOU
PLEASE ADD OR JUST REDO THE CODE IF MY VERSION IS INCORRECT AND PLEASE EXPLAIN WHY THAT IS THE ANSWER SO I CAN UNDERSTAND BETTER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started