Question

1. What is output by each of the pseudocode segments in Figure 5- 30? b. a. C. d=4 1 a = g4 h 6 while g< h b 2 e 6 f 7 while

2. Design the logic for a program that outputs every number from 1 through 15.


3. Design the logic for a program that outputs every number from 1 through 15 along with its value times 10 and times 100.

// please answer e, f, 2, 3 <-----

0 2
Add a comment Improve this question Transcribed image text
Answer #1

1A)answer= [5 22 5]

1B)answer= [1 2 5]

1C)Answer = [6 6]

1D) answer =Goodbye (9 rows)

1E)Answe=Hello (3 rows)

1F)Answer=Adios(8 rows)

Add a comment
Know the answer?
Add Answer to:
2. Design the logic for a program that outputs every number from 1 through 15. 3....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Design the logic circuit to display a 3 bit octal numbers from 0 to 7 on...

    Design the logic circuit to display a 3 bit octal numbers from 0 to 7 on a seven segment display shown below (for number 1 use segments b and c; for 6 include segment (a) Write the Truth Table with A, B. C representing the input bits (A is the MSB) and a, b, c, d, e, f and g representing the outputs to the seven segments. (b) Implement the circuit using a Programmable Logic Array (use simplified notation to...

  • the author's pseudocode    it follows this template 3 Design the logic for a program for Nos...

    the author's pseudocode    it follows this template 3 Design the logic for a program for Nos Encanta Tu Interés credit card company that a) Allows the user to enter their name, credit card number, beginning balane and monthly interest rate b) For the next full year (12 months), 1. Outputs the month number and the balance at the beginning of the month 2. Allows the user to enter the amount of their payment, and the amount of their purchases for...

  • In the Benes network B4 16 inputs are matched with 16 outputs. The network can send each input to...

    In the Benes network B4 16 inputs are matched with 16 outputs. The network can send each input to either of two copies of B3 , which will be called the upper and lower copy. To have a congestion of 1 it is essential that any two inputs that differ by exactly 8 go to different copies of B3, and that any two packets with outputs that differ by exactly 8 also go to different copies of B3. Consider the...

  • 1. An application of prepositional logic is the design of combinational circuits used in digital systems....

    1. An application of prepositional logic is the design of combinational circuits used in digital systems. Using inputs (statements) a1, b1,ao.   Determine the outputs P, Q, and R in figure 2 above     ii) Assuming P is true(“on”), what will be the output R of this circuit b) Given the domain of discourse is Real numbers?                                                                                                  1c) The static force balance on three masses yields the following system of equations: (A+ B +C) x – By –Cz = G –Bx +(B+D)y...

  • 2. The decimal digits 0 to 9 are represented by four logic signals using the 7321 weighted BCD code. Only the code...

    2. The decimal digits 0 to 9 are represented by four logic signals using the 7321 weighted BCD code. Only the code 0011 is used to represent the digit 3. In addition the code 1100 is used to represent the character E. Codes that do not represent either a decimal digit (including 0100), or the character E never occur. The logic signals are inputs to a decoder circuit whose outputs provide drive signals for a seven segment display system shown...

  • Part A Consider the table below. A, B, and C represent logic-variable input signals; F through K are outputs. (Figure 1) Using the sum-of-products approach, select an expression for G in terms of the...

    Part A Consider the table below. A, B, and C represent logic-variable input signals; F through K are outputs. (Figure 1) Using the sum-of-products approach, select an expression for G in terms of the inputs. O G ПМ(0,2,4,5) G m(2,3,4,5) G-m (1,3,6,7) O G_ⅡM(1,3,4,6) GEm(0,1,3) O G IIM(0,1,6,7) O G-En(2,4,5,6,7) O G m(0,2,5,7) 0 G=Σm(2,3,6,7) O G IIM (0,1,4,5) O G-ПМ(0,1,2,6,7) Figure 1 of 1 Submit Row A BC F G H IJ K Part B 0 0 00 1...

  • Draw the Network Diagram (PDM) Identify All the Paths Through the Network

    1) Draw the network diagram (PDM)2) Identify all the paths through the network3) select the critical path and explain why 4) calculate the standard deviation of the critical path ActivityPrecedenceDurationSDANA62BNA10CNA82DNA41EA, B62FC, D62GE62HE, F20JH10KH92LG113MG113NK, L51PM31QK41

  • 6. Show the step-by-step trace through the following Fortran program segments and predict the output. a)...

    6. Show the step-by-step trace through the following Fortran program segments and predict the output. a) INTEGER I, J, K DO I = 2, 8, 2 DO J = I, 2 DO K = 1, J, 2 PRINT*, I, J, K ENDDO b) X = 1.0 DO WHILE (X .LE. 100.0) PRINT*, X X = (X-1)**2 + 2.0 END DO

  • Problem 1: consider the following circuit with 4 inputs A, B, c, D, and 3 outputs...

    Problem 1: consider the following circuit with 4 inputs A, B, c, D, and 3 outputs F, G, H. Each input/output is connected to an input/output port. 3-input OR gate Figure 1 a) Determine the Boolean algebra equations relating each input to each output of the circuit. b) Create the truth tables corresponding to the equations obtained above. There should be one truth table per equation c) Produce the Karnaugh maps corresponding to the truth tables d) Determine simplified Boolean...

  • Turning this Pseudocode into the described C++ Program? (will include Pseudocode AND Description of the Program...

    Turning this Pseudocode into the described C++ Program? (will include Pseudocode AND Description of the Program below!) Pseudoode: start   Declarations num deptNum num salary num hrsWorked num SIZE = 7 num totalGross[SIZE] = 0 string DEPTS[SIZE] = “Personnel”, “Marketing”,   “Manufacturing”, “Computer Services”, “Sales”, “Accounting”, “Shipping”                                                      getReady()    while not eof detailLoop()    endwhile    finishUp() stop getReady()    output “Enter the department number, hourly salary, and number of hours worked”    input deptNum, salary, hrsWorked return detailLoop()    if deptNum >= 1 AND deptNum...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT