Question Answers
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
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 Tutor
AI Flashcards
FREE
Search
Search
Sign In
Register
study help categories
/
Computer science
Top Selling Computer science Questions
What must be done to text before it can be animated?
Write an HTML document to create a form that collects favorite popular songs, including the name of the song, the composer, and the performing artist or group. This document must call one PHP script...
Which of the following assigns the number 0 to each element in a two-row, four-column Integer array named intSums? a. For intRow As Integer = 0 To 1 For intCol As Integer = 0 To 3 intSums(intRow,...
Which of the following returns the highest column subscript in a two-dimensional array named decPays? a. decPays.GetUpperBound(1) b. decPays.GetUpperBound(0) c. decPays.GetUpperSubscript(0) d....
Explain why the callback function is written as an anonymous function in the request phase function.
Open the Professor Juarez Solution.sln file contained in the VB2017\Chap08\Professor Juarez Solution folder. a. Open the Code Editor window and locate the btnDisplay_Click procedure. The procedure...
How are beans used by JSP applications?
Consider the calculation of roots of an equation z N = where N 1 is an integer and = e j a nonzero complex number. (a) First verify that there are exactly N roots for this equation and that they...
The geometric series
Consider a signal x(t) = 4cos(2t) defined for < t < . For the following values of the sampling period T s generate a discretetime signal x(n) = x(nT s ) = x(t) t=nTs . (i) T s = 0.1, (ii) T s =...
While walking down a dark alley, Ben Bit diddle encounters a two input gate with the transfer function shown in Figure 1.48. The inputs are A and B and the output is Y. A Figure 1.48 Two-Input DC...
Build a 32-bit synchronous Up/Down counter. The inputs are Reset and Up. When Reset is 1, the outputs are all 0. Otherwise, when Up = 1, the circuit counts up, and when Up = 0, the circuit counts...
Implement the following functions using a single 16 3 ROM. Use dot notation to indicate the ROM contents. (a) X = AB +BCD + AB (b) Y = AB +BD (c) Z = A +B+ C + D
Write an HDL module for the soda machine dispenser from Exercise 3.26. Data from problem 3.26 You have been enlisted to design a soda machine dispenser for your department lounge. Sodas are partially...
2 Implement the functions from Exercise 5.51 using a 4 8 3 PLA. You may use dot notation.
Give three examples from the MIPS architecture of each of the architecture design principles: (1) simplicity favors regularity (2) make the common case fast (3) smaller is faster (4) good design...
Explain how the following program can be used to determine whether a computer is big-endian or little-endian:? li $t0, 0XABCD9876 Sw $t0, 100( $0) lb $s5, 101($0)
Ben Bitdiddle is trying to compute the function f(a, b) = 2a + 3b for nonnegative b. He goes overboard in the use of function calls and recursion and produces the following high-level code for...
In less than one page, describe four everyday activities that exhibit temporal or spatial locality. List two activities for each type of locality, and be specific.
Repeat Exercise 8.9 for the following repeating sequence of lw addresses (given in hexadecimal) and cache configurations. The cache capacity is still 16 words. 74 A0 78 38C AC 84 88 8C 7C 34 38 13C...
Using a diagram similar to Figure 7.52, show the forwarding and stalls needed to execute the following instructions on the pipelined MIPS processor.? add $t0, $s0, $s1 sub $t0, $t0, $s2 $t1, 60( $t0)...
The Queen Anne Curiosity Shop sells both antiques and current-production household items that complement or are useful with the antiques. For example, the store sells antique dining room tables and...
Write a SQL statement to display all columns of all rows of PET. Do not use the asterisk (*) notation. PET_OWNER ( OwnerID , OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail) PET ( PetID ,...
Write a SQL statement to display the breed and type of all pets. PET_OWNER ( OwnerID , OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail) PET ( PetID , PetName, PetType, PetBreed, PetDOB,?...
Show that the summation ENog, i] is O(n log n)
Show that the summation . You may assume that n is a power of 2. E log2(n/i)] is O(n)
The Queen Anne Curiosity Shop sells both antiques and current-production household items that complement or are useful with the antiques. For example, the store sells antique dining room tables and...
Write an SQL statement to display the OwnerLastName, OwnerFirstName, PetName, PetType, PetBreed, and AverageLifeExpectancy for pets with a known PetBreed. PET_OWNER ( OwnerID , OwnerLastName,...
In Chapter 14, you created an interactive GUI version of Carlys Catering. Now, rewrite the program using JavaFX and Scene Builder. Allow the user to enter the number of guests for an event into a...
In Chapter 14, you created an interactive GUI version for Sammys Seashore Rentals. Now, rewrite the program using JavaFX and Scene Builder that allows the user to enter a rental time in hours into a...
Order the following list of functions by the big-Oh notation. Group together (for example, by underlining) those functions that are big-Theta of one another.
Which of the following is not an E-R model relationship? a. Some-to-many b. One-to-one c. One-to-many d. Many-to-many
Create and execute SQL statements to perform the following actions, using the JustLee Books database: 1. Create a new user account. The account name should be a combination of your first initial and...
Why are functions in this chapter referred to as single-row functions?
Whats the name of the table provided by Oracle 11g for completing queries that dont involve a table? a. DUMDUM b. DUAL c. ORAC d. SYS
Describe the structure and pseudocode for an array-based implementation of an index-based list that achieves O(1) time for insertions and removals at index 0, as well as insertions and removals at...
Give an O(n)-time algorithm for computing the depth of all the nodes of a tree T, where n is the number of nodes of T.
Suppose you are given the array A = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], and you then perform the binary search algorithm given in this chapter to find the number 8. Which numbers in the array A...
Suppose you work for a computer game company, which is designing a first person shooting game. In this game, players stand just outside of a circular playing field and shoot at targets inside the...
Perform a similar analysis for method Loop3 shown in Algorithm 1.21. Algorithm Loop1(n): s-0 for i + 1 to n do s-s+i Algorithm Loop2(n): p-1 for i - 1 to 2n do p-p.i Algorithm Loop3(n): p-1 for i +1...
How many walls were erased to construct the maze in Figure 7.3, not counting the start and finish walls? Figure 7.3
Let A be a collection of objects. Describe an efficient method for converting A into a set. That is, remove all duplicates from A. What is the running time of this method?
Sports announcers are expected to keep talking during a broadcast of a sporting event even when there is nothing actually happening, such as during half-time. One common way to fill empty time is...
Another problem of interest in percolation theory is to determine the threshold probability where a liquid will permeate a porous material. One way to model this is to consider the barriers between...
Suppose we have 20 singleton sets, numbered 0 through 19, and we call the operation union(find(i),find(i + 5)), for i = 0, 1, 2,..., 14. Draw a picture of a tree-based representation of the sets that...
Provide an example instance of the fractional knapsack problem where a greedy strategy based on repeatedly choosing as much of the highest-benefit item as possible results in a suboptimal solution.
Suppose we are given a set of tasks specified by pairs of the start times and finish times as T = {(1, 2),(1, 3),(1, 4),(2, 5),(3, 7),(4, 9),(5, 6),(6, 8),(7, 9)}. Solve the task scheduling problem...
Suppose that the coins of the fictional country of Combinatoria come in the denominations, d 1 , d 2 ,...,d k , where d 1 = 1 and the other d i values form a set of distinct integers greater than 1....
Sally is hosting an Internet auction to sell n widgets. She receives m bids, each of the form I want k i widgets for d i dollars, for i = 1, 2,...,m. Characterize her optimization problem as a...
Tamarindo University and many other schools worldwide are doing a joint project on multimedia. A computer network is built to connect these schools using communication links that form a free tree....
Show that every language L in P is polynomial-time reducible to the language M = {5}, that is, the language that simply asks whether the binary encoding of the input is equal to 5.
Suppose the football coach for the Anteaters has heard about your abilities to solve challenging problems and has hired you to write a computer program that can decide which of their many trophies to...
Show how to construct a Boolean circuit C such that, if we create variables only for the inputs of C and then try to build a Boolean formula that is equivalent to C, then we will create a formula...
Consider the problem DNF-DISSAT, which takes a Boolean formula S in disjunctive normal form (DNF) as input and asks whether S is dissatisfiable, that is, there is an assignment of Boolean values to...
Draw an example of a graph with 10 vertices and 15 edges that has a clique of size 6.
Given a set P of n points, design an efficient algorithm for constructing a simple polygon whose vertices are the points of P.
Show how to modify the KMP string pattern matching algorithm so as to find every occurrence of a pattern string P that appears as a substring in T, while still running in O(n + m) time. (Be sure to...
Using only the instructions shown in Figure 1-10, create an algorithm that displays the average of four numbers. Be sure to indent the instructions appropriately. calculate the average by dividing...
A program uses a char variable named department and two double variables named salary and raise. The department variable contains one of the following letters (entered in either uppercase or...
How many times will the computer process the cout statement in the following code? for (int numTimes = 1; numTimes < 10; numTimes += 2) cout < < numTimes < < endl; //end for a. 0 b. 5 c. 6 d. 9
Write an assignment statement that updates an accumulator variable named totalPay by the value in the grossPay variable.
Write an assignment statement that updates a counter variable named quantity by 5.
Which of the following updates the total accumulator variable by the value in the sales variable? a. total = total + sales; b. total = sales + total; c. total += sales; d. All of the above
Write the C++ code to display the integers 15, 12, 9, 6, 3, and 0 on separate lines on the computer screen. Use the for statement and an int variable named num.
If necessary, create a new project named Intermediate25 Project and save it in the Cpp8\Chap13 folder. Also create a new source file named Intermediate25.cpp. Write a program that accepts a string of...
Figure 5-35 shows the MifflinSt Jeor formulas for calculating a persons basal metabolic rate (BMR), which is the minimum number of calories needed to keep his or her body functioning while resting...
If necessary, create a new project named Introductory21 Project and save it in the Cpp8\Chap13 folder. Also create a new source file named Introductory21.cpp. Write a program that allows the user to...
As you learned in the chapter, you must be careful when comparing two real numbers for either equality or inequality because some real numbers cannot be stored precisely in memory. To determine...
Allenton Water Department wants a program that calculates a customers monthly water bill. The clerk will enter the current and previous meter readings. The program should calculate and display the...
Follow the instructions for starting C++ and viewing the Advanced20.cpp file, which is contained in either the Cpp8\Chap08\Advanced20 Project folder or the Cpp8\Chap08 folder. (Depending on your C++...
Use the nums array to answer. The array was declared using the int nums[4] = {10, 5, 7, 2}; statement. The x and total variables are int variables and are initialized to 0. The avg variable is a...
Draw a flowchart for the bubble sort program shown in Figure 11-34. 1 //Bubble Sort.cpp - uses the bubble sort to sort the 2 //contents of a one-dimensional array in ascending order 3...
If necessary, create a new project named Advanced26 Project and save it in the Cpp8\Chap11 folder. Also create a new source file named Advanced26.cpp. Declare a 12-element int array named days....
Follow the instructions for starting C++ and viewing the Advanced27.cpp file, which is contained in either the Cpp8\Chap11\Advanced27 Project folder or the Cpp8\Chap11 folder. (Depending on your C++...
In this exercise, you modify the program from Computer Exercise 31. The modified program will allow the user to change the grading scale while the program is running. If necessary, create a new...
Follow the instructions for starting C++ and viewing the ModifyThis18.cpp file, which is contained in either the Cpp8\Chap12\ModifyThis18 Project folder or the Cpp8\Chap12 folder. (Depending on your...
If necessary, create a new project named ModifyThis19 Project and save it in the Cpp8\Chap12 folder. Enter the C++ instructions shown earlier in Figure 12-10 into a new source file named...
A message that asks a user for input is a(n) ___________. a. Eomment b. Echo c. Prompt d. Declaration
In this exercise, you will create a program that allows the user to enter an employees gross pay amount as well as his or her filing status and number of withholding allowances. The program should...
Draw a typical hierarchy chart for a program that produces a monthly bill for a cell phone customer. Try to think of at least 10 separate modules that might be included. For example, one module might...
Your downloadable files for Chapter 2 include a file named DEBUG02-04.jpg that contains a flowchart with syntax and/or logical errors. Examine the flowchart and then find and correct all the bugs.
A sequence structure can contain _____________. a. Only one task b. Exactly three tasks c. No more than three tasks d. Any number of tasks
A ______________expression has one of two values: true or false. a. Georgian b. Boolean c. Barbarian d. Selective
If j k is true, then ______________. a. j = k is true b. j > k might be true c. j < k might be true d. Both b and c are true.
Which of the following must always be true? a. g < 12 AND g < 18 b. g = 12 OR h = 17 c. g 12 OR g 15 d. g > 12 AND g < 21
When you use a range check, you always compare a variable to ______________ value in the range. a. The lowest b. The highest c. An end-of-range value d. The average
If sales = 100, rate = 0.10, and expenses = 50, which of the following expressions is true? a. Sales >= expenses AND rate < 1 b. Sales < 200 OR expenses < 100 c. Expenses = rate OR sales = rate d....
If a is true, b is true, and c is false, which of the following expressions is true? a. a OR b AND c b. a AND b AND c c. a AND b OR c d. Two of the above
Computer programs also are known as____________. a. Data b. Hardware c. Software d. Information
The major computer operations include ____________. a. Input, processing, and output b. Hardware and software c. Sequence and looping d. Spreadsheets, word processing, and data communications
Visual Basic, C++, and Java are all examples of computer ____________. a. Operating systems b. Programming languages c. Hardware d. Machine languages
A programming languages rules are its ____________. a. Syntax b. Logic c. Format d. Options
Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for one edge of a cube. The program calculates the surface area of one side of the cube,...
Match the definition with the appropriate term. 1. Computer system devices a. compiler 2. Another word for program b. syntax 3. Language rules c. logic 4. Order of instructions d. hardware 5....
Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter values for the current year and the users birth year. The program outputs the age of the user...
Your downloadable files for Chapter 5 include DEBUG05-01.txt, DEBUG05-02.txt, and DEBUG05-03.txt. Each file starts with some comments that describe the problem. Comments are lines that begin with two...
Your downloadable files for Chapter 6 include a file named DEBUG06-04.jpg that contains a flowchart with syntax and/or logical errors. Examine the flowchart, and then find and correct all the bugs.
Which of the following is true regarding the data hierarchy? a. Fields contain records. b. Characters contain fields. c. Fields contain files. d. Files contain records.
In this exercise, you modify the Rectangle class from Lab 15-2 so that it includes an overloaded method. a. If necessary, create a new project named Advanced20 Project and save it in the Cpp8\Chap15...
Three-dimensional arrays _____. a. Are supported in many modern programming languages b. Always contain at least nine elements c. Are used only in object-oriented languages d. All of the above
Showing 4400 - 4500
of 5000
First
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50