Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
Compute an arithmetic mean(average), median, and mode for up to 50 test scores. The data are contained in a text file.
Most programming languages do not allow you to ask two or more questions in a single comparison by using a logical And Operator
Modify it so that all the elements of the array are printed softer each pass of the outer loop
Design a hashed file of words that could be used as a spell checker. What would you use as a hash function?
In English like pseudo-code, or structured English -- just to make sure everyone can read it; write an algorithm to determine if a string is a palindrome.
What is the address of the entry in the third row and fourth column? What if each entry requires two memory cells?
Describe a method for storing three-dimensional homogeneous arrays. What addressing formula would be used to locate the entry in the ith plane, jth row
Show how to use an order-statistic tree to count the number of inversions in an array of size n in time O(n lg n).
How can I sort an array of integers in O(n) time, where different integers may have different numbers of digits, but the total number of digits over
Let A be an array of n elements. An element x is said to be a majority element in A if it occurs in A more than n/2 times
Write the definition of a method, isReverse , whose two parameters are arrays of integers of equal size.
Multi-dimensional arrays could cost a lot of memory. How much memory (how many bytes) does it take to create an integer array of 3 dimensions
Write an interactive Java program that illustrates the use of methods, constructors, loops and arrays. Your Program will do the following:
Implement a recursive algorithm to find the maximum element of given integer array A. Count the number of comparisons while finding the maximum element
Write a program that prompts for the number of rooms in a house. Use the input, n, to declare an array of rectangles dynamically
A client/server system requires remote users to use a password to log onto the server. Describe a simple scheme that would thwart eavesdroppers
Create a program that reads a 5 x 5 two-dimensional array of integers and then prints the row sums and the column sums:
A microcomputer memory is built from 64K X 1 DRAM, with DRAM cell array organized into 256 rows. Each row needs to be refreshed at least once every 4 ms
The application will multiply the columns of the matrix (e.g., 5 * 8 * 4 * 17 = 2720) and subtract the rows (e.g., 5 - 2 - 3 = 0).
Data structures include: 1. a linked list, 2. an ordered, one-dimensional array, and 3. a binary tree. Suppose the list of letters R, A, N, B, C, F, X and G
Write a program that reads numbers from the keyboard into an array of type int[]. Assume that there will be 50 or fewer entries in the array.
The National Earthquake Information Center has asked you to write a program for the following decision table to characterize an earthquake based on its Richter
Create a flowchart for this program that would produce a count of the number of residents residing in each of the 22 voting districts
Hypothetical situation: ABC Corporation performs sensitive research and development for a number of major corporation clients.
Develop an Algorithm to implement the following function and describe how the required task can be achieved in a step by step process.