Hello guys im having problem displaying a math equation result in the textbox. It shows 0 and i dont really know where i got the error. Name of the textbox where result shall be displayed is **total1** Thx for help :) int textboxnumber1; int textboxnumber2; int textboxnumber3; int textboxnumber4; textboxnumber1 = int.Parse(textBox7.Text); textboxnumber2 = int.Parse(textBox10.Text); textboxnumber3 = int.Parse(textBox18.Text); textboxnumber4 = int.Parse(textBox34.Text); int answer1 = 0; answer1 = textboxnumber1 + textboxnumber2 + textboxnumber3 + textboxnumber4; total1.Text = answer1.ToString();

Member Avatar
Member Avatar
+0 forum 3

Hello there i would like someone to have a peek at this code and does it solve the question correctly ?? Are there any mistakes or any improvements i could add ?? Also If any one could tell me how to save the data entered by person into one file(XML)so it can be retrieved any time later would appreciate it ;) Thank you Question 2: Write a script to allow a user to add property data into a property table ( call it addproperty.php ). The table should initially have 4 columns for the property data (postcode, price, imagefile, visits). …

Member Avatar
Member Avatar
+0 forum 1

Hello guys ;) Im quite new to PHP and i run into a problem. I was given a PHP task to do and its got to be submited by 27th this month in my uni... unfortunately i was not attending any Web programming class as i was so into Java that i have forgot about whole world :( and now im kinda stuck. The coursework is: Use a text editor to make a comma delimited text file containing data of properties for sale with the following fields/columns: Postcode, Price(thousands), imagefilename, Visits (Eg: HA13TP, 250,house1.jpg, 3) 1. Display all property information. …

Member Avatar
Member Avatar
+0 forum 23

i'm having problem displaying number of points scored in a game for every one right answer users scores 2 points... and i'm having little problem in displaying these points in a box below the game :( can any one help me out on that one thank you :) [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Maths game</title> <script language="JavaScript"> var kNumberOfProblems = 10; var kTableIdForProblems = "practiceMathTableProblems"; var kTableIdForAnswers = "practiceMathTableAnswers"; var kTableIdForResults = "practiceMathTableResults"; var kMultiplication = 'x'; var kAddition = '+'; var kSubtraction = '-'; var kDivision = '\367'; …

Member Avatar
Member Avatar
+0 forum 3

i'm having little problem here, i have got timer here that counts down from a set time, but what i want to do now is instead of having timer, i just want to make a counter so if(counter=10) stop the game, and not when time = 0 [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <SCRIPT LANGUAGE="JavaScript"> var time=45; var timesup=0; var started=0; function CountDown() { if(time>0) {document.math.timer.value=time; time=time-1; var gameTimer=setTimeout("CountDown()", 1000)} else if (time==0) {document.math.timer.value="0"; timesup=1; alert('Time's Up!'); document.math.firstnum.value=""; document.math.operator.value=""; document.math.secondnum.value=""; document.math.answer.value=""; } } function startgame() {if (started!=0) {alert('You've …

Member Avatar
Member Avatar
+0 forum 3

Hi i'm trying to create a drop down menu but there is a problem here is the website "www.infinit0s.cba.pl" it just shows hyperlinks and not the full drop down menu :(. I'm using Dreamweaver CS5 here is the SS of how the menu should look like "http://img412.imageshack.us/i/screenshotproblem.jpg/"

Member Avatar
Member Avatar
+0 forum 1

I dont know how to kill this JOptionPane pop out eveytime i do something... it just pops [CODE]Object[] options = {"Option 1", "Option 2"}; Component frame = null; int n = JOptionPane.showOptionDialog(frame, "Chose Game Option \n *Option 1 - Enter Secret Word\n *Option 2 - Random word selection from secret list", "Chose game mode", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, //do not use a custom Icon options, //the titles of buttons options[0]); //default button title[/CODE] Some lines below that i have this [CODE] private void TryLetterActionPerformed(java.awt.event.ActionEvent evt) { String letter = aLetter.getText(); int charPos = 0; if(n == JOptionPane.YES_OPTION) { String text = …

Member Avatar
Member Avatar
+0 forum 2

Hello, i have came across a problem when trying to create a hangman game. I want to read a String of letters inputed from keyboard and then i want someone else to guess this word(typical hangman rules). I have used this code. [CODE]InputStreamReader FindWord = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(FindWord); String letter = aLetter.getText(); FindWord.indexOf(letter); int charPos = FindWord.indexOf(letter); if (charPos == 0) Char1.setText(letter); if (charPos == 1) Char2.setText(letter); if (charPos == 2) Char3.setText(letter); if (charPos == 3) Char4.setText(letter); if (charPos == 4) Char5.setText(letter); if (charPos == 5) Char6.setText(letter); FindWord.indexOf(letter, charPos+1);[/CODE] The problem is that its says that …

Member Avatar
Member Avatar
+0 forum 10

Hello i'm having a problem with a program. Let me tell you first what program should do. The program should allow the tutor to enter in the various marks which the students have been awarded, until the tutor enters in a mark exceeding 100. At this point the program should display a histogram. Each star represents a student who achieved a module mark in the range shown. 0-29 *** (3 students received a mark between 0-29) 30-39 ***** 40-69 ******** 70-100 **** 20 students in total.  As the tutor enters each mark, a counter should count the number of …

Member Avatar
Member Avatar
+0 forum 58

The End.