Answer:
I'll happy to help
Explanation:
Please make your clear. I couldn't understand!
Answer:
import java.util.Scanner;
public class DashLine {
public static void main(String[] args) {
// Declaring variables
int n;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
// Getting the input entered by the user
System.out.print("Enter a number :");
n = sc.nextInt();
// calling the method by passing the user entered input as argument
dashedLine(n);
}
//This method will print the dashed line for number greater than zer
private static void dashedLine(int n) {
if (n > 0) {
for (int i = 1; i <= n; i++) {
System.out.print("-");
}
System.out.println();
}
}
}
Explanation:
Answer:
Being nice to others and being respectful. Acting appropriately and with respect for you and others.
Explanation:
☆Hope this helps!☆
I would like to say that it was D. If I am not correct, try asking this in history.
Answer:
Hi!
The answer to:
a. 6 bits.
b. 9 bits.
c. 26 bits.
Explanation:
a. For the states of the U.S.A, you need 50 or more combinations to represents each element.
<u>If you use 6 bits, the possible combinations are 2⁶ = 64. </u>
b. For days in a year, you need 365 or more combinations to represents each element.
<u>If you use 9 bits, the possible combinations are 2⁹ = 512.
</u>
c. For inhabitants of California, you need 36,457,549 or more combinations to represents each element.
<u>If you use 26 bits, the possible combinations are 2²⁶ = 67,108,864.</u> If you use 25 bits instead of 26, then you have 2²⁵ = 33,554,432 combinations. These possible combinations are not enough to represent each inhabitant.