homework

How to animate a Raphael object along a path?

The object could be simple, a rect or circle. But the path should be a bezier curve. Please provide javascript/Raphael code if not too much trouble. It will be nice if there is trailing effect of the moving object during annimation. Thanks, ...

Insert text into table in Microsoft Word (C++, Visual Studio 2005)

Hello. I've managed to figure out how to create a Word document using PIA and C++ in Visual Studio. But I can't figure out how to write text to the table cells. I would appreciate any help. Thanks EDIT: Thanks for your comments. I've finally managed to figure it out: I can loop through the cells in the table, select the cells with Cell...

What is the difference between Set and List?

What is the fundamental difference between the Set<E> and List<E> interfaces? ...

If you had an array of Strings, what is the quickest way to sort this array in ascending order ?

If you had an array of Strings, what is the quickest way to sort this array in ascending order ? ...

In theory, is it easier to remove elements from an ArrayList or a LinkedList ?

In theory, is it easier to remove elements from an ArrayList or a LinkedList ? ...

The Queue data structure is said to follow the FIFO strategy. What does this mean ?

The Queue data structure is said to follow the FIFO strategy. What does this mean ? ...

what LIFO means and which data structure follows the LIFO strategy ?

what LIFO means and which data structure follows the LIFO strategy ? ...

Can you give an example where the Queue data structure can be specially helpful

Can you give an example where the Queue data structure can be specially helpful ...

What are some of the different ways a developer can create his own List objects?

What are some of the different ways a developer can create his own List objects? ...

When you create a collection object (List, Set, etc), usually they take a parameter known as "initialCapacity". What does this parameter mean and how is it used ?

When you create a collection object (List, Set, etc), usually they take a parameter known as "initialCapacity". What does this parameter mean and how is it used ? ...

What problems does Reflection solve?

Hi All, I went through all the posts on Reflection but couldn't find the answer to my question. Can you please tell me what were the problems in programming world before .Net Reflection came and how it solved those problems. Please explain with example. ...

is using *this a good idea?

Hi, I'm not sure if return *this is the only way we could return an instance of a class who called a member function? Reason why I asked is because our instructor told us to avoid using pointers if necessary and I'm wondering if this is a case where the only necessary way to do it is by returning the this pointer. I'm working wit...

Finding smallest value in an array most efficiently

There are N values in the array, and one of them is the smallest value. How can I find the smallest value most efficiently? ...

A sql query

data: id1,id2 1 3 1 8 1 10 1 11 2 3 2 10 2 11 3 2 3 18 3 20 4 3 4 8 5 3 5 10 5 11 5 40 5 45 5 50 6 1 6 59 6 70 I won't get all id1 with id2 = 3,10,11. For example, id1=4 only with id2=3, should not return. The results should be id1 1 2 5 ...

dictionary application in java

Hi all!! i need to implement a dictionary application in java i.e. which wil retrieve the synonyms of the user input.. jus give me an idea to do this.. ...

Where Can I Find Online Examples of Cormen's Assembly-Line Scheduling?

This is a school-related question, although not exactly homework. I'm taking an algorithms course, currently working on Chapter 15 of Cormen's Introduction to Algorithms book. I've been successful at finding plenty of online examples of most of the algorithms in the book, and I can usually find some type of Java applet or other program...

Reading in a JPEG image in java

I want to read in a jpeg image with a uniform gray background with several colored balls on it of the same size. I want a program which can take this image and record the coordinates of each ball. whats the best way to do this? ...

MS Access Query Syntax Error in FROM

This is for an assignment... I am to Write SQL out to display Customer's Last name, order date, product ID, fabric of the product, quantity ordered, and unit price. This must be a 4-table join and must user INNERJOIN even if where can be used. These are the tables involved. Cus (CID, Last, First, Phone) Orders (OrdID, OrdDate, ShipD...

Need help with a Java Problem.

I am trying to solve the following problem: Problem: Write a program that displays the integers between 1 and 100 that are divisible by either 6 or 7 but not both. Here is my code: import acm.program.*; public class Problem4 extends ConsoleProgram { public void run() { for (int i = 1; i <= 100; i++) {...

MS Access HW Query Missing Obvious Error Somewhere?

Final query that I have to do and I'm getting an error stating that I have not specified OrdID's table: Here's what I have: SELECT Last, OrderLine.OrdID, OrdDate, SUM(Price*Qty) FROM ((Cus INNER JOIN Orders ON Cus.CID=Orders.CID) INNER JOIN OrderLine ON Orders.OrdID=OrderLine.OrdID) INNER JOIN ProdFabric ON OrderLine.PrID=ProdFabric...