Answer:
7 bytes
Explanation:
<u>2 Address Instruction</u>
The 2 address instruction consist 3 components in the format.
One is opcode,other two are addresses of destination and source.
<u>Example-</u>
load b,c | Opcode destination address,source address
add a,d | Opcode destination address,source address
sub c,f | Opcode destination address,source address
Opcode consists of 1 bytes whereas destination address and source address consist of 3 bytes each.
(1+3+3) bytes=7 bytes
Answer:
- Print the values days of bottles.
- Display total number of bottles collecting.
- Display the payout for this transaction.
Explanation:
Program:-
DEPOSIT_PER_BOTTLE = 0.10
another = "Y"
while another=="Y":
print("Input Values 7 days of bottles:")
total = 0
for I in range(7):
collected_bottles = int(input())
total += collected_bottles
payout = total*DEPOSIT_PER_BOTTLE
print("Total number of bottles collected: {:,}".format(total))
print("Payout for this transaction $%.2f"%payout)
another = input("Do you want to complete another transaction? ").upper()
The decimal form of the 11001101.00111001.10101001.01000010 binary ip address is 205.57.169.66.
An IP address is a binary number with 32 bits. The 32 bits are divided into four octets, which are groupings of 8 bits each. An IP address, however, is shown as a dotted decimal number (for example: 205.57. 32.9).
Memory regions are given binary addresses by the computer system. But in order to access a memory location, the system utilises a certain number of bits. We can address two memory regions with 1 bit. We can address 4 memory locations with 2 bits and 8 memory locations with 3 bits.
The 4 sets of 8 bits in each of the 4 directions are simply written down to create the 32-bit binary IP address.
Learn more about binary ip address:
brainly.com/question/14541891
#SPJ4
Answer:
C. The energy used to create and maintain technology
#Carry on learning po
import java.util.Scanner;
public class JavaApplication86 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = 0, c = 0, sum = 0;
while (true){
x = scan.nextInt();
System.out.println("You entered: "+x);
if (x == -1){
break;
}
sum += x;
c++;
}
System.out.println("The sum is "+sum);
System.out.println("You entered "+c +" numbers");
}
}
This works for me. Instead of subtracting one from c and adding one to sum, I used an if statement to break away from the while loop if the entered number is -1.