Write a program that uses a Scanner object to read in a string. Convert to upper case using .toUpperCase() Print out all of the string except for the first 2 characters, then ‘-‘, then the first two characters. Assume the string entered is large enough to not cause an runtime error. Below is a sample run. enter a string: smileILE-SM Start with this code: import java.util.Scanner;public class WordChange { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); System.out.print(“enter a string: “); // your code goes here }} Do not copy/paste the whole code, just write the missing code.
Which medications are indicated for triglyceride lowering in…
Which medications are indicated for triglyceride lowering in addition to an optimally dosed LDL-C lowering agent?
Complete this main method that asks the user to enter a numb…
Complete this main method that asks the user to enter a number of eggs as an integer. Convert the number of eggs into dozens and singles. Note that one dozen is 12 eggs. Be sure that there is a space between all words and numbers in your output. A sample run is below: enter the number of eggs needed: 2525 eggs is 2 dozen and 1 Start with this code: import java.util.Scanner;public class Eggs { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); System.out.println(“enter the number of eggs needed:”); // your code goes here }} Do not copy/paste the whole code, just write the missing code.
Which environmental modifications help prevent falls? (Selec…
Which environmental modifications help prevent falls? (Select all that apply)
What is the mechanism of action of hydralazine
What is the mechanism of action of hydralazine
Spirituality is a broader concept than religion and often in…
Spirituality is a broader concept than religion and often involves a search for purpose and what?
Which medications can cause heparin-induced thrombocytopenia…
Which medications can cause heparin-induced thrombocytopenia (HIT)?
Which legal document allows an individual to outline their t…
Which legal document allows an individual to outline their treatment preferences in the event of a terminal illness?
Patient SG comes to your office sharing that she plans to be…
Patient SG comes to your office sharing that she plans to become pregnant. She asks if you could review her medication list and discontinue medications that are not recommended in pregnancy?
Who is eligible for Social Security benefits? (Select all th…
Who is eligible for Social Security benefits? (Select all that apply)