I have a PROGRAMMING task (homework) to investigate brute force neural net methods. That part of the problem is MY homework.
We have to show that certain simple words repeated in a verbal conversion might be able to be recognized as similar. We don’t have to workout what the word is, just that it is a possible repeat. To limit my ‘searc...
Difficulties appear in my homework again.
I am writing a program to count the number of whitespace characters in a text file.
I use "isspace" to count it. The content in the text file is "1 1 1", but the counter still 0, what's wrong of the codes?
#include "stdafx.h"
#include "ctype.h"
int _tmain(int argc, _TCHAR* argv[])
{
FILE* input...
Hi, at the moment I have this:
import java.util.*;
import java.io.*;
import java.io.BufferedReader;
import java.io.FileReader;
public class StudentID {
public static void main(String[] args)throws Exception{
System.out.println ("Please enter StudentID: ");
BufferedReader reader = new BufferedReader (new FileReader("CW2_data.c...
I need an algorithm for returning the successor node of some arbitrary node of the
given binary search tree.
...
Hi, I am writing the memset function and my code is below, I am having a problem
void* memsetFun(void* pointer, int c, int size) {
if ( pointer != NULL && size > 0 ) {
unsigned char* pChar = pointer;
int i = 0;
for ( i = 0; i < size; ++i) {
unsigned char temp = (unsigned char) c;
*pChar++ = temp; // ...
Hey guys, a few simple prolog questions that I'm hoping you can help me on. Basically, I am trying to write a function that takes input as two lists, and an integer. From there, the function will try to find an x in the first list and a y in the second list such that x + y is equal to the input integer.
So far I am thinking to just rec...
I am studying for a final and have a few questions about RMI and CORBA. These are discussion questions taken from a study guide so there is no real application context around them.
Why are RMI and CORBA based on TCP? The question states to answer in terms of invocation semantics.
What I have thought of so far is that TCP is going to...
I need help to create a program that allows the user to input their firstname and lastname separated by a space. I then need to display this information in reverse for example.
Input:
John Doe
Display:
Doe, John
Can someone please help me with this, I have been trying to do this for over a week and have made no head way. I am programm...
Hey everyone!
I am studying Data Structures in java and I am having difficulty with using generics in Binary Search Trees.
For our assignment we are to implement a Binary Search Tree using nodes that contain a parent, left and right node as well as a data value.
The data value in our case takes the form of a Pair object. This is what i...
Hello,
I need to write a code for this assignment, subject of study is recursive methods:
Example: Consider arr={0,5,1,1,2}. Indices 0,2 and 3 are well-placed:
Index 0 is well-placed since P0=0.
Index 1 is not well-placed, since P1=5>1. Since all elements are positive, it’s impossible to find a sequence starting at index 1 that can ...
I have to generate all variations without repetitions made of digits 0 - 9.
Length of them could be from 1 to 10. I really don't know how to solve it, especially how to avoid repetitions.
Example:
length of variations: 4
random variations: 9856, 8753, 1243, 1234 etc. (but not 9985 - contains repetition)
I would be really gratefu...
Transaction processor is a part of switch which is used for banking job.(shown in picture below)
![alt text][1]
which aspects of this part should be considered in designing?
I mean concurrency needs.for example for threads. when a new thread should be created for answering a request and when have to be deleted?how can I reduce overhead ...
how can i write a query controlled loop that will continue to input int values from the user,adding each to the value sum,and then ask if the user has another value to input,until the user says that there are no more values
...
Hello,
I am doing a compilers discipline at college and we must generate code for our invented language to any platform we want to. I think the simplest case is generating code for the Java JVM or .NET CLR. Any suggestion which one to choose, and which APIs out there can help me on this task? I already have all the semantic analysis don...
how can i rewrite the following method using try and catch statements instead of the throws clause in the method header:
public String getInput(String filename) throws Exception
{
BufferedReader infile = new BufferedReader (new FileReader(filename));
String response = infile.readLine();
infile.close();
return response:
...
how can i rewrite the following code using try and catch statements,catching any exceptions that might be thrown
for (j=0; j<limit; j++)
{
x=Integer.parseInt(keyboard.readLine());
y[j]=1/x;
}
...
I want to code this for PDA. How would I do that in C#?
a^nbc^n (n>=0)
...
Hi, I'm a design student and I'm at the end of my Web design I course. I'm working on my final site, but I'm having trouble with sprites (something we went over in one class, which I followed, but now I can't seem to figure it out). It's the first time I'm trying to use sprites for a site I'm making for the class.
Anyway, I've looked ove...
i want to do the following:
1. Set up of Apache
2. Use CGI to communicate between a form and database
3. Use Server Side Includes
4. Access a data base
5. Use a virtual site
6. Generate a Web page dynamically based on some kind of server-side processing.
Implement some form of sever security
any help appreciated? thanks in advance...
I'm having some trouble finding unique entries in a record set. This is what I have so far.
function project5Part1() {
// Variable Declarations
var zipCode;
var outputDiv;
var records;
var i;
var j;
var null1;
var array = new Array(0);
var count;
// Get the HTML output table so we can add rows
outputDiv = document.getElementById('o...