132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jacline

Design and implement a simple GUI application (or applet) that displays the graph of a quadratic function, Ax2 + Bx. Below the plot should be two sliders which allow the user to interactively set the values of A & B, the display being updated continuously in response to any changes …

Software Development gui java java-swing
Member Avatar for jacline
0
130
Member Avatar for timb89

[code] int log2(int n) { int count = 1; while(!n >= 1) { if (n%2 == 0) { count++; n=n/2; } else { count++; n=n/2; floor(n); } } return count; } [/code] not sure why it isnt working?

Software Development c c# c++
Member Avatar for timb89
0
123
Member Avatar for midimatt

Hi everyone, got a slight problem. trying to make a program that takes the users input and puts it into a string untill it detects a CR character then outputs the string, i've made a start but i'm at a dead end on what to do. [code=ASM] BITS 16 ;Set …

Software Development assembly
Member Avatar for rahul8590
0
117
Member Avatar for doha786

i am very new in java. in GUI class i have code like this : [CODE] public void actionPerformed(ActionEvent e) { if(e.getSource()==listButton){ ArrayList<String> list = new ArrayList<String>(); list.add("Orange"); list.add("Apple"); list.add("Pineapple"); list.add("Lemon"); list.add("Pear"); for(int i=0; i < list.size(); i++) { String s = list.get(i); { textArea.setText(s+"\n"); } }[/CODE] but its showing …

Software Development apple gui java
Member Avatar for javaAddict
0
110
Member Avatar for ddanbe

I want to make a square with a [B]0[/B] in it and when I click on it would change into a [B]1[/B]. (e.g. For use in a memory register in which I can set the bits manually.) Piece of cake I thought, derive from the Checkbox class and override the …

Software Development
Member Avatar for ddanbe
0
124
Member Avatar for ippomarley

hi guys, I am having trouble with this code, cause i get an infinite loop. I made nexTxtFile the variable name of the txt file i am creating and writing text to. i want to be able to get user input untill the user does not want to enter anymore …

Software Development java
Member Avatar for verruckt24
0
112
Member Avatar for Insomniac119

Everything work except for the fact that it cannot solve the whole puzzle, only a few rows. If somebody could just look over the recursive backtracking part of the algorithm, that would be greatly appreciated. Here's the snippet of code that I think is causing me grief: [code] /* @member …

Software Development algorithm c++ puzzle
Member Avatar for tux4life
0
1K
Member Avatar for akhileus87

Hy all, Firstly sorry for my English. I do one school project where I need to open one app with web page, what is generated with python. This process or app will make calclulation and create models. I created .bat to open this app: C:\\OpenModelica1.4.3\\bin\\omc +d=interactivCorba This works fine, but …

Software Development python
Member Avatar for akhileus87
0
124
Member Avatar for aodpreacher

I have a Class and then a made a sub class that would check if the letter "a" is in the string. i don't know how to call the subclass i made. i want to insert the subclass object into a StringDetail array but i keep getting an error. i …

Software Development java
Member Avatar for aodpreacher
0
155
Member Avatar for dekaya

once I have assigned a file name to a stream object, and no longer have direct access to that file name but I do have access to the stream object is there a way to extract the file name from it? It has to know it because subsequent operations read/write …

Software Development c++ file-stream
Member Avatar for dekaya
0
2K
Member Avatar for coder101

Hi all. I'm a novice with C++ and I'd like to make a program that will present the user with a series of exam questions, most of which are numbers but some of which are descriptions. I want each question to repeat until the user enters the correct response (but …

Software Development c++
Member Avatar for WaltP
0
168
Member Avatar for sid78669

Following is a perl script. It is running on shell when I go perl followed by the filename and works perfectly. But when I try to open it from browser, it gives back a 500. The permissions are fine because if i make some syntax error, it gives me the …

Software Development perl
Member Avatar for sid78669
0
225
Member Avatar for joozi

Im doing a c++ course at uni and one of my questions is to read in an external file, input a number (like 64) then the program will search the file for the number and output how many times the number the user input comes up in the file. here …

Software Development c++
Member Avatar for WaltP
0
103
Member Avatar for Malestryx

Good afternoon, I have posted a similar question before. I am a Python Newbie. But, I really need some code help here. I am writing a payroll program. Here is my code: [ICODE] employee=[] eName="Employee" pRate="Payrate" hWork="Weekly Hours" while (eName, pRate, hWork)>0: eName=raw_input("\nEnter the employees' first and last name. ") …

Software Development python
Member Avatar for Malestryx
0
108
Member Avatar for sid.coco

I have built an application in V C# Express Edition, now in express edition there is only ClickOnce and we can not publish the application, i hav used Windows iexpress wizard to create the setup but in vain, so if anyone can tell me what should I do in order …

Software Development c#
Member Avatar for JerryShaw
0
121
Member Avatar for 0o0

Hello, I'm new to gui programming althou i've done things before in c++ i've always encountered this error and never really tried to fix it. Lets for say I have a counter label and a button that says "Start" when one clicks start the label changes values from 0 to …

Software Development c++ gui visual-basic visual-studio
Member Avatar for 0o0
0
207
Member Avatar for sautap4u

I AM FACING PROBLEMS WITH SEPARATING SENTENCES FROM A TEXT . FOR eg. if i separate sentence after each '.' then it won't help for Dr.xyz. it would consider them as two different sentences.. but it is not. please help if possible with a suitable code..

Software Development c++
Member Avatar for Ancient Dragon
0
270
Member Avatar for snowfish

hi, i think i should add a password protection for my app.When the application starts, ask the user to enter the password. If the password is valid, the app continues to work normally. If the password is wrong, ask them to enter it again or close the app. if there …

Software Development python
Member Avatar for lllllIllIlllI
0
10K
Member Avatar for easytrucker45

I am having problems getting my program to compile and run. Newbie from the word go. The main problem is I have all of the code but I cannot make the other classes go with the main class. Any help would be great. Here is the code that I have …

Software Development java java-swing
Member Avatar for easytrucker45
0
253
Member Avatar for linhngoc2100

I have a homework that only uses loops and selections. I do not know how to do it. Here is the topic: Write a program that prompts the user to enter the number of students and each student's name, score. Finally, display two students have the highest scores. Thank you.

Software Development java
Member Avatar for GDICommander
0
107
Member Avatar for student_x

given a queue: queue<int> myqueue; write a function to remove the last entry in the queue. remark: you can't use stack, pointers, or linked list to do that. You can only use functions such as myqueue.pop(), myqueue.front() etc... Anyone has any ideas?

Software Development c++ linked-list queue
Member Avatar for student_x
0
6K
Member Avatar for saltysnack

Right now im making a converting program for myself. I got it to convert correctly but it only converts one character so here is my code [CODE]map<string,string>datamap; datamap["A#"]="b"; datamap["C"]="DD"; string change; getline(cin,change); for(int i=0; i<change.size(); i++) { //output based on what character gets passed to the map cout << datamap[string(change.begin() …

Software Development c++
Member Avatar for GDICommander
0
103
Member Avatar for archangelzero6

I am writing a program and want to have a a file loaded to be written to a specific location on the drive when an option is selected in a combobox. Here is the code that I have: [code] Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Software Development vb.net
Member Avatar for martonx
0
180
Member Avatar for klas

Hi All, I am new to this forum and looking for your help. I am a Software Tester and trying to build a C# program that would be logging in to the website and clicking links, inputing text and loging out. The code below works to the point where it …

Software Development
Member Avatar for Fnky
0
345
Member Avatar for vidaj

Hello I'm building my own html parser in python, and have ran into some problems. First off, I'm using python 3, so I can't use the old bundled sgmlparser, or beautiful soup and could not find windows binaries for lxml, so I'm rolling my own. It is for my master …

Software Development html-css java javascript python
Member Avatar for vidaj
0
1K
Member Avatar for Tigran

Hello, A few days ago I visited a lecture of a teacher in an university that was about parallel processing. He explained why it's good etc, and how you can make programs that use multiple cpus in C. He used MPI and the code looked nice, wasn't too hard and …

Software Development api c++
Member Avatar for tux4life
0
95
Member Avatar for seao111

Hi, i am trying to make a general compression algorithm in c++ but i haven't really gotten the i/o part of this right yet. What i want to do somewhere along the line is to have my program parse say 10 or so characters at a time from a binary …

Software Development algorithm c++ ios
Member Avatar for seao111
0
163
Member Avatar for Helgso

This program is "C:\test\program.exe": [code]#include <iostream> #include <fstream> using namespace std; int main() { int choice; cout<<" Which name to embrace?\n\n"; cout<<" - 1. Fight Club\n"; cout<<" - 2. Shawshank Redemption\n"; cout<<" - 3. Italian Job\n"; cin>> choice; }[/code] There's also a .txt file there named file.txt, "C:\test\file.txt\". Inside this …

Software Development c++ file-system
Member Avatar for tux4life
0
219
Member Avatar for pythonator
Member Avatar for phouse512

Hello, I'm learning to start to program in C++, and I have a problem with the prompt closing before the program ends. I know there's a lot of info about it, and I've googled it and searched here, but all the solutions to system("pause") don't work for me. I'm using …

Software Development c c# c++
Member Avatar for phouse512
0
105
Member Avatar for Malestryx

Good evening, I was wondering how I could set up a loop for the following code that will exit the loop when the person types done. Would the while command work to do that? [ICODE] def hours(): hours = input("How many hours did they work?: ") return hours def payrate(): …

Software Development python
Member Avatar for woooee
0
91
Member Avatar for originalremix

Hi all, New to these forums, i've just started learning python, and for my class i have one question that i have to do that i understand but aint to sure about what exactly is required. "Design, code and test a comp program that reads a character entered from the …

Software Development python
Member Avatar for woooee
0
172
Member Avatar for mimis

Hello, I have seen many problems that inputs an unknown size of tests and i have to output the result of each test. An example is here: [QUOTE] The Input The input will consist of a series of pairs of integers i and j, one pair of integers per line. …

Software Development c++
Member Avatar for mimis
0
186
Member Avatar for MaestroRage

A huge huge thanks for all the assistance in my previous thread. It has me well on my way. The problem right now is I am trying to read input from a file using the '<' redirection. I however, am completely lost on how to do this. Searching google has …

Software Development c
Member Avatar for Aia
0
13K
Member Avatar for edb500

Ok i have a parent class called MobileAccount, it has a public method called void PrintAccountInfo(), and within this PrintAccountInfo() method I call a private method called void PrintAccountType(). Now as I mentioned the parent class called MobileAccount has a subclass called AdvancedAccount, it too has a method called PrintAccountInfo() …

Software Development c++
Member Avatar for ArkM
0
80
Member Avatar for turbomen

Dear Sir / Madam, The following is the game of Rock, Paper, Scissors. But I don't know why computer is always choose Rock. My Answer:- program RPS5; {$APPTYPE CONSOLE} uses SysUtils, ourcrt; var Computer : integer; Choice, Move : char; begin repeat writeln('Rock(R), Paper(P), Scissors(S)'); readln(Choice); until (Choice = 'R') …

Software Development pascal
Member Avatar for FlamingClaw
0
88
Member Avatar for chaney44145

I am having some problems with python. If I use IE to POST data to a page using a simple form, I get the following [code] POST /automa/auth.php HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */* Referer: http://maroon5/automa/login.php Accept-Language: en-us Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, …

Software Development apache flash python windows-server xml
Member Avatar for chaney44145
0
183
Member Avatar for senaddor

Hello. I am having hard time understanding recussion in binary search tree. Assuming we have 6,4,7 in our tree the following inorder function should print 4,6,7 and I don't understand how it's done. Can somebody help explaining in more detail. Thank You. [code=cplusplus] void BinarySearchTree::print_inorder() { inorder(root); } void BinarySearchTree::inorder(tree_node* …

Software Development c++
Member Avatar for Narue
0
178
Member Avatar for taylormsj

Hey I need some more help with my program for my mum's indoor childs play center program. I have a database with information about the child, including date of birth in format 01/01/0001. I want the user to be able to click a button say 'btnjanuary' and for a list …

Software Development vb.net
Member Avatar for taylormsj
0
92
Member Avatar for becdudek

hey i am meant to write a method to display a number of prime numbers specified by the user. here's my code and i know its prob all wrong and there are much easier ways to do it but i just wanna know what to do to make it compile …

Software Development java
Member Avatar for rahul8590
0
157
Member Avatar for prabu.r

Hai , I am new to this forum as well as to Visual Studio 2005. i need to know all controls in VB.Net and their uses. which site i have to refer? Thank You.

Software Development vb.net visual-studio
Member Avatar for Teme64
0
70
Member Avatar for joshmo

I have two .java files and I want to access a variable of a method in one of the files and use it in another. However, I dont want to call the whole method and I dont want the method to return a value...I'll try to illustrate below [code=java] [COLOR="Red"]//file_A.java[/COLOR] …

Software Development java
Member Avatar for javaAddict
0
3K
Member Avatar for king_786

hello i am stuk on this piece of work which i have no understaning at all!!! this is the question could someone please show me or give me gudlines in how to do it!!! Write a Java application that asks a user for their name and displays it in a …

Software Development java
Member Avatar for javaAddict
0
187
Member Avatar for MukeshZ

Hi I am facing logon Failed problem in VB.Net Crystal Reports after i deployed it at client side... A window showing Database name, user name, Server and password I fill it manually still it fails... Can any one help me to sort out this solution... Thanks :)

Software Development client-server vb.net
Member Avatar for maczoon
0
688
Member Avatar for raul15791

Hi, I'm trying to save some images into my Database of my application. Can I know which of the method below is [B]better [/B]and [B]why[/B]? 1. Store only the picture path into the database. Retrieve Picture according to its path. 2. Store the Picture in Database as bytes. Thanks.

Software Development storage vb.net
Member Avatar for maczoon
0
155
Member Avatar for shahzadhard

Hi I worte this code can any body tell me why its not working Error can be seen in the attached file whis…. Value cannot be null. Parameter name : data source Private Sub btnTotal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTotal.Click Dim ConnectionString As String = "Integrated …

Software Development vb.net
Member Avatar for maczoon
0
93
Member Avatar for king_786

Write a Java application that helps a programmer check that the name to be used for a variable is syntactically correct. The rule for a valid Java name (called an identifier and is described on page 35 of the textbook) is a sequence of letters, digits, underscores (_) and dollar …

Software Development java
Member Avatar for bluesea50
0
116
Member Avatar for turbomen

Dear Sir / Madam, Please help me again on Delphi. Please help me to write a program that uses a function to caoculate the commission payable to the sales person, when passed the commission rate for the item, the total items sold and the price per item. For example, if …

Software Development delphi pascal
Member Avatar for FlamingClaw
0
97
Member Avatar for lauren316

Can anyone tell me what I am doing wrong in this code? The output window allows me to input the string, but does not output whether or not it is a palindrom. There are no build errors Thanks in advance! Lauren [code] #include <iostream> #include <deque> #include <string> #include <cctype> …

Software Development c++
Member Avatar for rahul8590
0
693
Member Avatar for Sleeper24

Hi there, I'm working on building a small application for home use. When a user does [control+c] to copy something, highlight an area to be copy, how do capture what context is being copy from those two options? Any help to point me to the right direction would be greatly …

Software Development
Member Avatar for Sleeper24
0
74

The End.