Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (10 points) Write a Java program that reads two lines from Console. // This program reads two lines from Console. import java.util.Scanner; public
2. (10 points) Write a Java program that reads two lines from Console. // This program reads two lines from Console. import java.util.Scanner; public class Q2 { public static void main(String ( ) args) { Scanner obj = new Scanner(System.in); String first%;B // save the first line into this variable String second; // save the second line into this variable // FILL THIS PART } } System.out.println(first); System.out.println(second); 4. Conditions (20 Points) Write a java program that accepts a white blood cell count (WBC) from the user and prints out to the screen if it is lacking or sufficient. If the WBC is more than or equal 4500 then it is SUFFICIENT, otherwise, it is a LACKING. import java.util.Scanner; public class Q4 { public static void main(String[] args) { int WBC = 0 ; Scanner input = new Scanner(System.in); System.out.print ("Enter WBC: "); //Accept user input } } //Print SUFFICIENT if more than or equal 4500, otherwise print //LACKING
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