Answer:
The summary on the given topic is summarized in the explanation portion below.
Explanation:
- A means to ensure that somehow a machine data communication or transfer has no bits missing are termed as Checksum. These would be determined in many extremely difficult directions but there's no response.
- Whereas if checksum appears unacceptable or inaccurate, the machine is compared mostly with documentation it gets or collects and lends it a position.
Answer:
def transfer(bank, log_in, userA, userB, amount): ''' In this function, you will try to make a transfer between two user accounts. bank is a dictionary where the key is the username and the value is the user's account balance. log_in is a dictionary where the key is the username and the value is the user's log-in status. amount is the amount to be transferred between user accounts (userA and userB). amount is always positive. What you will do: - Deduct the given amount from userA and add it to userB, which makes a transfer. - You should consider some following cases: - userA must be in the bank and his/her log-in status in log_in must be True. - userB must be in log_in, regardless of log-in status. userB can be absent in the bank. - No user can have a negative amount in their account. He/she must have a positive or zero balance. Return True if a transfer is made. For example:
Explanation:
i know this much
I think the two tasks that would be completed by an emergency and relief worker are CLEAN AND STERILIZE EQUIPMENT AND MACHINERY TO USE WITH PATIENTS.
They need to be sure that the equipment and machinery they are using are clean and free from any infection causing bacteria. This is to ensure that the patients they will take care of will not suffer from infection or any further injury caused by unclean and unsterilized equipment.
Answer:
import java.util.Scanner;
public class num5 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter The First String");
String str1 = in.next();
System.out.println("Enter The Second String");
String str2 = in.next();
System.out.println("Enter The Third String");
String str3 = in.next();
String oneAndTwo = str1+str2;
if(str3.equals(oneAndTwo)){
System.out.println(str1+" + "+str2+" is equal to "+str3+"!");
}
else
System.out.println(str1+" + "+str2+" is not equal to "+str3+"!");
}
}
Explanation:
- Implemented in Using Java Programming Language
- Import Scanner Class to prompt and receive users' input
- Create three string variables and store the three values entered by the user (str1, str2 and str3)
- Concatenate str1 and str2 using the + operator and assign to a new variable
- Use the if statement with Java's .equals() method to check for equality of the new string with the third string
- Print the appropriate message if the equal or not
Answer:
The correct answer is:
C. ndx = 0;
while (ndx < 3) {
ar[ndx] = 0;
ndx++;
}
Explanation:
The declaration given is:
int ar[3];
This means the array consists of three locations and is named as ar.
We know that the indexes are used to address the locations of an array and the index starts from 0 and goes upto to 1 less than the size of the array which means the indexes of array of 3 elements will start from 0 and end at 2.
Now in the given options we are using ndx variable to run the while loop.
So the code to assign zero to all elements of array will be
ndx = 0;
while(ndx<3)
{
ar[ndx] = 0;
ndx++;
}
Hence, the correct answer is:
C. ndx = 0;
while (ndx < 3) {
ar[ndx] = 0;
ndx++;
}