print("enter numbers between 1 and 10")
num1=float(input("enter the first digit to add together"))
num2=float(input("enter the second digit to add together"))
if num1 and num2 >=10:
answer=num1+num2
print(answer)
else:
print("answer not accepted please try again later")
exit()
What is the decimal representation of the following signed binary numbers?
10000000
11001100
10110111
Answer:
(10000000)₂ = -128 in decimal
(11001100)₂ = -52 in decimal
(10110111)₂ = -73 in decimal
Explanation:
NOTE: If Most Significant Bit is 0, it is positive number and if MSB is 1, it is negative number. If number is positive we can simply convert it to decimal. But if number is negative, follow following formula:
(complement of the number) +1EXAMPLE 1
(10000000)₂
(01 1 1 1 1 1 1)₂ ↔ complement of the number
+ 1
(10000000)₂ = 1 ×[tex]2^{7}[/tex]= 128 (magnitude in decimal)
But we remember MSB was 1 so answer is -128.
EXAMPLE 2
(1 1 0 0 1 1 00)₂
(0 0 1 1 0 0 1 1)₂
+ 1
(0 0 1 1 0 1 0 0)₂ = 52 (magnitude in decimal)
But we remember MSB was 1 so answer is -52.
EXAMPLE 3
(1 0 1 1 0 1 1 1)₂
(0 1 00 1 000)₂
+ 1
(01 00 1 00 1)₂ = 73 (magnitude in decimal)
But we remember MSB was 1 so answer is -73.
To convert signed binary numbers to their decimal representation, check if the first bit is 1 (indicating a negative number) and then find the two's complement of the rest of the bits. After converting the two's complement to decimal, prefix the number with a negative sign. For example, 10000000 represents -128, 11001100 represents -52, and 10110111 represents -73 in decimal.
Explanation:The question asks about converting signed binary numbers into their decimal representations. Signed binary numbers use the leftmost bit as a sign indicator, where 0 usually means positive and 1 means negative. To convert them into decimals, one must understand two's complement notation, which is a method used to represent negative binary numbers.
Steps for converting signed binary numbers to decimal:
Check the first bit (most significant bit). If it is 0, the number is positive. If it is 1, the number is negative and you will proceed with finding the two's complement of the rest of the bits.To find the two's complement, invert all the bits (change 1s to 0s and vice versa) and then add 1 to the least significant bit.Convert the resulting binary number to a decimal number.If the original most significant bit was 1, prefix the result with a negative sign to show it is a negative decimal number.Following these steps:
10000000: This represents -128 in decimal as it is the two's complement of 128 (the most significant 1 indicates a negative number).11001100: The first bit is 1, so this is a negative number. Its two's complement is 00110100, which is 52 in decimal, thus the original number is -52.10110111: The first bit is 1, so this is a negative number. Its two's complement is 01001001, which is 73 in decimal, thus the original number is -73.
Which address does a host have to find out in order to send a data packet to another host (whose IP address they know!) If the person is on the same network? When the person is on a different network?
Answer:
1. Ethernet network address
2. native address, and the router
Explanation:
Each PC is connected to the Ethernet network through the Ethernet NIC or the network interface card. And anybody from the same network can send the data packet to this host through the Ethernet network address. And when the PCs are not on the same network then they are connected through the router and are being identified through their native addresses.
What process can be used to make difficult decisions when faced with a situation in which there is no clear right or wrong answer?
Answer:
You should be crystal clear on what you are expecting. At times, you might sense that you are made-up to and that what you must do. Though, you must not be like that. And then think what is ethically right. In situations when you are not clear, thinking on moral grounds can make the picture clear. Also, preserve in mind that doing roughly is healthier than doing nothing at all. And make a custom to be conclusive as that is the key positively. And if you make a routine like this, then you are certainly going to make the difficult decision faster, and when there is no clear right or wrong answer.
Explanation:
Please check the answer.
Cameron is having a party and needs to write step-by-step directions on the invitation. Which type of list would you
recommend he use for the invitation?
a Directional list
b. Numbered list
C Bulleted list
d Outline list
Please select the best answer from the choices provided
Answer:
He should use Numbered List.
Explanation:
Number list is used usually when we have write the steps of procedure that needs to followed in an order. In this list No. are assigned in ascending order to tells the user or reader that follow the instructions in this order.
As Cameron wants to write step b step directions of the part and want to follow it in a specific order, He should use number list for the invitation.
People use a computer connected to the internet to manage financial accounts
Answer:
No however, if financial accounts are on website, then that is done, however, not on public network.
Explanation:
This should not be done on the public network, or some other computer. And in general its no. However, if the internet is required, then this must only be done on a private network and under strict firewall rules. Do not ever use the VPN for this as well, as your information can be leaked. You need to do all this, as these are monetary usage, and at times it can be very heavy, and result in very heavy loss. However, this is especially required by small children who use bank accounts regularly. They and all should keep this in mind.
From the following list choose all the tasks an operating system performs.
manages files
manages memory
powers up
works as an intermediary between the hardware and the software
stores files
runs tests
manages which program gets access to memory and for how long
Brianna is a multimedia specialist who works for a large fast food chain. What task
might Brianna perform as part of her job?
A. recording and publishing training videos for new employees
B. connecting the fast food chain's cash registers to the network
C. writing a program for ordering supplies online
D.answering calls from customers about their food
Answer:
Recording and publishing training videos for new employees
Explanation:
Multimedia specialists design and create IT-based multimedia products such as websites, DVDs, and computer games that combine text with sounds, pictures, graphics, video-clips, virtual reality and digital animation
Answer:
A. recording and publishing training videos for new employees
Explanation: I did the test and got it right.