Answer:
<u>Output</u>
Enter first number:
1
Enter second number:
2
Enter third number:
3
Enter fourth number:
4
Average: 2.5
Explanation:
Below is the java program to calculate the average of four numbers:-
import java.util.Scanner;
public class Average {
public static void main(String[] args){
int a,b,c,d;
double average=0.0;
Scanner s=new Scanner(System.in);
System.out.println("Enter first number: ");
a=s.nextInt();
System.out.println("Enter second number: ");
b=s.nextInt();
System.out.println("Enter third number: ");
c=s.nextInt();
System.out.println("Enter fourth number: ");
d=s.nextInt();
average=(a+b+c+d)/4.0;
System.out.println("Average: "+average);
}
}
Answer:
The Python code is given below
Explanation:
# Get our input from the command line
import sys
N = int(sys.argv[2])
# Convert the list of strings into integers
numbers= []
for i in sys.argv[1].split(","):
if(i.isdigit()):
numbers.append(int(i))
# numbers now contains the list of integers
f = False
#Use for loop upto len(numbers)
for i in range(0,len(numbers)):
#Use "if" loop to check
if numbers[i] == N:
#Assign "True" to "f"
f = True
#Display "i"
print(i)
break
#Check "if" loop by assigning "false" to "f"
if f==False:
#Print "-1"
print("-1")
Answer:
n := length(A)
repeat
swapped := false
for i := 1 to n-1 inclusive do
<em> /* if this pair is out of order */</em>
if A[i-1] > A[i] then
<em> /* swap them and remember something changed */</em>
swap(A[i-1], A[i])
swapped := true
end if ⇒
end for
until not swapped
end procedure

Explanation:
This is pseudocode
Answer:
Digital Certificate is the correct answer of this question.
Explanation:
Digital certificates are always for encryption and identification for transmitting public keys.The concept of digital certificate is a data structure used for linking an authenticated person to a public key. It is used to cryptographically attach public key rights to the organization that controls it.
<u>For example</u>:- Verisign, Entrust, etc.
- An appendix to an electronic document that is used for authentication purposes.
- A digital certificate's most frequent use is to confirm that an user sending a message is who he or she appears to be, and provide the recipient with the means to encode a response.