Answer:
import java.util.Arrays;
import java.util.Scanner;
public class num4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("How many numbers? ");
int n = in.nextInt();
int []intArray = new int[n];
//Entering the values
for(int i=0; i<intArray.length;i++){
System.out.println("Enter the numbers");
intArray[i]=in.nextInt();
}
System.out.println(Arrays.toString(intArray));
int min =intArray[0];
for(int i =0; i<intArray.length; i++){
if(min>intArray[i]){
min = intArray[i];
}
}
System.out.println("The Minimum of the numbers is "+min);
}
}
Explanation:
- Using Java programming language
- Prompt the user for the number of values
- Using Scanner class receive and store in a variable
- Create an array of size n
- Using an for loop continuously ask the user to enter the integers
- Print the array of integers
- Using another for loop with an if statement, find the smallest element in the array of numbers
- Output the the smallest number
Answer:
The addition of binary numbers is done by adding the digits starting from the right side of the numbers, in the same way as we add two or more base 10 numbers. In binary addition, the place values are given as ones, twos, fours, eights, sixteens, etc.
Explanation:
Answer:
In Python:
Unit_Cost = 200
Cost50 = 50 * Unit_Cost
print("Cost of 50 items: Rs."+str(Cost50))
Explanation:
This initializes the unit cost to 200
Unit_Cost = 200
This calculates the cost of 50 of such items
Cost50 = 50 * Unit_Cost
This prints the calculated cost
print("Cost of 50 items: Rs."+str(Cost50))
Answer:
Decrease file size
Explanation:
This goes for almost every file you compress. If you compress it, you try to decrease the storage space it takes up as a way to make it more portable. After a compressed file is extracted, it does not have many effects on the state of the extracted file.
Data encryption is the name of the technology that uses mathematical algorithms to render information unreadable to those lacking the required key.
<h3>What is Data encryption technology?</h3>
This is a technology that helps to secure data by applying a technique known as cryptography. What this basically means is that a secret code (or key) is generated which would provide access to the cryptographically stored information, and failure to provide the correct key makes the data or information unreadable.
You can learn more about how data encryption works here brainly.com/question/9238983
#SPJ1