All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Study Help
New
Search
Search
Sign In
Register
study help
computer science
introduction java program
Questions and Answers of
Introduction Java Program
Design the simplest circuit that has three inputs, x1, x2, and x3, which produces an output value of 1 whenever two or more of the input variables have the value 1; otherwise, the output has to be 0.
Design the simplest circuit that has three inputs, x1, x2, and x3, which produces an output value of 1 whenever exactly one or two of the input variables have the value 1; otherwise, the output has
Design the simplest circuit that has four inputs, x1, x2, x3, and x4, which produces an output value of 1 whenever three or more of the input variables have the value 1; otherwise, the output has to
Repeat Problem 2.37 for the function f (x1, . . . , x4) = (0, 1, 2, 4, 5, 7, 8, 9, 10, 12, 14, 15).Data From Problem 2.37Find the minimum-cost SOP and POS forms for the function f (x1, x2, x3) =
Design a circuit with output f and inputs x1, x0, y1, and y0. Let X = x1x0 and Y = y1y0 represent two 2-digit binary numbers. The output f should be 1 if the numbers represented by X and Y
Repeat Problem 2.35 for the case where f should be 1 only if X ≥ Y. (a) Show the truth table for f.(b) Show the canonical sum-of-products expression for f.(c) Show the simplest possible
Find the minimum-cost SOP and POS forms for the function f (x1, x2, x3) = Σm(1, 2, 3, 5).
Repeat Problem 2.37 for the function f (x1, x2, x3) = Σm(1, 4, 7) + D(2, 5).Data From Problem 2.37Find the minimum-cost SOP and POS forms for the function f (x1, x2, x3) = Σm(1, 2, 3, 5).
Repeat Problem 2.37 for the function f (x1, . . . , x4) = Σm(0, 2, 8, 9, 10, 15) + D(1, 3, 6, 7).Data From Problem 2.37Find the minimum-cost SOP and POS forms for the function f (x1, x2, x3) =
Repeat Problem 2.37 for the function f (x1, . . . , x5) = ΠM(1, 4, 6, 7, 9, 12,15, 17, 20, 21, 22, 23, 28, 31).Data From Problem 2.37Find the minimum-cost SOP and POS forms for the function f (x1,
Repeat Problem 2.37 for the function f (x1, . . . , x5) = Σm(0, 1, 3, 4, 6, 8, 9, 11, 13, 14, 16, 19, 20, 21, 22, 24, 25) + D(5, 7, 12, 15, 17, 23).Data From Problem 2.37Find the minimum-cost SOP
A circuit with two outputs has to implement the following functionsDesign the minimum-cost circuit and compare its cost with combined costs of two circuits that implement f and g separately. Assume
Derive a minimum-cost realization of the four-variable function that is equal to 1 if exactly two or exactly three of its variables are equal to 1; otherwise it is equal to 0.
Design the simplest circuit that implements the function f (x1, x2, x3) = Σm(1, 3, 4, 6, 7) using NAND gates.
Repeat Problem 2.54 using NOR gates.Data From Problem 2.54Design the simplest circuit that implements the function f (x1, x2, x3) = Σm(3, 4, 6, 7) using NAND gates.
Write Verilog code to implement the circuit in Figure 2.32a using the gate level primitives. Ng ΔΔΔ (a) Sum-of-products realization
(a) Use a schematic capture tool to draw schematics for the following functionsf1 = (x1 + x2 + x4) · (x2 + x3 + x4) · (x1 + x3 + x4) · (x1 + x3 +
Find the minimum-cost circuit consisting only of two-input NAND gates for the function f (x1, . . . , x4) = Σm(0, 1, 2, 3, 4, 6, 8, 9, 12). Assume that the input variables are available in both
Repeat Problem 2.71 for a system that has seven sensors.Data From Problem 2.71A given system has four sensors that can produce an output of 0 or 1. The system operates properly when exactly one of
Find the minimum-cost circuit consisting only of two-input NOR gates for the function f (x1, . . . , x4) = Σm(6, 7, 8, 10, 12, 14, 15). Assume that the input variables are available in both
Implement the function in Figure 2.31 using only NOR gates. X1 0 0 0 0 x2 0 0 X3 0 1 1 0 1 1 1 1 1 11 0 0 1 0 1 0 1 f 0 1 1 0 1 0 0 1
Implement the circuit in Figure 2.39 using NAND and NOR gates. X1 X3 x2 X4 D D 00 h f
Repeat Problem 2.48 for the following functionsData From Problem 2.48A circuit with two outputs has to implement the following functionsDesign the minimum-cost circuit and compare its cost with
Find 5 three-variable functions for which the product-of-sums form has lower cost than the sum-of-products form.
Implement the function in Figure 2.31 using only NAND gates. X1 0 0 0 0 1 1 1 1 x2 0 0 1 1 0 0 1 1 X3 0 1 0 1 0 1 0 1 f 0 1 1 0 1 0 0 1
A four-variable logic function that is equal to 1 if any three or all four of its variables are equal to 1 is called a majority function. Design a minimum-cost SOP circuit that implements this
Prove or show a counter-example for the statement: If a function f has a unique minimum cost SOP expression, then it also has a unique minimum-cost POS expression.
Consider the function f = x3x5 + x1x2x4 + x1x2x4 + x1x3x4 + x1x3x4 + x1x2x5 + x1x2x5. Derive a minimum-cost POS expression for this function.
Design the simplest circuit that implements the function f (x1, x2, x3) = Σm(3, 4, 6, 7) using NAND gates.
Repeat Problem 2.66 for the following expressionsData From Problem 2.66Consider the logic expressionsProve or disprove that f = g. (tx + ²x + ¹x) (Ex + x + x)(x+x+x)(x+3x+x)(x+ Er+ x) = 8 f =
Repeat Problem 2.66 for the following expressionsData From Problem 2.66Consider the logic expressionsProve or disprove that f = g. f = x2+3+4+x2x3 + x2x4+x1x2₂x4+x1x2x3X5 g = (x2 + x3 + x4) (x2 +
Repeat Problem 2.55 using NOR gates.Data From Problem 2.55Repeat Problem 2.54 using NOR gates.Data From Problem 2.54Design the simplest circuit that implements the function f (x1, x2, x3) = Σm(3, 4,
A circuit with two outputs is defined by the logic functionsDerive a minimum-cost implementation of this circuit. What is the cost of your circuit? f = X₁ X₂ X3 + X₂X4 + X₂ X3 X4 + 8 = X₁
Consider the following Verilog statements(a)Write complete Verilog code to implement f1 and f2.(b) Use functional simulation to prove that f1 = f2. fl = (x1 & x3)| (~x1 & ~x3) | (x2 & x4) | (~x2 &
Consider the logic expressionsProve or disprove that f = g. f = X₁ X₂X²5 + X ₁ X ₂ X 4 X 5 + X₁ X₂ X 4 X 5 8 = X2 X3 X4 X₂ X 3 X 4 X 5 + X1 X3 X4 X5 + X ₁ X ₂ X 3 X 4 + X₁ X₂ X
(a) Use a schematic capture tool (which can be downloaded from the Internet; for example, from www.altera.com) to draw schematics for the following functionsf1 = x2x3x4 + x1x2x4 +
WriteVerilog code to implement the function f (x1, x2, x3) = Σm(1, 2, 3, 4, 5, 6) using the gate-level primitives. Ensure that the resulting circuit is as simple as possible.
Repeat Problem 2.69 for the functionsData From Problem 2.69A circuit with two outputs is defined by the logic functionsDerive a minimum-cost implementation of this circuit. What is the cost of your
Repeat Problem 2.78 for the circuit in Figure P2.6. Use only NAND gates in your circuit. X2 X3 Ix 12 2 x 2 X4 제전 지 천 lx X3 청 X3 D D D g
Consider the circuit in Figure P2.5, which implements functions f and g. What is the cost of this circuit, assuming that the input variables are available in both true and complemented forms?
A given system has four sensors that can produce an output of 0 or 1. The system operates properly when exactly one of the sensors has its output equal to 1. An alarm must be raised when two or more
Perform the following operations involving eight-bit 2’s complement numbers and indicate whether arithmetic overflow occurs. Check your answers by converting to decimal signand- magnitude
Repeat Problem 2.73 for the function f (x1, . . . , x4) = Σm(2, 3, 6, 8, 9, 12).Data From Problem 2.73Find the minimum-cost circuit consisting only of two-input NAND gates for the function f (x1, .
Repeat Problem 2.75 for the function f (x1, . . . , x4) = Σm(2, 3, 4, 5, 9, 10, 11, 12, 13, 15).Data From Problem 2.75Find the minimum-cost circuit consisting only of two-input NOR gates for the
Show that the circuit in Figure 3.4 implements the full-adder specified in Figure 3.3a.Figure 3.4Figure 3.3a Xi Vi C₁ Xi Yi HA S С HA S C (a) Block diagram (b) Detailed diagram Ci+1 Ci+1
Consider the circuit in Figure P3.1. Can this circuit be used as one stage in a ripple-carry adder? Discuss the pros and cons. The operation of transistors shown in the figure is described in
Prove the validity of the simple rule for finding the 2’s complement of a number, which was presented in Section 3.3. Recall that the rule states that scanning a number from right to left, all 0s
Determine the decimal values of the following unsigned numbers:(a) (0111011110)2(b) (1011100111)2(c) (3751)8(d) (A25F)16(e) (F0F0)16
Determine the decimal values of the following 1’s complement numbers:(a) 0111011110(b) 1011100111(c) 1111111110
Determine the decimal values of the following 2’s complement numbers:(a) 0111011110(b) 1011100111(c) 1111111110
Convert the decimal numbers 73, 1906, −95, and −1630 into signed 12-bit numbers in the following representations:(a) Sign and magnitude(b) 1’s complement(c) 2’s complement
Prove that the XOR operation is associative, which means that xi ⊕ ( yi ⊕ zi) = (xi ⊕ yi) ⊕ zi.
In Figure 3.17 we presented the structure of a hierarchical carry-lookahead adder. Show the complete circuit for a four-bit version of this adder, built using 2 two-bit blocks. €32 31-24
What is the critical delay path in the multiplier in Figure 3.35? What is the delay along this path in terms of the number of gates? m3 FA P7
Prove the validity of the expression Overflow = cn ⊕ cn−1 for addition of n-bit signed numbers.
Write a Verilog module to describe the 4 × 4 multiplier shown in Figure 3.35. Synthesize a circuit from the code and verify its functional correctness. m3 FA P7
Verify that a carry-out signal, ck , from bit position k − 1 of an adder circuit can be generated as ck = xk ⊕ yk ⊕ sk , where xk and yk are inputs and sk is the sum bit.
Consider the Verilog code in Figure P3.2. Given the relationship between the signals IN and OUT, what is the functionality of the circuit described by the code? Comment on whether or not this code
Determine the number of gates needed to implement an n-bit carry-lookahead adder, assuming no fan-in constraints. Use AND, OR, and XOR gates with any number of inputs.
Determine the number of gates needed to implement an eight-bit carry-lookahead adder assuming that the maximum fan-in for the gates is four.
Design a circuit that generates the 9’s complement of a BCD digit.
Derive a scheme for performing subtraction using BCD operands. Show a block diagram for the subtractor circuit.
Show a graphical interpretation of three-digit decimal numbers, similar to Figure 3.11. The left-most digit is 0 for positive numbers and 9 for negative numbers. Verify the validity of your answer by
Write complete Verilog code for the circuit that you derived in Problem 3.19.Data From Problem 3.19Derive a scheme for performing subtraction using BCD operands. Show a block diagram for the
Suppose that we want to determine how many of the bits in a three-bit unsigned number are equal to 1. Design the simplest circuit that can accomplish this task.
Repeat Problem 3.21 for a six-bit unsigned number.Data From Problem 3.21Suppose that we want to determine how many of the bits in a three-bit unsigned number are equal to 1. Design the simplest
Repeat Problem 3.21 for an eight-bit unsigned number.Data From Problem 3.21 Suppose that we want to determine how many of the bits in a three-bit unsigned number are equal to 1. Design the
In a ternary number system there are three digits: 0, 1, and 2. Figure P3.3 defines a ternary half-adder. Design a circuit that implements this half-adder using binary-encoded signals, such that two
Design a ternary full-adder circuit, using the approach described in Problem 3.25.Data From Problem 3.25In a ternary number system there are three digits: 0, 1, and 2. Figure P3.3 defines a ternary
Consider the subtractions 26 − 27 = 99 and 18 − 34 = 84. Using the concepts presented in Section 3.3.4, explain how these answers (99 and 84) can be interpreted as the correct signed results of
Redo Listing 9.9, replacing the character array with a string object. The program should no longer have to check whether the input string fits, and it can compare the input string to "" to check for
Suppose the Fizzle class has only the data members shown: class Fizzle{private:double bubbles[4000];...};Why would this class not be a good candidate for a user-defined move constructor?What change
Revise the following short program so that it uses a lambda expression instead of f1(). Don’t change show2().#includetemplatevoid show2(double x, T& fp) {std::cout << x << " -> "
Revise the following short and ugly program so that it uses a lambda expression instead of the Adder functor. Don’t change sum().#include#includeconst int Size = 5;templatevoid sum(std::array a,
Modify Listing 11.15 so that it writes the successive locations of the random walker into a file. Label each position with the step number. Also have the program write the initial conditions (target
Modify Listing 11.15 so that instead of reporting the results of a single trial for a particular target/step combination, it reports the highest, lowest, and average number of steps for N trials,
Consider the following variation of the Stack class defined in Listing 10.10:// stack.h -- class declaration for the stack ADTtypedef unsigned long Item;class Stack{private:enum {MAX = 10}; //
The Bank of Heather has performed a study showing that ATM customers won’t wait more than one minute in line. Using the simulation from Listing 12.10, find a value for number of customers per hour
Rewrite the following code using braced initialization list syntax; the rewrite should dispense with using the array ar:class Z200{private:int j;char ch;double z;public:Z200(int jv, char chv, zv) :
Here is part of a short program:int main(){using namespace std;// list of double deduced from list contentsauto q = average_list({15.4, 10.7, 9.0});cout << q << endl;// list of int
For the following short program, which function calls are errors and why? For the valid calls, what does the reference argument refer to?#includeusing namespace std;double up(double x) { return 2.0*
Here is declaration for the Cpmv class:class Cpmv{public:struct Info{std::string qcode;std::string zcode;};private:Info *pi;public:Cpmv();Cpmv(std::string q, std::string z);Cpmv(const Cpmv &
a. What does the following short program display and why?#includeusing namespace std;double up(double x) { return 2.0* x;}void r1(const double &rx) {cout << “const double &
Which member functions are special member functions, and what makes them special?
Revise the baseDMA-lacksDMA-hasDMA class hierarchy so that all three classes are derived from an ABC. Test the result with a program similar to the one in Listing 13.10. That is, it should feature an
Do Programming Exercise 6 but modify it to get information from a file. The first item in the file should be the number of contributors, and the rest of the file should consist of pairs of lines,
Modify Listing 8.14 so that it uses two template functions called SumArray() to return the sum of the array contents instead of displaying the contents. The program now should report the total number
Write a function that takes three arguments: the name of an int array, the array size, and an int value. Have the function set each element of the array to the int value.
Rewrite the following so that it doesn’t use using declarations or using directives:#includeusing namespace std;int main(){double x;cout << "Enter value: ";while (! (cin >> x) ){cout
Start with the following class declaration:// base classclass Cd { // represents a CD diskprivate:char performers[50];char label[20];int selections; // number of selectionsdouble playtime; // playing
What does a derived class inherit from a base class?
What doesn’t a derived class inherit from a base class?
Suppose the return type for the baseDMA::operator=() function were defined as void instead of baseDMA &.What effect, if any, would that have? What if the return type were baseDMA instead of
The Benevolent Order of Programmers maintains a collection of bottled port. To describe it, the BOP Portmaster has devised a Port class, as declared here:#includeusing namespace std;class
In what order are class constructors and class destructors called when a derivedclass object is created and deleted?
If a derived class doesn’t add any data members to the base class, does the derived class require constructors?
Suppose a base class and a derived class both define a method with the same name and a derived-class object invokes the method. What method is called?
When should a derived class define an assignment operator?
Can you assign the address of an object of a derived class to a pointer to the base class? Can you assign the address of an object of a base class to a pointer to the derived class?
Can you assign an object of a derived class to an object of the base class? Can you assign an object of a base class to an object of the derived class?
Showing 400 - 500
of 741
1
2
3
4
5
6
7
8