132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for EGutierrez91

I've run into a few problems with this one. I've tried my best following the directions. I can't figure out how to properly use "switch" since we haven't really put it to use in class. I want to create random integers (this I know how to do) that will become …

Software Development java
Member Avatar for EGutierrez91
0
1K
Member Avatar for jess99

Hi, I have to create two forms. In the mainFrm the user enters all his personal data (name, phone, email, address), and a label to display amount due. One of the buttons takes the user to a second form. In the secondFrm , I have two CheckBoxes, one is for …

Software Development vb.net
Member Avatar for jess99
0
151
Member Avatar for s11049151

Hi Friends, Can you please help me write 3 functions in C++. It's based on a 2 dimensional linked-list The 3 functions that i have left to write are: [B]1.get_data: If data retrieval is successful return true otherwise return false. 2. update_data: This function updates the data located in the …

Software Development c++ linked-list
Member Avatar for Labby Tisha
0
568
Member Avatar for mms6

I need help with my Palindrome code For some reason, I cannot seem to convert the text into lower case letters and I cannot seem to ignore spaces and commas and periods and so on. Here is my code [CODE]def is_palindrome(user_input): i = 0 result = True while i <= …

Software Development python
Member Avatar for mms6
0
99
Member Avatar for jess99

Well, I did this program and it works, but my instructor wants me to use this statements instead of the one I used: My original code was: Dim DiscountVal As Double = 1.0 'ByVal arguments passed as by value (chapter VI) Dim BasePrice As Double = 9.95 Dim AdditionalPrice As …

Software Development vb.net
Member Avatar for jess99
0
122
Member Avatar for power_computer

I currently have a template class, another class that is passed as the parameter to the template and a driver and I am getting these errors, I have no clue what the problem is. Also I have another issue with this project I need to sort out which is insert …

Software Development c++
Member Avatar for power_computer
0
263
Member Avatar for spookyfish

Im tasked with developing a simple blackjack program for a class. The program I have currently compiles and runs but it isnt paying out properly. A blackjack (21) should pay out 1.5*the wager, but it is doing it more than it should. Here is the code I have. [CODE] #include …

Software Development c c# c++
Member Avatar for spookyfish
0
6K
Member Avatar for gonzila

Hi Guys, I have a compiled java file example.class and i need to use the methods in this file to read from a text file. I need to have this file inside my package as requested by the teacher. However when i put the example.class file into my package and …

Software Development file-system java
Member Avatar for gonzila
0
105
Member Avatar for gretty

Hello I have 2 ways to delete a linked list, which one is correct? If I have this linked list: [QUOTE] list = 1 - 2 - 3- 4 [/QUOTE] Which function will delete list correctly? 1. [CODE] void destroy(node * & list) { while (list != NULL) { delete …

Software Development c++ linked-list
Member Avatar for gretty
0
80
Member Avatar for vitvar

Hi i am trying to write a function in C which will print a substring oout of a string in loop with a token seperator. For example i have a file which contains the following lines aaaaa bbbbb ccccc ddddd i have to read each line and then copy to …

Software Development c++
Member Avatar for vitvar
0
196
Member Avatar for avi_2009

Hi Guys: I am trying to build a simple application to query a REST web service. I have developed a perl script and its working fine. I have also developed a java app which does the same thing. Just wondering if C++ can be used for it. I did not …

Software Development api c++ perl
Member Avatar for mahatmagaga
0
174
Member Avatar for Kolz

If the str is a palindrome, return True; otherwise, return False. Punctuation, spaces, and other non-letters are ignored; their presence or absence should have no effect on the result. Uppercase letters are considered to be equal to their lowercase equivalents. So my question basically is... How do I "ignore" the …

Software Development python
Member Avatar for masterofpuppets
0
152
Member Avatar for darkpeakjim

Hey guys, I'm reading data from a text file into a vector of strings and would like to pass these strings as parameters to a function. To be clear, I don't want to pass the actual strings as parameters, but the variable with the name which corresponds to the contents …

Software Development c++
Member Avatar for darkpeakjim
0
89
Member Avatar for yeungn

Hi I am trying to create a method that will substitute a value x with a value y in a basic array. Your assistance is much appreciated! Yeungn

Software Development java
Member Avatar for yeungn
0
113
Member Avatar for AnonSurf

Need to take input from a file as command line argument and put it in an array, but i keep getting .class expected on this line [CODE]temp[][] = infile.nextInt();[/CODE] Here is the whole code so far for reference [CODE]import java.util.*; class Temps { public static void main(String[] args) { Scanner …

Software Development java
Member Avatar for BestJewSinceJC
0
119
Member Avatar for poopynoob

I am trying to read the value of memory address using c++. For example, how can I read the value contained in "00B12318"? I have tried: [CODE]int value; 00B12318 = &value; cout << value;[/CODE] But sadly it doesnt work. Please help! THank you :(

Software Development c++
Member Avatar for poopynoob
0
96
Member Avatar for kadji.kahn

I was asked "This program should calculate which of four company divisions had the highest sales for the last year. The program should ask for the annual sales for the four divisions. The function should calculate which division has the highest amount in sales and return that amount to the …

Software Development c++
Member Avatar for kadji.kahn
0
149
Member Avatar for beanryu

Hi, I want to create multiple executables corresponding to their .c files in one target rule. For example, I have prog1.c and pro2.c, how do I create the executables prog1 and prog2 from just one target? By target I mean something like this test: [I]dependencies[/I] [tab] [I]command rules[/I] Thanks in …

Software Development c
Member Avatar for er_mv
0
231
Member Avatar for kinger29

I have created a JApplet and I want to be able to clear the screen and draw new components depending on what button I click on. Right now the code below will clear the screen but it doesn't redraw the JTextFields (label_1 & label_2). However I did notice whenever I …

Software Development encryption java java-swing
Member Avatar for quuba
0
249
Member Avatar for banks2140

I need help with my programming assignment which states A mail-order house sells five different products whose retail prices are as follows: Product Price 1 $2.98; 2 $4.50; 3 $9.98; 4 $4.49; 5 $6.87. Write a C++ program that reads a series of pairs of numbers as follows: a) Product …

Software Development c++
Member Avatar for restrictment
0
107
Member Avatar for PDB1982

I trying to create a program that deals with money, and have it all figured out except one portion...I can't get all the decimals to have a monetary look, meaning only two decimal places. I know I can setprecision(2), and that would work for most numbers, but what if the …

Software Development c++
Member Avatar for restrictment
0
113
Member Avatar for Odc

Hi guys, I've got a simple bool 2D array that is set to false by default. I'm filling it with random 'true' values. I am then trying to make it symmetrical i.e. array[i][j] = array[j][i] However, this doesnt seem to be working and I was wondering why. I've been trying …

Software Development c
Member Avatar for twomers
0
95
Member Avatar for arunkumars

Hi I Have a problem in Windows application in .net. I have a PDF file which is stored in my local drive. At run time i need to print that PDF Document using C#. Can you help me out from this problem ? Help appreciated.. thanks in advance..

Software Development asp.net c# pdf
Member Avatar for DdoubleD
0
2K
Member Avatar for walter clark

The clock() function works fine in Visual C++ Version 6. I used it for evaluating how many milliseconds certain functions needed. But with Version 8 it won't let me use time.h the library that holds clock(). Naturally the error is unreadable, but there's hundreds of them and its obviously complaining …

Software Development c++
Member Avatar for walter clark
0
112
Member Avatar for Poopster01

this is the simple problem I'm working on. A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period …

Software Development c++
Member Avatar for Poopster01
0
154
Member Avatar for NinjaLink

I had another thread before this one, but I felt that it was getting too long. Current problem: My operator== is not working properly in my program. I have done some things in my function, but I don't think it is "completely right". My program compiles fine and the output …

Software Development c c# c++ perl
Member Avatar for Tom Gunn
0
1K
Member Avatar for sexyzebra19

Hi, I've tried to make a program that inputs two 3D vectors and then calculates various norms of the first vector, and the dot product and addition of both vectors. My code is working fine when everything is put into the main, however I wanted to create some functions to …

Software Development algorithm c++
Member Avatar for sexyzebra19
0
99
Member Avatar for Megabyte89

OK I have a search script that suppose to search for information in my database. The problem I having is that I want the user to be able to enter a last name to search. The only part that is giving me problems is this part, I'm stuck on this …

Software Development python sqlite
Member Avatar for strider1066
0
214
Member Avatar for EvanGolder

Hi all.. I am new to Python and I am here seeking help. Actually, I'd like to run a DOS executable file from Python. The DOS excutable file requires 5 inputs from the users, and I have tried some coding which apparently doesn't work. Can anyone help? Here is my …

Software Development python
0
47
Member Avatar for baskar007

i am new to PyGtk. i don't know how to get realtime update on gtk. such as downloadmanagers show's every time the speed changes. here is my. in this code the "f='/home/tree.txt'" is a log file .this file regularly updated by another thread. i want to add the file contents …

Software Development python
Member Avatar for The_Kernel
0
730
Member Avatar for Rastafari

hi, I have a program that compresses a file but for some reason my output file comes up empty every single time ...I dont get it . can some body tell me what i might be overlooking The sample input file looks like this ..GGGGGG...OOOOOOOO...OOOOOOOO...DDDDDD and my function has to …

Software Development c++ file-system
0
81
Member Avatar for aks229

Can anyone please help me with this assignment. Its due friday and i have no clue how to do. thanks in advance for your help. _____________________________________ Question Design a MIPS assembly language program to implement the multiplication algorithm of the diagram provided in the link below [URL="http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5"]http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5[/URL] Demo the program …

Software Development algorithm assembly ide
Member Avatar for Woady
0
156
Member Avatar for BlendedFrog

Working on a project that is basically a simple bowling program that uses a gui to read in from a given text file a pre-determined amount of names and scores...runs through the standard 10 frame scoring system, prints out the score, and who won. Now I can't seem to get …

Software Development gui java java-swing
Member Avatar for eggmatters
0
145
Member Avatar for salmanoreen66

Assignment Write a C++ program to implement employee directory, which will let the organization to perform the following functions: 1) Insert the record of new employee 2) Delete the record of an existing employee 3) Find the record of an existing employee 4) Display Report Following information of each employee …

Software Development c++
Member Avatar for ellimist14
0
167
Member Avatar for Peric

So...I want to send image source to Crystal Reports document. I'm having a database of maybe 400 members and each one of them is having personal picture...i want to send that picture to Crystal Report document when I click on button for each of my members, is that possible somehow? …

Software Development vb.net
Member Avatar for TomW
0
2K
Member Avatar for jakx12

Ok so im building a level editor for this game. What the code i cant working does is, when the button is clicked it should get the selected cell from the jtable and set a value for it. However, for some reason I cannont get it working. Here is the …

Software Development java
Member Avatar for quuba
0
263
Member Avatar for umarabbas

how we can change our color of display in C++?

Software Development c++
Member Avatar for salmanoreen66
0
82
Member Avatar for Lida_pink

How can I get the sum of the numbers of only one textbox? For example text1.text= 1367 How to get the sum of this 4 digit number? I appreciate your assistance in advance. Lida

Software Development visual-basic
Member Avatar for Lida_pink
0
723
Member Avatar for Blondeamon

[CODE]public String expandTemplateTopic(String remark) { String random_word = findKeyWord(remark); String str=" "; String kok2=" "; int num1=0; int num2=0; int num3=0; //find a random template int number = generator.nextInt(sentenceList.size()); String argument=sentenceList.get(number).getTemplate(); //split it into words using space as delimiter List ls=new LinkedList(); String[] array =argument.split (" "); //find if there …

Software Development java
Member Avatar for masijade
0
161
Member Avatar for kadji.kahn

I was asked "This program asks for a series of five test scores and calculates the average score in a function. The function should receive the total of the five scores as an argument and return the average of the five scores. The program should not accept scores less than …

Software Development c++
Member Avatar for cgeier
0
153
Member Avatar for UKmason

********************************************************************************** Write a float function that will have four float parameters. The four parameters represent two Cartesian points, 2 x's and 2 y's. Return the distance between the two points. It involves a square root. Write a main function which will ask the user for 2 points (4 numbers), decide …

Software Development c++
Member Avatar for mrnutty
0
292
Member Avatar for speedy94519

Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? Please note that the numbers arent part of the pattern, they are just a guide for row and column. * * * * * # # # 1 * * …

Software Development c
Member Avatar for mrnutty
0
96
Member Avatar for twoshots

I've just started learning Python but have hit a little issue when instancing a class. I seem to get errors like: AttributeError: type object 'Stuff' has no attribute 'a' or: AttributeError: class 'Stuff' has no attribute 'a' Clearly I'm missing something fairly fundamental :/ A quick test program shows what …

Software Development python
Member Avatar for twoshots
0
122
Member Avatar for complexcodes

Hi all, I am playing around with list and I figure out how to merge two lists and all. But I have no idea how can I integrate one list onto another. For example A = {1,2,3,4,10,11} and B = { 5,6,7} Then my integrated list should be {1,5,2,6,3,7,4,10}. I …

Software Development c c# c++
Member Avatar for mrnutty
0
148
Member Avatar for tomtetlaw

How do I access the paramaters entered after param1? Like this: void foo(param1, ...); How do I access the ... part?

Software Development c++
Member Avatar for Dave Sinkula
0
88
Member Avatar for sravan953

Hey All, I have made a program called "Pymailer", I have even made a GUI version... now what I want to do is to convert it to .exe format... how do I do it? I googled for some info, but in vain!

Software Development gui python
Member Avatar for sravan953
0
1K
Member Avatar for number87

I am trying to convert a string "500.00" into float. When I use this it produces a string 50000, why does it produce such a result? [code] atof(bal.c_str()); [/code]

Software Development c++
Member Avatar for mrnutty
0
177
Member Avatar for t_simpson

I'm a student but I'm not asking anyone to do my work for me, however I would like a little help if possible please. For part of my assignment I have to create a program that will issue a bepp of the value ( frequency and duration ) that the …

Software Development c++ session windows-vista
Member Avatar for t_simpson
0
75
Member Avatar for yugatpt

hai friends this is yugandhar, i want to learn c language so i want install c setup, wile iam installing the setup file is not installing proprally but right now iam using vista operating system can u help me any one, if u have any c language setup file send …

Software Development c c# c++ operating-system
Member Avatar for Ancient Dragon
0
105
Member Avatar for tripes

hi i have a program that uses ms access database in [B]vb.net 2003[/B], when i run the program it seems to work fine but if i press a button that uses an openfile dialogbox and try to open again my database the program crashes... it seems that is losing the …

Software Development vb.net
Member Avatar for TomW
0
179

The End.