problem with splitting a string into parts for searching
I am trying to create a spam filter for a message entered by the user. It is supposed to check against a list of keywords/phrases in the program. For each phrase/word I add 1 to the count. When I am...
View ArticleDisplaying questions task for quiz game
For my quiz application, Im confused as to whether I should stick to this format for the question was going to try xml, but I don't have much of a starting point for that I've looked at examples for...
View ArticleMAKING A GAME
Hello, I was wondering if someone could give me a hand trying to make a game. There are a few restrictions and I will list them below. Any help would be greatly apprecitated. I'm also new to C# about a...
View ArticleBlender combat system help?
I've been working on a combat system in Blender Game engine for the last few weeks, however, I'm having problems figuring out how to make a grapple system. Is it easier to make a cinematic kind of...
View ArticleProblem with if and else's - probably really simple?
So i've got to make a program for my Basic Computer Science class where, when you input a number between 0-100 it gives you a letter grade based on a grade scale and if you enter a number outside that...
View ArticleProblem determining Row and Column totals (2D Arrays + Functions)
// 2D_Array_Operations_N.cpp : Defines the entry point for the console application. // This program belongs to Nichole Moore. #include "stdafx.h" #include <iostream> using namespace std; //...
View Article[Problem] composite Simpson rule
Hi, thanks for the guys who help me last time I have been given other task to do which I need help again. the task is this : Consider Y = F(x) over (a,/>/>/>. Suppose that the interval...
View ArticleCombining multiple pictureboxes into one bigger object
Is it possible to combine two pictureboxes? For example, this "_" is picturebox1. This "_" is picturebox2. Is it possible to put them like "__" and treat "__" as one object? Thank you
View ArticleCan P[A | (A intersection B) ] be written as below? (Probability Ques)
Can P[A | ( A intersection B )] be written as: P(A intersection B )/ P(A intersection B )? Given that A, B, and C are three sets where, P( B )>0, P(A')>0, and P(A intersection B )>0. By...
View ArticleQuestion about outputting array list
Public class test { public static void main(String[] args){ int[] result = new int[5]; for (int i = 0; i < result.length; i++){ result[i] = i; } for (int value : result){ System.out.print (value);...
View ArticleMerging Array
I need help with an assignment, I have to tell the user to input 13 integers in array 1 which will only take 13 integers, and 5 in array 2 which will only take 5 integers. After that, the two arrays...
View ArticleNumber guessing game problem
This is my current code that I am working with, it is compiling correctly but the problem is that instead of the whole window being colored I need just the JTextbox to be in red for too high a guess...
View ArticleObject Passing/Instantiation Issue
Hello, So I am working on this project and I am having an issue with passing references to an object between classes, in order to fill an array[7][24] of objects I have made(simulating the different...
View ArticleJava application EmployeePayrollSystem error PayrollSystemTest.java:56
import java.util.Scanner; // PayrollSystemTest.java // Employee hierarchy test program. public class PayrollSystemTest { private static final int BONUS_MONTH = 11; public static void main(String...
View ArticleMagic 8 ball program using if/else
cout << down12 << over3 << "Ask the magic 8 ball a yes or no question: "; cin >> userAns; <-- this is their yes/no question. so if i want my answer to be most likely, do i...
View ArticleArrays versus List<T>: When and why?
What are advantages/disadvantages of using both? I am really looking forward to hear some awesome answers and learn something new.
View ArticleBeginner program help.
working on a bet. A friend gave me some java projects and to win my bet I had to figure out how to do them in a week. trying to get them finnished and working by tonight. first one. Write a Java class...
View Articleempty rows in jtable
Im trying to create a contact book so i use a jtable to display my contacts name's..which are in an arraylist..but when arraylist is empty jtable looks like shit so im trying to have empty jtable...
View ArticleProblem with Generic method and T: IComparable<T> implementati
I need to implement a generic search function in my code. If the user inputs a number whether it be integer or double, it needs to search the appropriate array for a match. I have two arrays (integer,...
View ArticleConvert a line from C++ to Java?
char adj[128][128]; #include <cstdio> #include <cstdlib> #include <cstring> #include <cassert> char adj[128][128]; int S, A; void clause(int x, int y) { adj[inv(x)][y] = 1;...
View Article