The binary representation of +3997 is 1111 1001 1101.
In one's complement this is simply adding a sign bit and inverting all the bits:
1 0000 0110 0010
The two's complement is the one's complement plus 1:
1 0000 0110 0011
That's 13 bits. Normally the sign bit would be at an 8, 16 or 32,... bit boundary.
For -436 it's 10 0100 1100 and 10 bits
Answer: 50
Explanation: let amit's current age = a and armaan's current age be b.
(a-5) = 3* (b-5)
i.e. a= 3b-10 -(i)
10 years later,
(a+10) = 2(b+10)
i.e. a=2b+10 -(ii)
From eqn (i) and (ii),
b=20,
and a=50
What language are you programming in?
<span>If you are programming in C or C++, you could do something like this: </span>
<span>#include <iostream> </span>
<span>using namespace std; </span>
<span>int main(void) </span>
<span>{ </span>
<span>//declarations </span>
<span>double item1 = 0; </span>
<span>double item2 = 0; </span>
<span>double item3 = 0; </span>
<span>double item4 = 0; </span>
<span>double item5 = 0; </span>
<span>double subtotal = 0; </span>
<span>double total = 0; </span>
<span>double tax = 0; </span>
<span>//Enter Items </span>
<span>cout << "Please enter the price of item 1"; </span>
<span>cin >> item1; </span>
<span>cout << "Please enter the price of item 2"; </span>
<span>cin >> item2; </span>
<span>cout << "Please enter the price of item 3"; </span>
<span>cin >> item3; </span>
<span>cout << "Please enter the price of item 4"; </span>
<span>cin >> item4; </span>
<span>cout << "Please enter the price of item 5"; </span>
<span>cin >> item5; </span>
<span>//Compute subtotal </span>
<span>subtotal = (item1 + item2 + item3 + item4 + item5 + item6); </span>
<span>//Compute amount of tax </span>
<span>tax = subtotal * (.06); </span>
<span>//Compute total </span>
<span>total = subtotal + tax; </span>
<span>//Display subtotal, total, and amount of tax </span>
<span>cout < " The subtotal of the sale is: " << subtotal << endl; </span>
<span>cout < " The amount of sales tax is: " << tax << endl; </span>
<span>cout < " The total of the sale is: " << total << endl; </span>
<span>return 0; </span>
<span>}//end of function main </span>
<span>I know this is a very very basic C++ program but I hope it helps and good luck on your project!</span>
You manage small LAN for a branch office. The branch office has three file servers and few client workstations. You want to use Ethernet device and offer guaranteed bandwidth to each server. You design the network by <u>connecting all network devices to a switch. Connect each server to its own switch port.</u>
<u></u>
Explanation:
- A local-area network (LAN) is a computer network that spans a relatively small area.
- Most often, a LAN is confined to a single room, building or group of buildings, however, one LAN can be connected to other LANs over any distance via telephone lines and radio waves.
- The LAN is the networking infrastructure that provides access to network communication services and resources for end users and devices spread over a single floor or building.
- Designing a LAN for the campus use case is not a one-design-fits-all proposition.
- If there is a single 48-port switch, 47 devices can be supported, with only one port used to connect the switch to the rest of the network, and only one power outlet needed to accommodate the single switch
.