132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DesiFrank

Question The problem concerns the "effective radius" of a bicycle gear. The required formula i explained below. i need to Write a program to read: the wheel radius (use a "double" as variable type); the number of teeth on the front sprocket (a "long"); the number of teeth on the …

Software Development java
Member Avatar for BestJewSinceJC
0
132
Member Avatar for ccandillo

I have written a script that scrapes a particular website and returns the date of an article, description and url. I want to display this information on the console with clickable text so that when I click on text/link called "site" it will open the url of the article in …

Software Development python
Member Avatar for ccandillo
0
145
Member Avatar for wander4heat

Hi, Thank you for your support. I am new to C++ and have started working with classes. I understand constructors, accessors and mutators. I have a program that I am working on and I am implementing my classes. I have six classes and have completed four. The top two, Calendar …

Software Development c++
Member Avatar for VernonDozier
0
105
Member Avatar for Blackout22

hey, this is my first time posting so please don't be too harsh ... I am trying to write a program that allows the user to play rock paper scissors against the computer. I am able to create the whole game ... but now i need to put different sections …

Software Development c++
Member Avatar for skatamatic
0
121
Member Avatar for BestJewSinceJC

I need to build a hash ADT from scratch. This means no use of any java library methods or classes. Does anyone know of any good resources that will explain how hashing works and how this info is helpful to build one? For example, how find() works, how insert() works, …

Software Development java
Member Avatar for BestJewSinceJC
0
91
Member Avatar for Trekker182

I'm new to link lists and have to write a few modified functions from the book to do additional things. I have to modify insert to insert by the 2nd number passed in and have it replace that position and move the number that was there up. It's inserting the …

Software Development c++
Member Avatar for Trekker182
0
133
Member Avatar for jorgeflorencio

[QUOTE]Can anyone help me what would be the best way to transform a text file data into a trendchart... using a Jpanel! The data file would have the type of errors and the quantity that each error has appeared... Then in the Jpanel would get the trend chart composed by …

Software Development java
Member Avatar for jorgeflorencio
0
144
Member Avatar for peter_budo

I working on assignment to create bank management GUI with swing. Right now I'm messing with login. Instead of using JDialog as many may suggest to use I used JFrame. [attach]8150[/attach] In case of any error messages on login attempt I wanted to display error above all previously displayed content, …

Software Development gui java java-swing
Member Avatar for peter_budo
0
143
Member Avatar for minas1

Hi. I'm trying to overload +=, -= and *=. [code=C++] /*error C2297: '+=' : illegal, right operand has type 'Matrix *' error C2114: '+=' : pointer on left; needs integral value on right*/ Matrix* Matrix::operator +=(const Matrix *const m) { if(x == m->x && y == m->y) myArray::Add(ppMyArray, m->ppMyArray); return …

Software Development c++
Member Avatar for ArkM
0
155
Member Avatar for dexter1984

Hi guys, I'm having some problem with my C++ assignment. Can't get this part down. [CODE=CPP] class Date { private: static const int daysInMonth[13]; int monthNo, year, day; string month; bool validDate, leapYear; public: void displayDaysInMonth(); void displayDate(); void enterDate(); void verifyDate(); void displayOptions(); void ahqError() {cout << "Error! Enter …

Software Development c++
Member Avatar for dexter1984
0
121
Member Avatar for bemo55

I have a programming assignment for CSCI180. The assignment is to create a recursive function power(base, exponent) that when invoked returns base ^ exponent. Everything compiles correctly and when i run the program i enter the base and exponent like prompted. But then the program stops working and i cannot …

Software Development c
Member Avatar for bemo55
0
528
Member Avatar for Batol

hi every one my name is batol and i realy realy need ur help I've been asked to impelement KNN and ID3 in C# using windows application if any of u have the code I'll be greatful thanks

Software Development
Member Avatar for Batol
0
181
Member Avatar for markmcwiggins

I have a small WxPython app using the CalendarCtrl module, which works fine. I have it set to bring up a grid of times for a particular day's appointments when I click on one of the days. But I don't see how to detect which cell of a grid I …

Software Development python
Member Avatar for vegaseat
0
97
Member Avatar for mybluehair

i have a code that you enter section after section. when your done, you type end, and it stops asking you to enter in stuff. My problem is, I can get it to detect when I type end. here is my problem: [code] cout << "\n\n\nTo start, enter each section …

Software Development c++
Member Avatar for skatamatic
0
110
Member Avatar for SarahYan

Could someone please help me with this? Why is yearofstart value not printed out in the first argument ? I knw there is something wrong, but I don't knw what is it :) Thanks so much. [CODE=c] #include <stdio.h> struct date{ int year; }yearofstart={1950}; struct record{ char *name; char acct_type; …

Software Development c
Member Avatar for SarahYan
0
118
Member Avatar for Lum1n0us

Hey guys, I've got a fairly simple script which I'd like to convert (if possible) into a Windows DLL so that I may use it in conjunction with some of my .net projects. Is such a feat possible, if so where do I begin? I've read that there's a book …

Software Development python
Member Avatar for vegaseat
0
450
Member Avatar for eggmatters

Hello, I have an application where (and this is probably not how its done but something I'd like to do) the user clicks a button which brings up another form with 2 text boxes. The user enters text, and then clicks ok. The user entered text is then passed to …

Software Development
Member Avatar for eggmatters
0
95
Member Avatar for csaund1

Anyone have any idea how I would write a program that lets user input a floating point number and then either round up if number is like 4.5 our round down(truncate) if number like 4.49. Any help would be greatly appreciated.

Software Development c++
Member Avatar for ArkM
0
187
Member Avatar for Lum1n0us

Hey guys, I'm fairly novice at Python so I hope my question isn't too mundane for you all. I've been doing some research into creating Windows Services with Python and came across some useful information with regard to creating one. I've managed to register the service - my problem lies …

Software Development python
Member Avatar for jlm699
0
659
Member Avatar for kdhanshree

There are two dates (e.g. 11/11/2008 and 20/11/2008). Then how can we calculate the number of days betweeen thess two days in java.

Software Development java
Member Avatar for Ezzaral
0
236
Member Avatar for SriSN

I want to implement validation in my table cells. I the value does not satisfy certain condition then the focus should remain on the same cell and the user should be asked to enter valid value. I am using TableModel and i have tried implementing validation in the setValueAt() method …

Software Development java
Member Avatar for Ezzaral
0
681
Member Avatar for harishasan

hi i have to ceate an applciation which can tranfer files from one pc to another on the network. I want to transfer files using FTP. can anyone tell me about an open source FTP client and FTP server which i can embed in my applciation easily and use the …

Software Development client-server java open-source
Member Avatar for angelfires
0
133
Member Avatar for kdhanshree

I add integer values in combo box.When I call getSselectedItem it return object.How i convert it into integer.

Software Development java
Member Avatar for Ezzaral
0
119
Member Avatar for sourav bansal

frnds..plz tell me the passcode of vb.net, 2005 version..i need it soon..

Software Development vb.net
Member Avatar for peter_budo
0
83
Member Avatar for coveredinflies

Hi, Basically I want to simulate lots of circles bouncing off of each other in a box. My current plan is to form a grid with lots of points and give each particle a position and speed which is a multiple of the grid spacings. Then at each time move …

Software Development java
Member Avatar for Ezzaral
0
133
Member Avatar for NinjaLink

This is my goal: - Search the list for a number and display how many times the number occur or display 'number not present' - Modify number and change each occurrence of a #, to the new number or display 'number not present' I have 2 functions. My first function …

Software Development c++ linked-list
Member Avatar for NinjaLink
0
203
Member Avatar for uw1

the following example shows the problem: "int* pointername = new int" followed by "delete pointername" - no problem. however: "int* pointername = new int[8]" followed by "delete pointername" flags`an error during execution. (compile/built are passing ok). This happens with 2 very different compilers: vc++ (native) and djgpp one. looks like …

Software Development c++
Member Avatar for uw1
0
101
Member Avatar for BestJewSinceJC

Is there any way that I can take a String and somehow use it as if its the name of one of my declared Objects? For example, if I have an Animal named germanShephard, is there some way I could say String gerSh = "germanShephard"; and then treat gerSh as …

Software Development java
Member Avatar for ~s.o.s~
0
199
Member Avatar for krany18

[code=cplusplus] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static SqlConnection cn = new SqlConnection("userid=sa;password=;database=northwind;server=localhost"); SqlCommand cmd = new SqlCommand("select * from kkr", cn); SqlDataReader dr; private …

Software Development windows-server
Member Avatar for vuyiswamb
0
161
Member Avatar for janamrob

I have some problem with this question: my Family class is as below: [code]import java.util.ArrayList; import java.util.Collection; import java.io.*; public class Family { private Adult father; private Adult mother; private Child[] children; private Dog ourDog; private Cats ourCat; private Rabbit ourRabbit; int Age; public Family() { } public Family(Adult father, …

Software Development java
Member Avatar for stultuske
0
214
Member Avatar for dinilkarun

Hi all, How can I declare a global variable inside a module and use it across other modules for throughout the lifecycle of the program? Regards, Dinil

Software Development python
Member Avatar for Stefano Mtangoo
0
91
Member Avatar for En-Motion

Trying to write program that counts the number of times a number occurs in an array. The following is the code I have written so far. It doesn't give the correct output though. It seems to be counting the output incorrectly. Any pointers where I could be going wrong? [CODE]# …

Software Development c
Member Avatar for ArkM
0
319
Member Avatar for shubhang

How to make streams to read and write files (in binary) . I have found a few Streams but do not know which one to use. they are as follows:- [code] PrintStream p=new PrintStream(new FileOutputStream("myfile.text")); DataInputStream in=new DataInputStream(new FileInputStream("myfile.txt")); BufferedReader br=new BufferedReader(new FileReader("myfile.text")); Printwriter pw=new PrintWriter(new FileWriter("myfile.text")); [/code] Please tell …

Software Development java
Member Avatar for peter_budo
0
117
Member Avatar for ariesangel

for(i=0;i<9;i++) { x[i] = rand()%9+1; for(j=1;j<9;j++) { if(x[i]==x[i-j]); i--; } } pls tell me how the rand() function work. urgent. as soon as possible.

Software Development c++
Member Avatar for ariesangel
0
160
Member Avatar for mrjoli021

i have a file with 2 int's i need to assign them to a variables. the int's are separeated by a space. what method can i use to read each int separeate and then assign it to a variable.

Software Development java
Member Avatar for stultuske
0
88
Member Avatar for ashishforu.aec

Hiii I need a project on inventory control management using java... Will any one would help me out?????????

Software Development java
Member Avatar for stultuske
0
43
Member Avatar for jonjon1456

I need to write a program that gets inputted files from arguments written from command prompt and prints a random line from it. I don't really know how many exceptions i need and I don't really understand the logic of getting the line from the file. Please help me.

Software Development java
Member Avatar for stultuske
0
107
Member Avatar for sacarias40

ok i am making a simple HTML editor and i added a small feature that allows the user to click a preview button which opens up another form window that has a webpage object in it. the problem is, how do i get the html text to show converted into …

Software Development html-css vb.net
Member Avatar for Teme64
0
117
Member Avatar for mrjoli021

What is wrong with this code. when it do system.out.println(matrix[0][0] i should get 1 char i get the entire line. [code] int r =Integer.parseInt(line.substring(0)); int c = 10; String[][] matrix = new String[r][c]; while (line !=null) { for(int i =0; i< r; i++) { for (int j =0; j< c; …

Software Development java
Member Avatar for stultuske
0
87
Member Avatar for java-clueless

I have failed my java programming class but I am retaking it in February. I have untill then to figure out how the heck to do all this. I have uploaded my program, it is an inventory program for dvds. I was supposed to create a GUI that I thought …

Software Development gui java
Member Avatar for javaAddict
0
99
Member Avatar for atish12

[COLOR="Green"][/COLOR] hi i'm pursuing bca from ignou and i want to be expert in c language . what should i do for this?

Software Development c
Member Avatar for ithelp
0
83
Member Avatar for dwaynecarter

okay so i am very new to java, and my teacher is not offering much help. i have an outline of how my java program should look but i still need help!!!!!!!!!!!!!!!!!! by the way max misses is 3, and words im testing are landslide and air and fight. any …

Software Development java
Member Avatar for ithelp
0
116
Member Avatar for d1s_0n3_guy

Write a program that will prompt the user to type in a series of characters. Input these characters into a c-string (char array). For each character, if it is a letter, toggle the case (upper to lower case, or lower to upper case). All other characters leave as is. Print …

Software Development c++
Member Avatar for d1s_0n3_guy
0
214
Member Avatar for mybluehair

I am creating a code, and I'm getting this weird error. I'm sure its a stupid mistake, but I can find it. [quote] multiple definition of `Start()' first defined here ld returned 1 exit status C:\Documents and Settings\Andrew\My Documents\projects\equation\Makefile.win [Build Error] [equation.exe] Error 1 [/quote] And here is the code: …

Software Development c++
Member Avatar for WaltP
0
92
Member Avatar for matt91turbo

I need a little help to get me going on how to start this program. I know how to create a string array, but I'm having trouble getting the overall structure for this program. Any help or links to helpful sites would be appreciated. Write a program that will read …

Software Development c++
Member Avatar for vmanes
0
210
Member Avatar for c7borg

Hi guys, I'm looking to start scripting and have a problem I thought I would use to learn some basics, basically I have a list of my family's addresses that are in one big vertical list varying in size. I want to sort into a tabular format below is a …

Software Development shell-scripting
Member Avatar for bugmenot
0
118
Member Avatar for mybluehair

I have a c++ console program that alot of people are starting to download. But the program is updated around once a week. problem is, most of the downloaders never check for updates on the site. could add a feature to my program were it would do a check for …

Software Development c++
Member Avatar for MosaicFuneral
0
105
Member Avatar for poilkjmnb

Hello Friends, i m using the function to built DLL in delphi but when call it in vb 6.0 application i m not able to use this dll as reference. Please help me. Following code which i have used to built delphi DLL. ------------------------------------------------------------------------------ [code=visualbasic] library Project2; uses SysUtils, Classes, …

Software Development delphi visual-basic
Member Avatar for poilkjmnb
0
143
Member Avatar for jlatorre80

Can someone please help me with figuring out why my codes does not run. I have tried to familiarize myself with how to get data from a file and discovered i need to use fstream. The data of the file is somethin like this: 19531029L 20081104L 19770615L 19300723L 19631122L 19410501L …

Software Development c++
Member Avatar for MosaicFuneral
0
117
Member Avatar for rockX

Hey i have another query . I am trying to add all odd and even columns of the percentages calculated and adding them as columns to the left of the percentages. so in the above percenages calculated totoal odd would be `($1+$3....= 45.83+51.61...)` same thing for even as well o …

Software Development shell-scripting
Member Avatar for eggi
0
118

The End.