Question

In: Computer Science

Kids R Us Child Care Centers is creating an online parent portal that parents will access...

Kids R Us Child Care Centers is creating an online parent portal that parents will access with a username and password. Use a formula to create a username for each parent based on the following rules: • Lowercase first letter of first name. • Digit five of ID. • Uppercase first four letters of last name. • Last digit of phone number. • Number of characters in first name

Please show the formula used

Parent ID Parent Last Name Parent First Name Parent Phone Parent Username
100000 Ewing Levi (550) 726-7424
100001 Gillespie Vera (263) 579-3567
100002 Mccall Astra (897) 263-3526
100003 Woodward Constance (845) 953-5717
100004 Duke Keaton (289) 465-5356
100005 Stephenson Alana (693) 335-3919
100006 Guzman Cally (836) 183-4738
100007 Zimmerman Flavia (590) 994-9083
100008 Cooper Jameson (373) 497-3310

Solutions

Expert Solution

class UserName

{

public static void main(String [] args)

{

String UserName=""; //Initializing the string UserName with empty string.

String ParentFirstName="Gillespie";

String ParentLastName="Vera";

String ParentID="100001";

String ParentPhone="(263)579-3567";

UserName+=ParentFirstName.toLowerCase().charAt(0);   //Adding Lower case first letter of firstname

UserName+=ParentID.charAt(4);            //Adding fifth digit of ID

UserName+=ParentLastName.toUpperCase().substring(0,4);//Adding Uppercase first 4 letters of lastname

UserName+=ParentPhone.charAt(ParentPhone.length()-1); //Adding last digit of phone number

UserName+=ParentFirstName.Length(); //Adding number of characters in first name.

System.out.println("User Name is : "+UserName);

}

}

Output:


Related Solutions

Usernames Worksheet 11. Kids R Us Child Care Centers is creating an online parent portal that...
Usernames Worksheet 11. Kids R Us Child Care Centers is creating an online parent portal that parents will access with a username and password. Use a formula to create a username for each parent based on the following rules: • Lowercase first letter of first name. • Digit five of ID. • Uppercase first four letters of last name. • Last digit of phone number. • Number of characters in first name. Parent ID Parent Last Name Parent First Name...
Anushka (an Australian Tax resident) works as an employee for a child care centre, Brilliant Kids...
Anushka (an Australian Tax resident) works as an employee for a child care centre, Brilliant Kids Pty Ltd, on a permanent part-time basis while she runs her business as a day carer for her own customers. Meanwhile, she invested some of her extra cash in some shares on the ASX and in an Australian private company. Listed below is the summary of her earnings for the year ended 30 June 2020. Particulars $ Net Salary Received from Brilliant Kids for...
33. A nurse is providing teaching about home care to the parent of a child who...
33. A nurse is providing teaching about home care to the parent of a child who has scabies. Which of the following instructions should the nurse include in the teaching? a. wash the child’s hair with shampoo containing ketoconazole b. Treat everyone who came into close contact with the child c. Soak comb and brushes in boiling water for 10min. d. Apply petroleum jelly to the affected areas. 34. A nurse is providing teaching to the parents of a child...
The us centers for disease and prevention (CDC) estimated the per capita spending on health care...
The us centers for disease and prevention (CDC) estimated the per capita spending on health care to be $10,739 in 2017. Suppose that the population mean and population variance of per capital health care expenditure are 10,739 and 625 respectively. What is the probability that the sample mean from a random sample of size 1600 is within 0.5 of the population mean?
20. How does day care affect the bond of attachment between child and parents? 21. What...
20. How does day care affect the bond of attachment between child and parents? 21. What do all theories say emotions are linked with? 22. What is stranger anxiety and when does it occur? 23. What does research show about the relationship between early attachment and later emotional regulation of behavior?
US HEALTHCARE Managed Care For years, your parents had a traditional fee-for-service health insurance. They are...
US HEALTHCARE Managed Care For years, your parents had a traditional fee-for-service health insurance. They are now required to switch to a managed care product. They are very upset because they love their physicians. However, their physicians did tell them they had contracted with certain MCO's to provide services. You parents were still confused. Explain the managed care principle, and which program would enable them to use their practitioners.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT