PROGRAMMABLE LOGIC CONTROL.(LL)>CUSTOM<
PROGRAMMABLE LOGIC CONTROL.(LL)>CUSTOM<
5th Edition
ISBN: 9781266481475
Author: Petruzella
Publisher: MCG
Expert Solution & Answer
Book Icon
Chapter 3, Problem 3RQ

a.

Explanation of Solution

Conversion of octal numbers to decimal numbers:

  • • Given, octal number is 36.
  • • First, multiply the given octal number 36 with multiples of 8, 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 octal number 36.

36=81*3+80*6 =8*3+1*6 =24+6 =30

  • • Therefore, the decimal notation of octal number (36)8 is “(30)10”.

b.

Explanation of Solution

Conversion of octal numbers to decimal numbers:

  • • Given, octal number is 104.
  • • First, multiply the given octal number 104 with multiples of 8, 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 octal number 104.

104=82*1+81*0+80*4 =64*1+8*0+1*4 =64+0+4 =68

  • • Therefore, the decimal notation of octal number (104)8 is “(68)10”.

c.

Explanation of Solution

Conversion of octal numbers to decimal numbers:

  • • Given, octal number is 120.
  • • First, multiply the given octal number 120 with multiples of 8, 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 octal number 120.

120=82*1+81*2+80*0 =64*1+8*2+1*0 =64+16+0 =80

  • • Therefore, the decimal notation of octal number (120)8 is “(80)10”.

d.

Explanation of Solution

Conversion of octal numbers to decimal numbers:

  • • Given, octal number is 216.
  • • First, multiply the given octal number 216 with multiples of 8, 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 octal number 216.

216=82*2+81*1+80*6 =64*2+8*1+1*6 =128+8+6 =142

  • • Therefore, the decimal notation of octal number (216)8 is “(142)10”.

e.

Explanation of Solution

Conversion of octal numbers to decimal numbers:

  • • Given, octal number is 360.
  • • First, multiply the given octal number 360 with multiples of 8, 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 octal number 360.

360=82*3+81*6+80*0 =64*3+8*6+1*0 =192+48+0 =240

  • • Therefore, the decimal notation of octal number (360)8 is “(240)10”.

Explanation of Solution

Conversion of octal numbers to decimal numbers:

  • • Given, octal number is 1516.
  • • First, multiply the given octal number 1516 with multiples of 8, 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 octal number 1516.

1516=83*1+82*5+81*1+80*6 =512*1+64*5+8*1+1*6 =512+320+8+6 =846

  • • Therefore, the decimal notation of octal number (1516)8 is “(846)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
7. Long-Distance CallsA long-distance provider charges the following rates for telephone calls: Rate Category    Rate per MinuteDaytime (6:00 a.m. through 5:59 p.m.)    $0.07Evening (6:00 p.m. through 11:59 p.m.)    $0.12Off-Peak (midnight through 5:59 a.m.)    $0.05Write a GUI application that allows the user to select a rate category (from a set of radio buttons), and enter the number of minutes of the call into an Entry widget. An info dialog box should display the charge for the call.
Name and Address The Name and Address Problem Write a GUI program that displays your name and address when a button is clicked. The program’s window should appear as the sketch on the left side of Figure 13-61 when it runs. When the user clicks the Show Info button, the program should display your name and address, as shown in the sketch on the right of the figure.
Exercise 1 Function and Structure [30 pts] Please debug the following program and answer the following questions. There is a cycle in a linked list if some node in the list can be reached again by continuously following the next pointer. #include typedef struct node { int value; struct node *next; } node; int 11_has_cycle (node *first) if (first == node *head = { NULL) return 0; first; while (head->next != NULL) { } if (head first) { return 1; } head = head->next; return 0; void test ll_has_cycle () { int i; node nodes [6]; for (i = 0; i < 6; i++) { nodes [i] .next = NULL; nodes [i].value = i; } nodes [0] .next = &nodes [1]; nodes [1] .next = &nodes [2]; nodes [2] .next = &nodes [3]; nodes [3] .next nodes [4] .next &nodes [4]; NULL; nodes [5] .next = &nodes [0]; printf("1. Checking first list for cycles. \n Function 11_has_cycle says it has s cycle\n\n", 11_has_cycle (&nodes [0])?"a":"no"); printf("2. Checking length-zero list for cycles. \n Function 11_has_cycle says it has %s…
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L