132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for love.emeter

I've tried to change to yellow, then pause for 4 seconds before changing to green but it doesn't work. public TrafficLight() { // Construct the circles red = new Circle(); yellow = new Circle(); green = new Circle(); // Set their color and make them visible red.changeColor("red"); red.makeVisible(); red.moveHorizontal(200); red.moveVertical(200); …

Software Development java
Member Avatar for love.emeter
0
295
Member Avatar for wallstr33t

The cell values in excel are all formatted as text. Each value in the source array is not a String but to a proper data type based upon its value but I want the cell formatted value as it would appear on the screen in excel. Some of the cells …

Software Development microsoft-office
Member Avatar for wallstr33t
0
555
Member Avatar for JuliaCplus

I need to write a program to enter 3 names then display the name is aphabetical order. Example Jessie, sam, and chris. the program should display: chris Jessie sam Please help

Software Development c++
Member Avatar for NathanOliver
0
923
Member Avatar for johnpaul.denton

Hi I'm quite new to Python and am trying to figure out where I'm going wrong, I'm trying to use a bisect search to find :- Monthly payment made to clear loan amount using :- Monthly interest rate = (Annual interest rate) / 12 Monthly payment lower bound = Balance …

Software Development python
Member Avatar for johnpaul.denton
0
72
Member Avatar for A0110

Hi guys, I have a long running process called as the balancing process. This process updates the records in the database. I have 2 radio buttons 1: Show all records 2: Show only imbalances These radio buttons are used to fetch the data fromt he database and display them on …

Software Development
Member Avatar for A0110
0
178
Member Avatar for HunainHafeez

with a lil bit of change in code ,it's functioning, but I want it to function with data members being private :-/ #include<iostream.h> #include<conio.h> class account{ public: int account_number; float balance; int passw; public: void display() { cout<<"Account number is:"<<account_number<<endl<< "Account balance is:"<<balance<<endl; } void user(int acc, float amou, int …

Software Development c++
Member Avatar for HunainHafeez
0
187
Member Avatar for taylor.mitchell.353

My Text file is below. The bounds should be 0-2 for letter A or D then 2-15 for StateName(these are new states being added to a stack) and 15-25 for what should be the capital, but not all of them have capitals and for those I am getting an out …

Software Development file-system java
Member Avatar for JamesCherrill
0
158
Member Avatar for ayushcr7

Help me out pls...i dont understand why am i getting sigsegv error for many of my problems on spoj.This is one of them: http://ideone.com/B7KFW http://www.spoj.pl/problems/COINS/ I mean i know that i am accessing data outside the array but where?

Software Development c
Member Avatar for nitin1
0
106
Member Avatar for ronnel09_1

#include<stdio.h> #include<conio.h> void main() { int a[20],i; clrscr(); printf("enter 20 numbers: "); for(i=0;i<20;i++) scanf("%d",&a[i]); for(i=0;i<20;i++) printf("%d\n",a[i]); getch(); }

Software Development c
Member Avatar for Adak
0
227
Member Avatar for prince26121991

I just want to enter of 5 students data in structure but this loop is not running. pls help me out #include<stdio.h> #include<conio.h> #include<string.h> struct student { char name[20]; int age; float marks; } a[5]; main() { int i; clrscr(); for(i=0; i<5; i++) { printf("Enter the name of student"); gets(a[i].name); …

Software Development c data-structure
Member Avatar for prince26121991
0
121
Member Avatar for nheziscute22

hi please help me make a username with number .. im using stdio conio ctype and string as include thanks in advance

Software Development c++
Member Avatar for NathanOliver
0
312
Member Avatar for noahjonesnoah

Im curious if anyone knows if its possible to write a program to generate a regular expression given a finite automation. To make things less complicated I want to limit the number of states to about 4, assume the FA is in minimal form and that the FA has only …

Software Development c
Member Avatar for Gonbe
0
300
Member Avatar for PseudoGuard

In this part you will write a function to generate random numbers in a specified range. Specicially we want you to write a function named generateRandom that generates a single random number in a range specified by the user. The function takes two integer parameters representing the lower and upper …

Software Development c c# c++
Member Avatar for deceptikon
0
1K
Member Avatar for dontyoufeelmywrath

Mind guys if you could help me on creating this program(regards with file handling). starting with this: for instance. i have a .txt file that contains these: lexeme token main - Identifier ( - Open Parenthesis ) - Close Parenthesis { - Open Curly Bracket printf - Keyword ( - …

Software Development c open-source
Member Avatar for deceptikon
0
143
Member Avatar for sephzy

Hey there, Just hit a road block in my assignment. I won't concern you too much with the assignment itself but it's basically a number input operated menu with option's like "Display employee details" & "Input pay details." I'm up to a part where I need to get the section …

Software Development java oop
Member Avatar for JamesCherrill
0
330
Member Avatar for everphilski

long time listener, first time caller... I'm trying to generate Excel charts using c#. I'm using Excel.Range to set a range (series of values) to plot. However, I'd like to plot two series that are not next to each other. For example, B1:B10 and G1:G10 versus A1:A10 on the x-axis. …

Software Development c c# c++
Member Avatar for lokendra jain
0
1K
Member Avatar for raider650

Basically I need to write an application to calculate BMI using the formula; BMI = w/ (h/100) 2 The user must type in her height in centimeters and weight in kilograms, and the computer prints out the user's BMI. import java.util.Scanner; import java.text.DecimalFormat; public class BMI { public static void …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for dgipling

I working with an application written in Visual Studio C++. Then program is a console application running under the DOS-prompt. The program is something like this. void main () { for ( ;; ) { do_something (); do_something_more () } } Now I need to add some code between do_something …

Software Development c++ visual-studio
Member Avatar for richieking
0
241
Member Avatar for glenndr_15

Greetings! Just want to ask how to create a C/C++ ide then link to a compiler? any advice? can I use a visual studio for creating an IDE?... Thanks Best regards, glenndr_15

Software Development c c++ ide visual-studio
Member Avatar for glenndr_15
0
353
Member Avatar for rithish

actually in infix or prefix expressions how does operators have high precdence than the other. for example + has high precedence than *.do they compare with ascii value of operator

Software Development c
Member Avatar for Gonbe
0
174
Member Avatar for ElDuderino12

#include <stdio.h> #include <stdlib.h> #define MAXSIZE 6 int main(int argc, char** argv) { float stddeviation, deviation, sumsqr, variance, mean, x, t, m, sum=0, max, min; int numdatapts, k; FILE * inFile; inFile = fopen("Uniform93.data", "r"); if(inFile == NULL){ printf("\nError opening file. Abort program.\n"); exit(1); } for (k = 1; k …

Software Development c
Member Avatar for Gonbe
0
1K
Member Avatar for mikewyatt

Can someone point me in the right direction? I have a java program created in netbeans that has several tabs that contains various text fields, boxes and such. Over top of these I have a jlable that displays a jpg, or other graphic file that is used for a background …

Software Development image java java-netbeans
Member Avatar for mKorbel
0
86
Member Avatar for Viped

Hi, I am trying to make my own paint program. It uses canvas where user draws. How can I get image representation out of that canvas as bufferedimage so I can save it with imageio.write?

Software Development image java
Member Avatar for JamesCherrill
0
424
Member Avatar for Mas49er

I have a class project where we must create a program that takes 5 grades of a student that the user inputs and stores them into an array and then gets the average of the 5 grades for example Grades = 92 89 99 78 96 And then stores those …

Software Development java
Member Avatar for richieking
0
241
Member Avatar for paoi00

i had a problem with this codes.. this codes will retrieve image from database that will based on the employeenumber. Dim CN As New OleDbConnection(cnString) CN.Open() daImage = New OleDbDataAdapter() daImage.SelectCommand = New OleDbCommand("SELECT * FROM EmployeeProfile ", CN) dsImage = New DataSet("dsImage") Dim dataTable As DataTable = dsImage.Tables(0) If …

Software Development dataset vb.net
Member Avatar for Pgmer
0
1K
Member Avatar for vivekanandaan

Dim conn As New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = e:\wms\wms\wms.mdb") conn.Open() Dim userDetailsAdapter As New OleDbDataAdapter("select * from daily_trans", conn) Dim userDetailsTable As New DataTable userDetailsAdapter.Fill(userDetailsTable) Dim returnRows() As System.Data.DataRow = Nothing returnRows = userDetailsTable.Select("cons = " & TextLine) If returnRows Is Nothing Then MsgBox("Can be saved") Else MsgBox("Primary Key") End If …

Software Development open-source vb.net
Member Avatar for Pgmer
0
91
Member Avatar for songseungun

Hi. I'm having problems about my program. My program is something like a directory. It takes in values for different fields and stores it in a linked list in a sorted manner. It also allows the user to save the linked list contents to a text file. Everything runs okay …

Software Development c file-system linked-list
Member Avatar for songseungun
0
871
Member Avatar for shahzad.malik.140

1. The square of an integer n is normally calculated by multiplying n by itself, that is, n2 = n * n. Another way to calculate n2 is by adding the first n odd integers. For example, 1 + 3 + 5 = 9 = 32 1 + 3 + …

Software Development c++
Member Avatar for WaltP
0
134
Member Avatar for persianprez

Can someone please finish this off, i need the days to start going on the day specified [code=c] #include <iostream.h> int main() { int month;//asks for current month int days;//asks for day of start int numdays;//number of days in the month int monthstarter=1; //starts day count cout<<"Enter a month (1 …

Software Development c++ ios
Member Avatar for WaltP
0
261
Member Avatar for bdl365

I want to print the following using for loop. from the pattern, it's clear that when row and column is equal to each other it prints A that gives me A from top left to bottom right need clues A - A A - A A - A A-A ----A---- …

Software Development c++
Member Avatar for WaltP
0
287
Member Avatar for ohwhatacuteanaconda

I need help with the calculations done in a change concevter. The user enters the amount owed and the amount the purchaser paid and the change due, followed by the amount of dollars, quarters, nickles, dimes, and pennies are displayed. I have been working on this for a while and …

Software Development vb.net
Member Avatar for Reverend Jim
0
111
Member Avatar for veeeeebeeeee

-We should only be able to enter ISBN's in this format, 0-1234567-8-9 or 0-1234567-8-X. -What I have now automatically inserts hyphens at a certain text length but doesn't let me delete the hyphens that have been added (besides the last one) -So how would I be to delete the hyphens? …

Software Development vb.net
Member Avatar for TnTinMN
0
305
Member Avatar for combiana7

Can anyone help me out here? I have little clue on a CS assignment but can't get started on it. Question states: Write a program that generates a student's username and converts a score to a letter grade. The username consist of the initial of the name and the last …

Software Development python
Member Avatar for Lardmeister
0
97
Member Avatar for Seswing142

For my class we need to create an Ascii drawing with at least 3 nested loops and 3 different type of loops. this is what i have so far ( just 2 lines of the drawing) for(int i = 0; i<=4; i++) { System.out.print("0"); } for(int i = 0; i<=13; …

Software Development java
Member Avatar for Seswing142
0
294
Member Avatar for taylor.mitchell.353

I’m not sure why this isn’t working. Java isn’t giving me an error I have this in my StateController class public void insertLinks() { for(int index=0; //index is a local variable for state objects index < numStates; index++) //for loop to continue making state objects stopping at numStates(50) { myList.insertFirst(myStates[index]); …

Software Development java linked-list
Member Avatar for dimasalang
0
373
Member Avatar for firdousahmad

Dear Visitore of this Question I m New to VB.net i have declared a structure in vb.net and i want to give values to its members how could i can do that help me plz Structure Employee dim inta as integer dim strs as string end structure how to intialise …

Software Development data-structure vb.net
Member Avatar for firdousahmad
0
247
Member Avatar for Jsplinter

About 11 months ago I started this [thread](http://www.daniweb.com/software-development/cpp/threads/386863/declaring-const-int-causes-error-c2582-operator-function-is-unavailable) asking why I couldn't use a const data member in a class that was going to be used in an stl container. The explanations were excellent. Now my question is, what is the best alternative to having a class with BOTH a) …

Software Development c++
Member Avatar for mike_2000_17
0
280
Member Avatar for Unidennn

Hi, im pretty new to c++, and im stuck on this problem, i need to assign a letter from and array of stings to an array of chars and i just cannot figure it out. any help is appreciated. I tried both and both give me errors: strcpy (newChars[j],alphabet[i]); newChars[j]=alphabet[i]; …

Software Development c++
Member Avatar for Ancient Dragon
0
200
Member Avatar for Grandiago

Hi. I'm new in programing and i have this program that i'm working on right now. it's still a working progress. but when i run it and choose from the options. the program kept moving upwards. like it looses the top part of the border. like this one: http://imageshack.us/photo/my-images/507/123sb.png/ this …

Software Development c
Member Avatar for Grandiago
0
157
Member Avatar for hughesadam_87

Hi guys, I am running a costly simulation and trying to optimize the output. I'd have a fixed range over which the parameter of interest can vary, and about 100 values it can take in between. We know the result we are looking for and want to find the parameter …

Software Development algorithm python
Member Avatar for hughesadam_87
0
165
Member Avatar for Yoink

Hi, I'm concentrating on getting my card and deck classes for a card game project working correctly. Both my card and deck classes are working technically correct but when I go though my nested for loop in my Deck class to create a deck of cards it ends up being …

Software Development java
Member Avatar for Yoink
0
280
Member Avatar for anisha.silva

Hi can you only tell how can i implement the below part. i created a class for TM(implementing :IComponent interface ) and another class called Process(implementing :IContainer interface) and created P1 and P2 are instances of Process class. and A B A' B' as instances of TM. is this correct? …

Software Development motherboards-cpu-ram
Member Avatar for skatamatic
0
155
Member Avatar for Dáni

helle there. I need a help in generate random 2D matrix !! How to write that plz !

Software Development c
Member Avatar for Ancient Dragon
0
238
Member Avatar for Yoink

Hi, I have to write a program that plays out a whole game of the card game WAR. I have to create a bunch of classes that go along with some pre written classes so right now im trying to start out small and work my way up. We are …

Software Development gaming java
Member Avatar for Yoink
0
692
Member Avatar for JDoggieIII

Hi, I am using C++ MFC and I wouldn't exactly call myself an expert :-). What I have is a thread drawMonitor which monitors when to draw and I would like it to call DrawLines() (which is a member function in the class) to do the drawing. void drawMonitor(void *); …

Software Development c++ puzzle
Member Avatar for Ancient Dragon
0
276
Member Avatar for ohwhatacuteanaconda

I need assistance with using Keypress to only allow a certain range of numbers (1-26) to be typed into the textbox. When ever I do it, it only allows me to press the numbers "1 and 2". I'm very new to VB so the help is much obliged. I know …

Software Development vb.net visual-basic
Member Avatar for ohwhatacuteanaconda
0
403
Member Avatar for roemerito

Hello Everyone So i have this flowlayoutpanel that contains checkboxes, so what It does is if a select a checkbox the text of that checkbox will be passed to the ProblemTextBox ![checkboxes](/attachments/large/3/checkboxes.png "checkboxes") My main problem is that I am able to add new checkboxes to the ProblemTextBox, but when …

Software Development vb.net
Member Avatar for roemerito
0
2K
Member Avatar for mani508

i want to add multiple rows in datagridview from textbox values then save the rows into database? how its possible...???

Software Development
Member Avatar for goodgirl
0
137
Member Avatar for orar

#include <iostream> #include<string> #include<vector> using namespace std; struct Names { string fname; string lname; void output() { cout<<fname<<" "<<lname; } void input() { cin>>fname>>lname; } }; struct birth_info { int month; int day; int year; void input() { cin>>month>>day>>year; } void output() { cout<<month<<"/"<<day<<"/"<<year; } }; int main() { string …

Software Development c c# c++
Member Avatar for deceptikon
0
180
Member Avatar for khalidshakar

package vc_client1; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.Socket; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.Mixer; import javax.sound.sampled.SourceDataLine; import javax.sound.sampled.TargetDataLine; public class voiceReceiver { public Thread playThread; boolean stopCapture = false; static ByteArrayOutputStream byteArrayOutputStream; AudioFormat audioFormat; static TargetDataLine targetDataLine; AudioInputStream audioInputStream; BufferedOutputStream out = …

Software Development java
Member Avatar for khalidshakar
0
307

The End.