Answer:
The corrected code is as follows:
import java.util.Scanner;
public class U2_L4_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str1 = scan.nextLine();
String str2 = str1;
str1 = str1.toUpperCase();
System.out.println(str1);
System.out.println(str2);
}
}
Explanation:
This corrects the scanner object
Scanner scan = new Scanner(System.in);
This line is correct
String str1 = scan.nextLine();
This copies str1 to str2
String str2 = str1;
This converts str1 to upper case
str1 = str1.toUpperCase();
This prints str1
System.out.println(str1);
This prints str2
System.out.println(str2);
The odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is zero (0).
<h3>What are even numbers and odd numbers?</h3>
The even numbers can be found in a list because they are divisible by two and the remainder of this equation is always zero (0).
Conversely, odd numbers are those that cannot be divided exactly into exact entire numbers (e.g., 3, 5, etc).
The odd numbers in a list can be calculated by the equation ON (odd numbers): n/2 × [f + g], where 'f' is the first number and 'g' is the last number.
In conclusion, the odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is 0.
Learn more about odd numbers here:
brainly.com/question/2263958
#SPJ1
Common input devices include the keyboard, image scanner, and integrated video cameras. These also include the microphone, mouse, joystick controller, gamepad or joypad, webcam, digital pen, and others. Input devices are computer hardware used to control signals and provide data to a computer or an information appliance.
Answer:
C. The source code has to be translated into object code.
Answer:
Explanation:
Network Access Control is needed to make sure that only set of verified users access the network.
It makes sure that the users are authenticated and only set of some verified users have access to network.
Set of NAC solutions like Impulse SafeConnect, Extreme Networks, ExtremeControl, Auconet BICS, ForeScout CounterACT, Pulse Policy Secure could be installed in the system which along with basic profiling will make sure authenticated access to the network.
Other than this basic encryption-decryption algorithm can be used in this regard. Network components could use encryption algorithms like RSA and DES. These algorithms will make sure that the information from database side is well encrypted. Once that information goes to the network component. They can decrypt the encryption by generating relevant key using the same algorithm.
This will only allow authentic users to access information and also it will stop the leakage of information in between the transmission because of encryption.