Assuming the data was encrypted with YOUR public key, you'll need YOUR private key to decrypt it. That's answer e.
a and b are not solutions by themselves, of course you need to use the decryption algorithm, but a key goes with it.
c would be about symmetric encryption, but this is asymmetric, so different keys are used for encryption and decryption
d is possible, but it would mean anyone can decrypt it (after all the key is public), so then there's no point in encrypting it in the first place.
So e is the only logical answer.
Answer:
// program in java.
// package
import java.util.*;
// class definition
class Main
{// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object to read inputs
Scanner scr=new Scanner(System.in);
// variables
String name;
double price;
System.out.print("Enter item's name: ");
// read item's name
name = scr.next();
System.out.print("Enter item's price: ");
// read item's price
price= scr.nextDouble();
// print name
System.out.println("name of item is:"+name);
// print price
System.out.println("price of item is:"+price);
}catch(Exception ex){
return;}
}
}
Explanation:
Read name & price of item from user and assign it to variables "name" & "price" respectively with scanner object.Then print the name and price of item .
Output:
Enter item's name: Apple
Enter item's price: 100
name of item is:Apple
price of item is:100.0
Answer:
a
Explanation:
your answer is the first one