One of the main applications of priority queues is in operating systemsforscheduling jobs on a CPU. In this project you are to build a program that schedules simulated CPU jobs. Your program should...
Global Unified Technology Sales (GUTS) is moving toward a bring your own device (BYOD) model for employee computing. Employees can use traditional desktop computers in their offices. They can also...
Implement the following method using the Fork/Join Framework to assign random values to the list. public static void parallelAssignValues(double[] list) Write a test program that creates a list with...
In one paragraph, describe two short computer applications that exhibit temporal and/or spatial locality. Describe how. Be specific.
Show the stack with all activation record instances, including static and dynamic chains, when execution reaches position 1 in the following skeletal program. Assume bigsub is at level 1. function...
Alice uses the same key when she encrypts a message to be sent to Bob and when she decrypts a message received from Bob. Is this an example of symmetric-key or asymmetric-key cryptography? Explain.
a. You have created several classes for Sammys Seashore Supplies. Now, Sammy has decided to restructure his rates to include different fees for equipment types in addition to the fees based on rental...
a. Write an application that extends JPanel and displays your name. Place boxes of different colors around your name at intervals of 10, 20, 30, and 40 pixels. Save the file as JBorderPanel.java. b....
Prove that a two-input multiplexor is also universal by showing how to build the NAND (or NOR) gate using a multiplexor.
Write an application named BadSubscriptCaught in which you declare an array of eight first names. Write a try block in which you prompt the user for an integer and display the name in the requested...
If the strWord variable contains the string spring, which of the following statements assigns the letter r to the strLetter variable? a. strLetter = strWord.Substring(2) b. strLetter = strWord(2) c....
Create a class named BaseballGame that contains data fields for two team names and scores for each team in each of nine innings. Create get and set methods for each field; the get and set methods for...
Create a Windows Forms application. Use the following names for the project and solution, respectively: Texting Project and Texting Solution. Save the application in the VB2017\Chap01 folder. a....
Gabrielle receives 52 paychecks each year. She always deposits a specific percentage of her gross pay into her savings account. She also receives a bonus check, which is always more than $250, at the...
Your downloadable files for Chapter 6 include DEBUG06-01.txt, DEBUG06-02.txt, and DEBUG06-03.txt. Each file starts with some comments that describe the problem. Comments are lines that begin with two...
Write an application that allows the user to choose insurance options in JCheckBoxes. Use a ButtonGroup to allow the user to select only one of two insurance typesHMO (health maintenance...
Write a program that enables the user to add/remove points by clicking the left/right mouse button, and displays a line that connects the pair of nearest points, as shown in Figure 22.4. |...
Create a Windows Forms application. Use the following names for the project and solution, respectively: Shipping Depot Project and Shipping Depot Solution. Save the application in the VB2017\Chap08...
Each salesperson at Rembrandt Auto-Mart is assigned an ID number that consists of five characters. The first three characters are numbers. The fourth character is a letter: either the letter N if the...
1. In what order would you develop the four subsystems? Support your answer. 2. Reviewing your work from Chapter 3, assign each of your use cases to a particular subsystem. Does this change your...
The two-dimensional arrays m1 and m2 are identical if they have the same contents. Write a method that returns true if m1 and m2 are identical, using the following header:public static...
Write a program that animates a ball moving along a sine curve, as shown in Figure 15.32. When the ball gets to the right border, it starts over from the left. Enable the user to resume/pause the...
Even if he runs out of instructions to execute, the Little Man only stops trying to execute instructions under one condition. What is that condition? What happens if the Little Man runs out of...
Create your own data analysis and visualization presentation. The purpose of this project is for you to search for a publicly available data set using the Internet and create your own presentation...
In this exercise, you modify one of the Projected Sales applications from this chapters Apply lesson. Use Windows to make a copy of the Projected Sales Solution-ForNext folder. Rename the copy...
Line segments and polygons are used to model geometric objects in computer graphics, video games, and computer-aided design, often in data pipelines that use the output of one program as the input to...
Write a Little Man program that prints out the sums of the odd values from 1 to 39. The output will consist of 1, 1 + 3, 1 + 3 + 5, 1 + 3 + 5 + 7 . . . . No input is required. As an aside, do you...
The TREE-CSP-SOLVER (Figure 6.10) makes arcs consistent starting at the leaves and working backwards towards the root. Why does it do that? What would happen if it went in the opposite direction?...
A. Design a data warehouse star schema for a dimensional database named JRJ-DW. The fact table measure will be Retail Price. B. Create the JRJ-DW database in a DBMS product. C. What transformations...
Jesse wants me to recommend a vendor who offers an ERP strategy. I need to review the SAP and Oracle Web sites, and at least two others that offer ERP solutions, and reply to her with the results and...
What gift will a customer who orders the book Shortest Poems receive? Use the actual book retail value to determine the gift.
Create a class named Horse that contains data fields for the name, color, and birth year. Include get and set methods for these fields. Next, create a subclass named RaceHorse, which contains an...
Open the Proper Case Solution.sln file contained in the VB2017\Chap07\Proper Case Solution folder. The interface provides a text box for entering a persons first and last names. The btnProper_Click...
Write a program that creates two instances of the generic class LinkedList given in Listing 12.12. The first instance is stadiumNames and will hold items of type String. The second instance is...
In Figure 2-28, there are four stations that can transmit. Suppose four more stations are added. Provide the chip sequences of these stations. Figure 2-28 A = (-1-1 -1 +1 +1 -1 +1 +1) B = (-1 -1 +1-1...
In this exercise, you modify the Enrollment application from Exercise 6. Use Windows to make a copy of the Enrolled Solution folder. Rename the folder Modified Enrolled Solution. Open the Enrolled...
Write an application that displays every perfect number from 1 through 1,000. A perfect number is one that equals the sum of all the numbers that divide evenly into it. For example, 6 is perfect...
In this problem, we will explore how deepening the pipeline affects performance in two ways: faster clock cycle and increased stalls due to data and control hazards. Assume that the original machine...
Write the following two generic methods using heap sort. The first method sorts the elements using the Comparable interface and the second uses the Comparator interface. public static void...
Open the Validate ISBN Solution.sln file contained in the VB2017\Chap07\Validate ISBN Solution folder. The interface provides a text box for entering a 13-character ISBN. The btnValidate_Click...
Rewrite Programming Exercise 21.4 using streams. Data from Programming Exercise 21.4 Write a program that prompts the user to enter a text file name and displays the number of vowels and consonants...
Answer these questions in light of HIPPA requirements: Does HIPAA apply to the RTGM system? Why or why not? How should the system ensure data security during transmission between a patients mobile...
Create a Windows Forms application. Use the following names for the project and solution, respectively: Hales Project and Hales Solution. Save the application in the VB2017\Chap04 folder. Change the...
In a network using the Selective-Repeat protocol with m = 4 and the sending window of size 8, the value of variables are S f = 62, S n = 67, and R n = 64. Packet 65 has already been acknowledged at...
In this exercise, you modify the Proper Case application from Exercise 6. If necessary, complete Exercise 6. Then, use Windows to make a copy of the Proper Case Solution folder. Rename the copy...
Use a text editor to create a comma-delimited file of user IDs and passwords. Revise any one of the games you have created throughout this book so the user must first enter a correct ID and its...
a. Create a quiz game that displays, in turn, five questions about any topic of your choice. All five questions should have the same three possible multiplechoice answers. For example, you might ask...
In this exercise, you modify the Monthly Payment application from this chapters Apply lesson. Use Windows to make a copy of the Payment Solution folder. Rename the copy Modified Payment Solution....
Open the CityState Solution.sln file contained in the VB2017\Chap08\CityState Solution folder. Open the Code Editor window. Locate the btnDisplay_Click procedure. The procedure should declare and...
Describe the trade-offs of increasing each of the following cache parameters while keeping the others the same: (a) Block size (b) Associativity (c) Cache size
Describe an efficient greedy algorithm for making change for a specified value using a minimum number of coins, assuming there are four denominations of coins (called quarters, dimes, nickels, and...
Williams Cable Company wants an application that displays a customers monthly cable bill, which is based on the information shown in Figure 4-59. Create a Windows Forms application. Use the following...
Write a program that will record the votes for one of two candidates by using the class VoteRecorder, which you will design and create. Vote Recorder will have static variables to keep track of the...
a. You have created several classes for Carlys Catering. Now, create a new abstract class named Employee. The class contains data fields for an employees ID number, last name, first name, pay rate,...
Our DynamicArray class, as given in Code Fragment 5.3, does not support use of negative indices with _ _getitem_ _. Update that method to better match the semantics of a Python list. Code Fragment...
Write a program to implement CDMA. Assume that the length of a chip sequence is eight and the number of stations transmitting is four. Your program consists of three sets of processes: four...
Write the code to declare a Map that associates peoples names with their ages. Add mappings for your own name and age, as well as those of a few friends or relatives.
Using your schema from Question 10, write an XSLT program to display the tutor information in the form of an HTML table. Data from Question 10: Construct a simple XML schema that describes a tutor....
Open the VB2017\Chap07\FixIt Solution\FixIt Solution.sln file. The interface provides a text box for the user to enter one or more words. The btnReverse_Click procedure should display the characters...
Data is stored in the R4D4 computer using eight-digit base 4 notation. Negative numbers are stored using 4s complement. a. What is the sign-and-magnitude value of the following 4s complement number?...
Create a UsedCarException class that extends Exception; its constructor receives a value for a vehicle identification number (VIN) that is passed to the parent constructor so it can be used in a...
Redefine TreeNode by adding a reference to a node?s parent, as shown below: Reimplement the insert and delete methods in the BST class to update the parent for each node in the tree. Add the...
At the beginning of every year, Khalid receives a raise on his previous years salary. He wants a program that calculates and displays the amount of his annual raises for the next three years, using...
1. Draw a UML domain model class diagram for the system as described here. Be as specific and accurate as possible, given the information provided. If needed information is not given, make realistic...
Complete the following tasks: 1. Develop a simple network diagram that includes all four SBRU subsystems (resort relations, student booking, accounting/finance, and social networking) assuming that...
In several Game Zone assignments earlier in this book, you created games similar to Hangman in which the user guesses a secret phrase by selecting a series of letters. These versions had limited...
Assume that we have a function for an application of the form F(i, p), which gives the fraction of time that exactly i processors are usable given that a total of p processors is available. That...
Revise Listing 30.10, ParallelMergeSort.java, to define a generic parallelMergeSort method as follows: Listing public static void parallelMergeSort(E[] list) 1 import...
Data was stored in the Digital PDP-9 computer using six-digit octal notation. Negative numbers were stored in 8s complement form. a. How many bits does six-digit octal represent? Show that 8s...
Create an Automobile class for a dealership. Include fields for an ID number, make, model, color, year, and miles per gallon. Include get and set methods for each field. Do not allow the ID to be...
Consider the following C code snippet.? (a) Implement the C code snippet in MIPS assembly language. Use $s0 to hold the variable i. Be sure to handle the stack pointer appropriately. The array is...
Write a method called stutter that doubles the size of a list by replacing every integer in the list with two of that integer. For example, suppose a variable list stores the values [1, 8, 19, 4, 17]...
The case description at the beginning of this chapter presented the situation of a new project leader, Mary Hendricks. Her company, Custom Apps Now, had just promoted her to be a project leader,...
For this Programming Project, start with implementations of the Person, Student, and Undergraduate classes as depicted in Figure 8.4 and the polymorphism demo in Listing 8.6. Define the Employee,...
Sammys Seashore Supplies rents beach equipment to tourists. You have developed a class that holds equipment rental information and an application that tests the methods using four objects of the...
Suppose NASA wants to link n stations spread out over the solar system using free-space optical communication, which is a technology that involves shooting lasers through space between pairs of...
Write the SQL command to revoke user Stetsons privilege.
A field programmable gate array (FPGA) uses configurable logic blocks (CLBs) rather than logic gates to implement combinational logic. The Xilinx Spartan 3 FPGA has propagation and contamination...
You have designed and created tables for the City Jail database. These tables dont include any constraints. Review the information to determine what constraints you might need for the City Jail...
A. Design a data warehouse star schema for a dimensional database named QACS-DW. The fact table measure will be Item Price. B. Create the QACS-DW database in a DBMS product. C. What transformations...
Suppose the multicycle MIPS processor has the component delays given in Table 7.6. Alyssa P. Hacker designs a new register file that has 40% less power but twice as much delay. Should she switch to...
A(n) _____________________ is an environment that contains all of the tools and features you need to create, run, and test your programs. a. GUI b. IDE c. UDE d. User interface
a. You created a Die class that you can use to instantiate objects that hold one of six randomly selected values. Modify this class so its value field is rotected instead of private. This will allow...
Create a program that a teacher can use to enter the midterm and final test scores for any number of students. Each test is worth 200 points. The program should display each students grade, which is...
Write a general blue-ify function. Write a function that accepts a picture as input, then doubles the blue value of every pixel and cut the red and green values in half.
Write the C++ code to compare the contents of two int variables named code1 and code2. If both variables contain the same value, display the Equal message; otherwise, display the Not equal message.
Write an application that stores at least five different department and supervisor names in a two-dimensional array. Allow the user to enter a department name (such as Marketing) and display the...
In 12s complement base 12, how would you know if a number is positive or negative?
Write an inheritance hierarchy that stores data about sports players. Create a common superclass and/or interface to store information common to any player regardless of sport, such as name, number,...
Write a method public static String middle(String str) that returns a string containing the middle character in str if the length of str is odd, or the two middle characters if the length is even....
Create a DataEntryException class whose getMessage() method returns information about invalid integer data. Write a program named GetIDAndAge that continually prompts the user for an ID number and an...
Write a program that processes a data file of students course grade data. The data arrive in random order; each line stores information about a students last name, first name, student ID number,...
Write a short Java method, isMultiple, that takes two long values, n and m, and returns true if and only if n is a multiple of m, that is, n = mi for some integer i.
Use Windows to rename the Colors Solution folder to Colors Solution-Modified. Open the Colors Solution.sln file contained in the VB2017\Chap01\Colors Solution-Modified folder. If necessary, open the...
Revise GraphView in Listing 28.6 to display a weighted graph and a minimum spanning tree for the graph in Figure 29.1, as shown in Figure 29.26. The edges in the MST are shown in red. Listing Seattle...
Modify the Card class so the setValue() method does not allow a Cards value to be less than 1 or higher than 13. If the argument to setValue() is out of range, assign 1 to the Cards value. You also...
In this exercise, you modify the Gross Pay application from this chapters Focus lesson. Use Windows to make a copy of the Gross Solution folder. Rename the copy Modified Gross Solution. Open the...
Write a Java program that serves as a primitive web browser. For this assignment it merely needs to input a server name and display the HTML that is sent by the web server. A web server normally...
Modify Exercise 10, adding an interface called SidedObject that contains a method called displaySides(); this method displays the number of sides the object possesses. Modify the GeometricFigure...
Sketch a reasonably simple combinational circuit implementing each of the functions from Exercise 2.6.