Answer:
The two ways the calendar meets the criteria of showing the correct date are;
1) The calendar can give dates in the 12 months in a year
2) The calendar can show up to the 31 different days in a month
Explanation:
The two ways in which the calendar meets the criteria of showing the correct date are;
1) The number number of long blocks with 4 different months each = Three
Therefore, the total number of months the blocks can hold = 3 × 4 months = 12 months = The number of months in a year
2) The number of faces on each dice = 6 faces
The number of dice = 2 dice
The total number of faces = 12
The number of identical faces = 2 (11th and 22nd of the month)
The number of unique faces = 10
The number of combinations of the dices = ₁₀C₂ = 45
The number of combination of faces required to show = 1 to 31 = 31 combination
Therefore, there are adequate combinations on the dice to show all the dates of month
Answer:
Physical and data link layer.
Explanation:
The ethernet cable is used at the physical layer. The physical layer consists of hardware components. This layer is responsible for transmission of data bits between two nodes via a physical wire. The data link layer provides the means in which data packets are transmitted from one node to another.
Suppose two computers (A & B) are directly connected through Ethernet cable. A is sending data to B, the packets would be sent from computer A to computer B if computer B is free if not it would wait until computer B is not transmitting before it can start sending data packets to computer B.
Answer:
True
Explanation:
A single file can be used to record/ store all the information regarding a transaction because in a transaction there are less complexities. a simple transaction involves an exchange/communication between a buyer and a seller which involves exchange in finances between the buyer and the seller.
An employee can be involved in several activities like work activities and multiple transactions while a single inventory part record is different from an employee's record and any other form of transaction. hence separate files have to be created for each of these activities.
To have an easy access to this information when needed a master file is created to store all the individual files.
Answer:
import java.util.Scanner;
public class TestClock {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.print("Enter favorite color:");
String word1 = in.next();
System.out.print("Enter pet's name:");
String word2 = in.next();
System.out.print("Enter a number:");
int num = in.nextInt();
System.out.println("you entered: "+word1+" "+word2+" "+num);
}
}
Explanation:
Using Java Programming language
- Import the Scanner class
- create an object of the scanner class
- Prompt user to enter the values for the variables (word1, word2, num)
- Use String concatenation in System.out.println to display the output as required by the question.
Machine language is the language understood by a computer. It is very difficult to understand, but it is the only thing that the computer can work with. All programs and programming languages eventually generate or run programs in machine language