Computer Science Homework Solutions

Formal Specification Set Theory

Hello, I need a help with working with set theory for pre, post conditions and logic conditions for a board game I wrote in Java. The Java part is easy, figuring out to express what I using set theory is difficult. A brief set theory overview as it relates to documentation Java code would be helpful and specific explanation ...continues

Write a Java method to get the first item in a Vector

I need to add a getFirst() method to the Stack class. This method should get the first item in the items Vector. (See attached file for full problem description)

Finding error in C++ source code

Please correct the errors with replacement lines beside it. And then give short notes on why it is wrong. The code is attached. 1) Please correct the errors with replacement lines beside it. And then give short notes on why it is wrong. class Person { private: char name[30]; int age; public: Person (st ...continues

Java Programming

Write a simple application which implements the StockWatcher interface (attached file).

Java Programming - Creating & Using Packages

Use a simple procedure to implement the graphics package which contains the 4 attached files (3 classes and 1 interface). The group of classes represent a collection of graphic objects, such as circles, rectangles, lines, and points. The interface, "Draggable" is implemented by classes if they can be dragged with the mouse by ...continues

Software determinate and indeterminate

What is the difference between software that is determinate and software that is indeterminate?

Java Programming - Exception Handlers

Write three separate simple exception handlers, one for dividing by zero, another for attempting to open a nonexistent file, and the last for an array out-of-bounds check.

Java Programming - Exception Handlers

Write three separate simple exception handlers, one for dividing by zero, another for attempting to open a nonexistent file, and the last for an array out-of-bounds check.

Which UML diagrams are useful for analysis modeling?

Which UML diagrams are useful for analysis modeling? Provide an example of each.

Java Programming - I/O: Reading & Writing

Write a simple program that takes an input stream and reverses each line it reads. For instance, the input line "abc" should be written "cba".

Browse