Persistent Class Information with Multiple Access - Question
Hi all, I am working on a project at the moment which requires database handling and for the design point of view I have created all of my database connections to run though one single class, also to...
View ArticleProblem with Listview Double Click
I am trying to create a media player with a playlist... I have all the code to add the media and the play but I am having problems with the double click. I have found code in another project but I...
View ArticleC++ Static libraries with Dialog boxes problem
Hi there, I'm currently working on a framework using static libraries and have hit a problem concerning dialog boxes within static libraries. Basically I have a set up screen to which the user chooses...
View ArticleReading files for characters
I am working on a program where the user creates a file, enters a certain character in the program, and the program displays the entered character from the file and how many times it is written in the...
View ArticleHow to call this Method from Dynamic List?
public void insertAfter(DynamicNode p, Object x) { if (p == null) { System.out.println("void insertion"); System.exit(1); } DynamicNode q = new DynamicNode(x, p.getNext()); p.setNext(q); } DynamicList...
View ArticleArrayList question
I have a home assignment i have a ArrayList that containts this kind of varibales : Name, Age, ID number, and five grades of student, its somthing like a data base, so my question, one of the rules was...
View Articleneed to take sequence of user input
I tried different ways to get sequence of input from the user but don't know what to do. Here is my code. A majority element in an array A of size N is an element that appears more than N/2 times. For...
View ArticleCannot find symbol - method nextInt(int) Error
So I have a problem with my code, and I can't figure it out for the life of me. Here's the code... public class Numbers { int[] numbers = new int[25]; { for(int i=0;i<25;i++) numbers[i] = i+1; int...
View ArticleHow to find the largest number and it's occurrences from user'
Write a program that reads integers, finds the largest of them, and counts its occurrences. Assume that the input ends with number 0. Suppose that you entered 3 5 2 5 5 5 0; the program finds that the...
View ArticlePHP form
I have a form in HTML that I am suppose to post the results of the fields in a PHP with the key and the value but when I run my code it shows up this on the page. $value) echo "$key: $value "; ?> My...
View ArticleBattleship program
hey everyone, thanks for taking a look at my code. So i am building a text based battleship program for school. Ok so this is the problem. I ask the user to select a number(1 - 5), each is a different...
View Articlehow to have python create a file
how to have python create a file such as 'neta-inf.txt'. I am trying to self teach the language of python to my self sorry if this is a trivial question
View ArticleClasses & Constructors
I'm trying to write a program. This program is two files. One is a class with constructors. The other file creates three objects to hold employee data. Here is my code so far. #ifndef EmployeeClass...
View ArticleSimple Alternation Problem?
Ok so long story short, this is a program that I am working on that is very similar to tic-tac-toe in that this game uses 2 players: X and O and it check for 3 in a row. In my main method I have a...
View ArticleReading character input from user?
Can someone give me an example how to read characters input from a user? I only know how to do with numbers only for now so can someone give me an example?
View ArticleI can't get my reflection to work in this project. [TicTacToe]
So I'm doing this assignment for my CS 2 class and we are supposed to use reflection to do tic tac toe. I'm trying to do reflection based off of the example given by the teacher on line. I have hit a...
View ArticlePyramid with factorials.
Does anyone know how to make a pyramid with factorials? Basically what I want the program to do is draw pyramids like this 0 00 000 0000 And etc.. I know how to do it normally, but I don't know how to...
View ArticleRolling a Die and giving percent of odd and even with user input
import java.util.Scanner; // for reading input data /** Java application that simulates the rolling of a die. ** ** The user enters, in response to a prompt, the number of times that the ** die is to...
View ArticleSearching by calendar in PHP
where is i can see the example for search data by calendar?
View ArticleAirline seating assigning help.
Exercise 2.20. Airline seating. Design and implement a program that assigns seats on an airplane. Assume the airplane has 20 seats in first class (5 rows of 4 seats each, separated by an aisle) and 180...
View Article