Answer: Add more cells in series.
Explanation:
Adding more cells in series will add voltage which will increase the power.
idNumber = "123456"
idNo = input("Enter the unique ID number: ")
while idNumber != idNo:
print("This is not your ID number.")
idNo = input("Enter the unique ID number: ")
print("This is your ID number: ", idNo)
Output:
sh-4.3$ python3 main.py
Enter the unique ID number: 2345
This is not your ID number.
Enter the unique ID number: 4563
This is not your ID number.
Enter the unique ID number: 12345
This is not your ID number.
Enter the unique ID number: 123456
This is your ID number: 123456
Answer:
myString=myString.toUpperCase();
Explanation:
In java to change all characters of a string to upper case we use .toUpperCase() method.It will convert string to upper case.
Implementation in java.
import java.util.*;
class Solution
{
public static void main (String[] args) throws java.lang.Exception
{
try{
Scanner scr=new Scanner(System.in);
System.out.print("Enter a string:");
String myString=scr.nextLine();
myString=myString.toUpperCase();
System.out.println("string in upper case : "+myString);
}catch(Exception ex){
return;}
}
}
Output:
Enter a string:hello
string in upper case : HELLO
A; control and measurment