Activities Manual For Programmable Logic Controllers
Activities Manual For Programmable Logic Controllers
5th Edition
ISBN: 9781259682476
Author: Frank Petruzella
Publisher: Mcgraw-hill Higher Education (us)
Expert Solution & Answer
Book Icon
Chapter 3, Problem 1RQ

a.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 10.
  • First, multiply the given binary number 10 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 10.

10=21*1+20*0 =2*1+1*0 =2+0 =2

  • Therefore, the decimal notation of binary number (10)2 is “(2)10”.

b.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 100.
  • First, multiply the given binary number 100 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 100.

100=22*1+21*0+20*0 =4*1+2*0+1*0 =4+0+0 =4

  • Therefore, the decimal notation of binary number (100)2 is “(4)10”.

c.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 111.
  • First, multiply the given binary number 111 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 111.

111=22*1+21*1+20*1 =4*1+2*1+1*1 =4+2+1 =7

  • Therefore, the decimal notation of binary number (111)2 is “(7)10”.

d.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 1011.
  • First, multiply the given binary number 1011 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 1011.

1011=23*1+22*0+21*1+20*1 =8*1+4*0+2*1+1*1 =8+0+2+1 =11

  • Therefore, the decimal notation of binary number (1011)2 is “(11)10”.

e.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 1100.
  • First, multiply the given binary number 1100 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 1100.

1100=23*1+22*1+21*0+20*0 =8*1+4*1+2*0+1*0 =8+4+0+0 =12

  • Therefore, the decimal notation of binary number (1100)2  is “(12)10”.

f.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 10010.
  • First, multiply the given binary number 10010 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 10010.

10010=24*1+23*0+22*0+21*1+20*0 =16*1+8*0+4*0+2*1+1*0 =16+0+0+2+0 =18

  • Therefore, the decimal notation of binary number (10010)2 is “(18)10”.

g.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 10101.
  • First, multiply the given binary number 10101 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 10101.

10101=24*1+23*0+22*1+21*0+20*1 =16*1+8*0+4*1+2*0+1*1 =16+0+4+0+1 =21

  • Therefore, the decimal notation of binary number (10101)2 is “(21)10”.

h.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 11111.
  • First, multiply the given binary number 11111 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 11111.

11111=24*1+23*1+22*1+21*1+20*1 =16*1+8*1+4*1+2*1+1*1 =16+8+4+2+1 =31

  • Therefore, the decimal notation of binary number (11111)2 is “(31)10”.

h.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 11001101.
  • First, multiply the given binary number 11001101 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 11001101.

11001101=27*1+26*1+25*0+24*0+23*1+22*1+21*0+20*1 =128*1+64*1+32*0+16*0+8*1+4*1+2*0+1*1 =128+64+0+0+8+4+0+1 =205

  • Therefore, the decimal notation of binary number (11001101)2 is “(205)10”.

j.

Explanation of Solution

Conversion of binary numbers to decimal numbers:

  • Given, binary number is 11100011.
  • First, multiply the given binary number 11100011 with multiples of 2, with respect to their positions and then, add all the values to get the final answer.
  • The following calculation describes the decimal notation of the binary number 11100011.

11100011=27*1+26*1+25*1+24*0+23*0+22*0+21*1+20*1 =128*1+64*1+32*1+16*0+8*0+4*0+2*1+1*1 =128+64+32+0+0+0+2+1 =227

  • Therefore, the decimal notation of binary number (11100011)2 is “(227)10”.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
1. Enabled with SSL, HTTPS protocol is widely used to provide secure Web services to Web users using Web browsers on the Internet. How is a secure communication channel established at the start of communication between a Web server running HTTPS and a Web browser? Consider the following threats to Web security and how each of these threats is countered by a particular feature of SSL. Man-in-the-middle attack: An attacker interposes during key exchange, acting as the client to the server and as the server to the client. Password sniffing: Passwords in HTTP or other application traffic are “eavesdropped.” SYN flooding: An attacker sends TCP SYN messages to request a connection but does not respond to the final message to establish the connection fully. The attacked TCP module typically leaves the “half-open” connection around for a few minutes. Repeated SYN messages can clog the TCP module.
SQL Injection on UPDATE Statement for educational purpose only  Based on the information below how do i update this code in order to update the emplyees field, eg admin nickname, email,address, phone number etc? ' ; UPDATE users SET NickName='Hacked' WHERE role='admin' --  If a SQL injection vulnerability happens to an UPDATE statement, the damage will be more severe, because attackers can use the vulnerability to modify databases. In our Employee Management application, there is an Edit Profile page (Figure 2) that allows employees to update their profile information, including nickname, email, address, phone number, and password. To go to this page, employees need to log in first. When employees update their information through the Edit Profile page, the following SQL UPDATE query will be executed. The PHP code implemented in unsafe edit backend.php file is used to update employee’s profile information. The PHP file is located in the /var/www/SQLInjection directory.
Answer two JAVA OOP questions.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage