Answer:
Following are the python code to print the given pattern:
print('FOURTH') # using print method
for i in range(10): #using loop to count numbers
for j in range(10-i): # use loop to print asterisk value in reverse order
print("*", end=" ") #print value
print("") #using print method for space
Output:
Please find the attachment.
Explanation:
The description of the above python program can be described as follows:
- In the first line, use the print method, that print message "FOURTH".
- In the next line, two for loop is used in which the first loop counts the number to be print value, inside the loop another for loop is used.
- In this loop, it prints asterisk values in its reverse order and for new lines, it will use the print method with a single white space.
If the ladder is not stable, it is better to have someone hold the ladder in the bottom ( only someone who is strong and confident)
When accurately executed, the only cryptosystem known to be unbreakable is called: "One-time Pad" (Option D)
<h3>What is a Crypto System?</h3>
The one-time pad is a cryptographic approach that cannot be broken but needs the usage of a single-use pre-shared key that is not less than the message being delivered. A plaintext is coupled with a unique secret key in this manner.
It should be emphasized that in cryptography, a cryptosystem is a collection of cryptographic algorithms that are required to perform a certain security function, such as confidentiality. A cryptosystem is often composed of three algorithms: one just for key generation, one for encrypting, and one for deciphering.
Learn more about Crypto System:
brainly.com/question/15084188
#SPJ1
Full Question:
When correctly implemented, what is the only cryptosystem known to be unbreakable?
A) Transposition cipher
B) Substitution cipher
C) Advanced Encryption Standard
D) One-time Pad
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