199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for icpeople

Hi everyone, I'm having problems with the output of this coding and I would really appreciate the help. The assignment requires to show how someone's taxes are distributed by first ask the user for the amount of money (dollar[] and income) and at the same time prompt for the taxes …

Member Avatar for Ryaether
0
83
Member Avatar for jknapp06

Hello, I'm in a software design class and we are using java; I've taken other programming classes and I'm familiar with a few other languages but that's the problem. I feel like I'm missing the point of java. I don't even know the term for it...but the java style I …

Member Avatar for JamesCherrill
0
139
Member Avatar for dv123

[code]<%@ page import="java.sql.*"%> <html> <body bgcolor="pink"> <% String user=request.getParameter("us"); String pass=request.getParameter("pa"); String a=request.getParameter("na"); String a1=request.getParameter("no"); String a2=request.getParameter("el"); Connection con=null; Statement stmt=null; ResultSet rs=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("Jdbc:Odbc:Data405"); stmt=con.createStatement( ); stmt.executeUpdate("Insert Into stud(username,password,nam,nos,elg) Values('"+user+"','"+pass+"','"+a+"','"+a1+"','"+a2+"')"); out.println("File inserted"); } catch(Exception e) { out.println("error"); } con.close(); %> <a href="http://localhost:8080/maya/login1.jsp">go back</a> </body> </html>[/code] I can …

Member Avatar for masijade
0
191
Member Avatar for Mubusher

Salaam to all viewers Dear please help me on this topics iam having a form,DatagridView,textbox datagridview contains a data when we write in textbox so the datagriview row select who matching data with textbox for example i write in textbox Nims so the datagridview row select where the nims find …

Member Avatar for Mubusher
0
105
Member Avatar for SaranyaKrishnan

Really sorry if i m postin under the wrong topic. V ve to simulate a WAP-based course registration system.It can be for Nokia, Ericsson,.. V can use the simulators available online also. If this software is available, v can make use of tat itself. V ve to understand how it …

Member Avatar for SaranyaKrishnan
0
83
Member Avatar for david_r

I am having an issue with populating values from a form into a mySql database. When the code attempts to send the insert query to the database, it returns the error, ERROR: Incorrect decimal value for column 'purchase_price' at row 1 I think I can understand what is happening here. …

Member Avatar for david_r
0
200
Member Avatar for Wootens

Hey guys, I'm working on this program. It should roll 2 separate die and repeats until the computer rolls doubles. I'm having some issues with it and could use some help. [CODE]// RollDoubles.java // import java.util.Scanner; public class RollDoubles { // Dice roll repeatedly until computer rolls doubles // print …

Member Avatar for Darryl.Burke
0
125
Member Avatar for croc85

HI guys, I would like to create a Java file based on the information from an XML file. I would like to read the info from an xml and generate a class and it's method. e.g [CODE] <person> <name>croc</name> <surname>crocky</surname> <age>12</age> </person>[/CODE] then it should generate: [CODE] public class Person …

Member Avatar for Darryl.Burke
0
566
Member Avatar for htetnaing

Hi everyone, I am thinking of doing something like this but I am not sure it can be done or not. Normally, if i write a program (Windows Form) I drag and drop what button and textboxes are necessary on the form then do necessary procedures and actions. What I …

Member Avatar for htetnaing
0
162
Member Avatar for Smudly

Hi, I am having some major issues. My site provides sheet music available for downloading for free. When a user clicks on a sheet to download, a new window opens up. This user views our sponsor's website for 30 seconds. Once the time is up, they can download the free …

Member Avatar for Smudly
0
176
Member Avatar for amitbhanot

Hi. I am trying to create a stand alone app but stuck somewhere. When i click on a JCheckBox, it opens up another frame window. in this window if i click cancel then the JCheckBox in the previous frame is not checked. but if i click OK then this JCheckBox …

Member Avatar for amitbhanot
0
136
Member Avatar for rakibtg

how to make a php link which will open in new tab what should be the php code to open a link in new tab. how i can make a link in php which will open in new tab?

Member Avatar for Caeon
0
146
Member Avatar for pythonlearning

Hello, just find this website and feel it is great to learn Python here. I have a question when I try to read data from file and compile a dictionary from the data. The data look like this, 1 1 A A 0 1 2 A B 1 1 3 …

Member Avatar for pythonlearning
0
109
Member Avatar for TheBaby7591

This is the code I have so far. I can't even get the numbers range to print to the screen correctly. I am very new to all this stuff so go eacy on me. Can anyone help?? [code=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> int main() { unsigned …

Member Avatar for TheBaby7591
0
115
Member Avatar for saideepthi.bits

hi, i have a page which shows user details(div1) by default there will be an admin who enters username and pwd and then a new div(div-layer) is displayed. also ,a user can edit his data by pressing edit button on which he will be displayed div2 and div1 will be …

Member Avatar for saideepthi.bits
0
242
Member Avatar for rashmijain
Member Avatar for shalenra1987
0
30
Member Avatar for curious_me

Can Somebody help me with my PHP project. what I want is to make a database query's result to be randomly distributed to an html table. and then save the whole table in a database just like this. Query Result Query Result Query Result to Data Data Query Result Data …

Member Avatar for Caeon
0
75
Member Avatar for _neo_

Hi. How can I get subprocess.Popen.stdout size? Before reading from Popen.stdout I want to check its size, then get bytes from it. [CODE] def execute_bash(self): wait_sec = 5 import time import subprocess wForceKill = True res = subprocess.Popen(self.command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for i in range(wait_sec): res.poll() if res.returncode != None: …

Member Avatar for _neo_
0
177
Member Avatar for Spartan_MSU12

I am trying to complete this program. It is excuting the second part of it, Which every 5th word needs to be replaced with an underline. But I need to print out the text with out the underlines first. then have it replaced with underlines. Also, the user has to …

Member Avatar for Ancient Dragon
0
127
Member Avatar for Caeon

I am currently writing a simple program that will either allow me to add music or show all of my albums, artists, and songs. The program starts in main(); then after selecting "View Music" it goes to the viewMusic() function but runs through the function and skips the getchar() for …

Member Avatar for Adak
0
91
Member Avatar for websurfer

I', am a newbie and trying to get a better understanding of securing mysql queries vs. injections. I found this code here below, which seems to work nicely and makes it possible to automatically "clean" all inputs coming thru `$_GET`, `$_POST` and `$_COOKIE`. But in some forums I was told …

Member Avatar for websurfer
0
155
Member Avatar for philip.s

Hi guy's, I am missing something, what on earth is wrong with this script, I can not get it to insert all my values into a table. [CODE] $host="localhost"; // Host name $username="root"; // Mysql username $password="1234"; // Mysql password $db_name="database"; // Database name $tbl_name="input table"; // Table name $que …

Member Avatar for Caeon
0
83
Member Avatar for shipy013

How do I create a constant No direct script access allowed. As is the Joomla CMS.? [CODE] // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );[/CODE] [CODE]if ( ! defined('BASEPATH')) exit('No direct script access allowed');[/CODE]

Member Avatar for hielo
0
7K
Member Avatar for onlinessp

Hi, please help me to get the URL from the address bar. Example when i write [url]www.google.com[/url] in my address bar my application in c# return the value of URL that is [url]www.google.com[/url] please help me to write this code. Thanks in Advance

Member Avatar for wenlong88
0
870
Member Avatar for aliskov

Hi, I found a very useful app on the web. Downloaded the .class file and was just wondering if it would be possible to somehow put that app on my phone. It's a Nokia E5 and I'm certain it has java. Please advise. Thank you.

Member Avatar for aliskov
0
151
Member Avatar for Beancounter5

okay , i see .... i have situation where i have a list called bunnyList containing mutantType objects, i want to create a new object using a constructor and add this object to my list. Like below. bunnyList.push_front( new mutantType ); with the aid of the newly discovered rbegin pointer …

Member Avatar for arkoenig
0
78
Member Avatar for papajo

Hello I would like a good reference for a totaly noob in chip building (ok I know they are some circuit+transistor prints on silicon wafers but nothing more) I would like to know how I define the usage of a little "black cockroach " (I mean a chip) so that …

Member Avatar for buckeyejim
0
135
Member Avatar for ironmancpp

Hi I am learning SQL at school. I need to work with Oracle 8.0 or any other version before 9i. I have tried to do it, but just came to know that its antique. Hence I need your help to download it. Kindly give me the link.

Member Avatar for ironmancpp
0
95
Member Avatar for emko

Hi, I have to make a program that takes an input text file and reverses the contents of that file, and outputs that into another text file. I am new to stacks, but what I have so far nothing happens, it just outputs a blank text file. I just wanted …

Member Avatar for emko
0
112
Member Avatar for vitin6039

I need help with a homework, i been working in this for the past 2 weeks and can't get it to work. I need to make a function that will allow me to create a dynamic array and them expand the old array of 3 subcript into the new array …

Member Avatar for LevyDee
0
114
Member Avatar for Viruthagiri

Ok guys I'm getting trouble with my php echo command. All the codes after the first echo command, displaying in browser. I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0. I've given the example of my error. Please solve it ASAP. …

Member Avatar for Viruthagiri
0
184
Member Avatar for emko

Hello, I have to write a program that prompts the user to enter a phone number expressed in letters and outputs the corresponding phone numbers in digits. The user can use lowercase and uppercase letters, as well as spaces between words. And I am supposed to use the charAt method …

Member Avatar for emko
0
4K
Member Avatar for bosdak

#include<stdio.h> #include<conio.h> main() { int num, dep, with, bal; clrscr(); num=1; printf("MENU"); printf("\n\n1. Deposit\n2. Withdraw\n3. Check Balance"); printf("\n\nEnter a number of choice: "); scanf("%d", &num); switch(num) { case 1: printf("\n\n\nEnter an amount to be deposited: "); scanf("%d", &dep); { printf("You have successfully deposited an amount of %d.", dep); } getch(); …

Member Avatar for justiceigwe
0
2K
Member Avatar for baconswife

Hello, I'm new here and not quite sure what it means by wrapping code in code tags so for my future posts can someone let me know how this should have been formatted so it would be a correct post? My question is I have a program I am writing …

Member Avatar for Grn Xtrm
0
140
Member Avatar for Enders_Game

hypothetical say i have [code] for i in range(20): for j in range(20): for k in range(20): [/code] How could I != all fo them without writing 20 statements i !=j !=k doesnt work obviously (I have to compare 5 words so writing a seperate for each combination would take …

Member Avatar for Gribouillis
0
90
Member Avatar for Viruthagiri

Guys I have 2 files. index.php and connect.php I'm getting database connection error. This is the error i got [QUOTE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\wamp\www\index.php on line 3[/QUOTE] Then i added the error detection code in the third line. I got the following …

Member Avatar for richieking
0
202
Member Avatar for phil750

Hey all, I've been trying to build a simple c shell for assignment, and im a bit stuck. It doing something different on my laptop to that it does on my pc :S laptop is on mint 7 pc is virtual machine on mint 8. Im using the getcwd to …

Member Avatar for C++ThugLife
0
282
Member Avatar for y2kshane

im developing a language converter so i want to do like this source | target (this is only example) aa | q bb | w cc | e im using netbeans ide i have a one textfield for input strings and textarea(i used textarea becoz i dont know how to …

Member Avatar for NormR1
0
174
Member Avatar for gaurav_13191

I have the following function to delete nodes in a doubly linked list at a specified position [CODE]void Delete(struct dnode **ptr,int pos) /*pos refers to position at which element is to be deleted and ptr is the pointer to the first node in the list */ { struct dnode *temp; …

Member Avatar for prvnkmr194
0
1K
Member Avatar for Bri426

Hey everyone :) I'm writing a program for my class that has the user input 5 test scores and then from the inputted numbers, return the letter grade. I've begun writing the LetterGrade function, but it's not working. I'm getting a strange array of numbers/letters instead of the actual letter …

Member Avatar for mrnutty
0
144
Member Avatar for djdanjo82

Hello Everyone! First of all thanks again for viewing my thread. I was hoping someone could give me some good advice or point me to some code examples of java code calling an Ant JUnit Target if that makes sense. Basically I have a very basic java gui that upon …

Member Avatar for Jolint
0
489
Member Avatar for ttback

I have been trying to replicate Matlab's patch() function (reference url: [url]http://www.mathworks.com/help/techdoc/ref/patch.html[/url]) with numpy and wxpython. The ultimate goal is to replicate the functionality of following line in python: [CODE] patch(vertices(i,[1,5,9]),vertices(i,[2,6,10]),(ctotal/3))[/CODE] It is a 2D patch function which draws triangular polygons. I am familiar with using wxPython for simple GUI …

Member Avatar for ttback
0
706
Member Avatar for PDB1982

I can't figure out what the error means that I keep getting on my loop. I have it set to only take 5 arguments, which is my limit, but I can't tell what it's saying: [code] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at Duplicates.EnterNumbers(Duplicates.java:20) at Duplicates.main(Duplicates.java:28) [/code] Here's my code: …

Member Avatar for kvass
0
156
Member Avatar for 00100110

Hi guys, I'm currently working on an online shop project. I'm kinda stuck on the payment part. I need to make it possible for people to pay with visa and credit card. Only problem is, i have no clue on how to start with programming this. Or maybe there are …

Member Avatar for 00100110
0
73
Member Avatar for Haxifix

I am attempting to learn Assembly (x86 Assembly on Windows using NASM) but am having trouble understanding what this is doing. Can someone please explain line by line what this code is doing? I have commented the lines that I think I know what they do, but I'm not sure. …

Member Avatar for Ancient Dragon
0
184
Member Avatar for fukki

Those some parts of my program. I write the problem at the buttom [CODE]void main() { string option; warehouse car[2]; car[0].inputCar("lamborgini",true); car[0].showCar(); car[1].inputCar("ferrari",false); car[1].showCar(); //display the choices of the user cout<<"a) Show number of modified"<<endl; cout<<"b) Show list of modified"<<endl; cin>> option; switch (option[0]) { case 'a': countModified(); break; case …

Member Avatar for NathanOliver
0
119
Member Avatar for krbenet

trouble putting together program for designing catface that will resize in the frame import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import javax.swing.JPanel; import javax.swing.JComponent; import javax.swing.JFrame; import java.util.Random; import java.awt.geom.Arc2D; import java.awt.BasicStroke; /** * A component that draws a Cat Face. *@Kevin Bennett */ public …

Member Avatar for NormR1
0
986
Member Avatar for jimmy9pints

Hi, I set out to make a body fat calculator tonight. There are a number of things that need to be improved in the below code (any suggestions welcome) but there's one thing I am really baffled by. I get a syntax error on the last few print lines. Please …

Member Avatar for Gribouillis
0
350
Member Avatar for jay1648

[CODE] #include <stdio.h> #include <string.h> typedef struct { char firstName[50]; char lastName[50]; int age; }Person; void ModifyPerson(Person*); int main() { Person person; strcpy(person.firstName, "firstName"); strcpy(person.lastName, "lastName"); ModifyPerson(&person); printf("First Name=%s\nLast Name=%s\n",person.firstName, person.lastName); system("PAUSE"); } void ModifyPerson(Person *p1) { //This doesn't modify the original variable declared in main function Person person = …

Member Avatar for N1GHTS
0
2K
Member Avatar for njjay65

Hello I am a new java student. I have a lab in which we have to compare strings to see if they are anagrams. When I compile it I'm not getting any errors but its not running as it should or as it was running the other night. I have …

Member Avatar for NormR1
0
192

The End.