It is desired to compare two 4-bit numbers for equality. If the two numbers are equal, the circuit will generate an output of 1. Draw a logic circuit using a minimum number of gates of your choice.
Design a parity generation circuit for a 5-bit data (4-bit message with an even parity bit) to be transmitted by computer X. The receiving computer Y will generate an error bit, E = 1, if the 5-bit...
You may have been assigned a CASE or a drawing tool to develop conceptual data models. Using this tool, attempt to redraw all the E-R diagrams in this chapter. What difficulties did you encounter?...
If a statement passes a variables address, the variable is said to be passed _____________________. A. By address b. By content c. By reference d. By value
The memory locations listed in a procedure headers parameterList have procedure scope and are removed from the computers main memory when the procedure ends. a. True b. False
Explain the difference between a Sub procedure and a Function procedure.
Explain the difference between invoking a Sub procedure and invoking a function.
Design a combinational circuit that adds two 4-bit signed numbers and generates an output of 1 if the 4-bit result is zero; the output is 0 if the 4-bit result is nonzero. Draw a logic circuit using...
Design a combinational circuit using a minimum number of full adders, and logic gates with one BCD to seven-segment converter (74LS47) and one common-anode seven-segment display, and which will...
Write a Verilog description for a 4-to-1 multiplexer using dataflow modeling using the conditional operator.
A synchronous sequential circuit with two D flip-flops (a,b as outputs), one input (x), and an output (y) is expressed by the following equations: D a = abx + ab, D b = xb + bx y = bx + a (a) Derive...
A sequential circuit contains two D flip-flops (A, B), one input (x), and one output (y), as shown in Figure P5.18. Derive the state table and the state diagram of the sequential circuit. Clk D Q Clk...
Design a synchronous sequential circuit with one input x and one output y. The input x is a serial message, and the system reads x one bit at a time. The output y is 1 whenever the binary pattern 000...
Use Figure P5.25 as the building block: Design a 4-bit general-purpose register as follows: S So Function 0 0 0 1 1 0 1 1 Load external data Rotate left; (AoA3, Ai-Ai-1 for i = 1,2,3) Rotate right;...
Write a Verilog description using behavioral modeling for: (a) The positive edge-triggered JK Flip-Flop of Figure 5.9. (b) A D flip-flop with a synchronous reset input and a positive edge triggered...
(a) Using a 4-bit binary adder with inputs (A, B, and Cin), outputs (F and Cout), and one selection bit (S0), design an arithmetic circuit as follows: S0 FUNCTION TO BE PERFORMED 0 A plus B 1 ...
List the employees whose last names begin with an L.
Determine the relationships among the four entities in Figure 7-15. List primary keys for each entity and any foreign keys necessary to establish the relationships and maintain referential integrity....
How would Problems and Exercises 21 and 22 change if a type of fish could be supplied by multiple suppliers?
How do you represent an associative entity in a relational data model?
How are relationships between entities represented in the relational data model?
Fill in the blanks in each of the following statements: a. A relation that has no partial functional dependencies is in _____ normal form. b. A relation that has no transitive dependencies is in...
For your answers to the following Problems and Exercises from prior chapters, transform the EER diagrams into a set of relational schemas, diagram the functional dependencies, and convert all the...
Which of the following declares a five-element one-dimensional array? a. Dim intSold(4) As Integer b. Dim intSold(5) As Integer = {4, 78, 65, 23, 2} c. Dim intSold() As Integer = {4, 78, 65, 23, 2}...
The strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process...
The intsales array is declared as follows: dim intsales() as integer = {10000, 12000, 900, 500, 20000}. The statement intsales(2) + = 10 will _____________________. a. Replace the 900 amount with 10...
The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly multiply each element by 2? The intSub variable...
How does the MySQL Workbench handle N:M relationships?
The MySQL Workbench creates database models. What is a data model? What is a database design? Which does MySQL Workbench create?
For Problem and Exercise 21, draw the E-R diagram based on the normalized relations. Data from Exercise 21. A pet store currently uses a legacy flat file system to store all of its information. The...
A pet store currently uses a legacy flat file system to store all of its information. The owner of the store, Peter Corona, wants to implement a Web-enabled database application. This would enable...
Convert the following decimal numbers to 6-bit twos complement binary numbers and subtract them. Indicate whether or not the difference overflows a 6-bit result. (a) 18 10 12 10 (b) 30 10 9 10 (c)...
A three-input OR-AND-INVERT (OAI) gate shown in Figure 1.43 produces a FALSE output if C is TRUE and A or B is TRUE. Otherwise, it produces a TRUE output. Complete a truth table for the gate. -Y c-
Perform the following additions of unsigned hexadecimal numbers. Indicate whether or not the sum overflows an 8-bit (two hex digit) result. (a) 7 16 + 9 16 (b) 13 16 + 28 16 (c) AB 16 + 3E 16 (d) 8F...
You are designing an elevator controller for a building with 25 floors. The controller has two inputs: UP and DOWN. It produces an output indicating the floor that the elevator is on. There is no...
Design an asynchronously resettable D flip-flop using logic gates.
Design an asynchronously resettable D latch using logic gates.
Accidents are still occurring at the intersection of Academic Avenue and Bravado Boulevard. The football team is rushing into the intersection the moment light B turns green. They are colliding with...
You have built a synchronizer using flip-flops with T 0 = 20 ps and = 30 ps. Your boss tells you that you need to increase the MTBF by a factor of 10. By how much do you need to increase the clock...
Explain the difference between blocking and non blocking assignments in SystemVerilog. Give examples.
You would like to build a synchronizer that can receive asynchronous inputs with an MTBF of 50 years. Your system is running at 1 GHz, and you use sampling flip-flops with = 100 ps, T 0 = 110 ps,...
You are walking down the hallway when you run into your lab partner walking in the other direction. The two of you first step one way and are still in each others way. Then you both step the other...
Ben Bitdiddle invents a new and improved synchronizer in Figure 3.76 that he claims eliminates metastability in a single cycle. He explains that the circuit in box M is an analog metastability...
Write an HDL module for a 6:64 decoder using three instances of the 2:4 decoders from Exercise 4.13 and a bunch of three-input AND gates. Data from problem 13 Write an HDL module for a 2:4 decoder.
Write an HDL module that implements the circuit from Exercise 2.27. Data From Problem 2.27 Repeat Exercise 2.26 for the circuit in Figure 2.84. D-Y Figure 2.84 Circuit schematic
Write an HDL module that implements the logic function from Exercise 2.28. Pay careful attention to how you handle dont cares. Data from Problem 2.28 Find a minimal Boolean equation for the function...
Open the Commission Calculator Solution.sln file contained in the VB2017\AppC\ Commission Calculator Solution folder. Use what you learned in the appendix to debug the application.
Open the Hawkins Solution.sln file contained in the VB2017\AppC\Hawkins Solution folder. Use what you learned in the appendix to debug the application.
Which of the following is responsible for processing a web pages html instructions? A. Client computer b. Web server
When used in a parameter query, which of the following WHERE clauses will select the records for employees working more than 40 hours? a. WHERE Hours > @Hours b. WHERE Hours > !Hours c. WHERE Hours >...
The SQL SELECT statement performs case-sensitive comparisons. a. True b. False
The invisible web can be used for criminal activity, since information about users and their actions in this environment is harder to uncover by law enforcement personnel. Do you think using the dark...
Perform research on the Web to learn more about RSS feeds. Then write a practical, step-by-step guide for users who want to set up RSS feeds at their workstations.
Would the formulas in questions 5 and 6 also apply to heavy equipment, such as a bulldozer? Why or why not?
What are the two ways of using a spreadsheet to calculate present value?
1. Based on the fact statements provided, summarize the maintenance departments most important strengths, weaknesses, opportunities, and threats. 2. Compared to a profit-making company, is it more...
1. List all the registration system stakeholders . How is each group affected? 2. Interviews can be time-consuming and expensive. What are your specific goals, and how would you justify a series of...
Write a Python function that takes a sequence of numbers and determines if all the numbers are different from each other (that is, they are distinct).
Write a short Python program that takes two arrays a and b of length n storing int values, and returns the dot product of a and b. That is, it returns an array c of length n such that c[i] = a[i] ...
Give an example of a Python code fragment that attempts to write an element to a list based on an index that may be out of bounds. If that index is out of bounds, the program should catch the...
In the FavoritesListMTF class, we rely on public methods of the positional list ADT to move an element of a list at position p to become the first element of the list, while keeping the relative...
The Fourier transforms of even and odd functions are very important. Let x(t) = e -|t| and y(t) = e -t u(t) - e t u(-t). (a) Plot x(t) and y(t), and determine whether they are even or odd. (b) Show...
Draw the recursion trace for the computation of power(2,5), using the traditional function implemented in Code Fragment 4.11.
Draw the recursion trace for the execution of function reverse(S, 0, 5) (Code Fragment 4.10) on S = [4, 3, 6, 2, 6].
Write a program that simulates picking a card from a deck of 52 cards. Your program should display the rank (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King) and suit (Clubs, Diamonds, Hearts,...
Use a while loop to find the smallest integer n such that n2 is greater than 12,000.
A shipping company uses the following function to calculate the cost (in dollars) of shipping based on the weight of the package (in pounds). Write a program that prompts the user to enter the weight...
? can be computed using the following series: Write a method that returns?m(i)?for a given?i?and write a test program that displays the following table:i .......................m(i)1...
The String class is provided in the Java library. Provide your own implementation for the following methods (name the new class MyString1): public MyString1(char[] chars); public char charAt(int...
Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an...
Write a program that reads the strings from file SortedStrings.txt and reports whether the strings in the files are stored in increasing order. If the strings are not sorted in the file, displays the...
Write a program that randomly fills in 0s and 1s into an n-by-n matrix, prints the matrix, and finds the rows and columns with the most 1s. Enter the array size n: 4 The random array is 0011 0011...
Modify the GeometricObject class to implement the Comparable interface, and define a static max method in the GeometricObject class for finding the larger of two GeometricObject objects. Draw the UML...
Write a program that draws two filled circles with radius 15 pixels, centered at random locations, with a line connecting the two circles. The distance between the two centers is displayed on the...
Write a program to display the text Java is fun and Java is powerful alternately with a mouse click.
Design a class named MyDate. The class contains: The data fields year, month, and day that represent a date. month is 0-based, i.e., 0 is for January. A no-arg constructor that creates a MyDate...
Listing 12.16, ReplaceText.java, gives a program that replaces text in a source file and saves the change into a new file. Revise the program to save the change into the original file. For example,...
Exercise 12.6 implements the hex2Dec method to throw a NumberFormatException if the string is not a hex string. Define a custom exception called HexFormatException. Implement the hex2Dec method to...
Rewrite Listing 5.1 RepeatAdditionQuiz.java to alert the user if an answer is entered again. Hint: use an array list to store answers. Here is a sample run: Listing What is 5 + 9? 12 Wrong answer....
Write a program to display all possible solutions for the Eight Queens puzzle in a scroll pane, as shown in Figure 22.16. For each solution, put a label to denote the solution number. Solution 1...
Rewrite Programming Exercise 5.21 to create a GUI, as shown in Figure 16.41b. Your program should let the user enter the loan amount and loan period in the number of years from text fields, and it...
Modify Listing 14.21, ClockPane.java, to add the animation into this class and add two methods start() and stop() to start and stop the clock. Write a program that lets the user control the clock...
Rewrite Programming Exercise 18.10 using a helper method to pass the substring high index to the method. The helper method header is: public static int count(String str, char a, int high) Write a...
Given an undirected graph G = (V, E) and an integer k, find an induced subgraph H of G of maximum size such that all vertices of H have a degree > = k, or conclude that no such induced subgraph...
Using Figure 2.4 as a model, illustrate the operation of merge sort on the array A = (3; 41; 52; 26; 38; 57; 9; 49). Figure 2.4 5 2 2 5 10 merge 2 1 4 2 5 merge 4 4 2 7 sorted sequence 3 4 7 merge...
Modify Listing, TestWeightedGraph.java, to create a file for representing graph1. The file format is described in Exercise. Create the file from the array defined in lines 7?24 in Listing. The number...
Describe how a sorted list implemented as a doubly linked list could be used to implement the sorted map ADT.
Give pseudocode for performing the operation insertEdge(u, v, x) in O(1) time using the adjacency matrix representation.
Explain why the DFS traversal runs in O(n 2 ) time on an n-vertex simple graph that is represented with the adjacency matrix structure.
The Internet is made up of a large number of networks. Their arrangement determines the topology of the Internet. A considerable amount of information about the Internet topology is available on...
The book divides the software component of a computer system into two major categories. Identify each category and give an example of each that you are already familiar with. Briefly explain the role...
The book compares a large mainframe computer to a smartphone or tablet, and states that the difference between them is one of magnitude, not of concept. Explain the meaning of that statement.
Suppose you would like to buy a computer for your own needs. What are the major considerations and factors that would be important in your decision? What technical factors would influence your...
Write a small program in your favorite high-level language. Compile your program. What is the ratio of high-level language statements to machine language statements? As a rough estimate, assume that...
What is the primary concern of application architecture? Give an example of application architecture, either your own, or one from the examples in the book. Explain how this example fulfills the...
Use the multiplication method to convert 1011 2 to base 10. Verify your answer by using the weights method to convert the number back to base 2.
Use the multiplication method to convert 1357 16 to base 10. Verify your answer by using the division method to convert your answer back to base 16.
When data is input to a computer, it is nearly always manipulated and stored in some standard data format. Why is the use of data standards considered important, or indeed, crucial in this case?
What does the Little Man do during the second phase of a COFFEE BREAK or HALT instruction?
Show an instruction format that could be used to move data or perform arithmetic between two registers. Assume that the instruction is 32 bits wide and that the computer has sixteen general-purpose...