132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NewOrder

[CODE]using System; using System.Collections.Generic; using System.Text; namespace Project1 { public class Homework { public static void Main(string [] args) { Dad d = new Dad(); d.LitCig(); Helper h = new Helper(); } } public class Dad { void WithDrawMoney() { Console.WriteLine("Father: Money Withdrawn"); } internal void Mercedes() { Console.WriteLine("Father: drive …

Software Development visual-basic
Member Avatar for NewOrder
0
266
Member Avatar for brandonrunyon

I have a class "Homework" that has a private attribute "int time" and I have set up a + operator to add the times of two Object instances. I have also created a Template "sum(T a, T b)" that takes two arguments and adds them together. I'm having difficulty using …

Software Development c++
Member Avatar for brandonrunyon
0
268
Member Avatar for Son of a gun

Can I ask for some advice / help please, I am writing a UI that upon the user making a selection from a drop down list it then populates details about the selection in text boxes. I am writing this as three classes the main class, the UI (User Interface …

Software Development java java-swing user-interface
Member Avatar for Son of a gun
0
111
Member Avatar for abewin

Firstly, i press ENTER to exit the 1st do..while loop and then the programe ask Rent Paid(y/n): if i press n and then ENTER, the program return rent_step2, and it is supposed to wait for me before i press ENTER again But it just break the 1st do..while loop and …

Software Development c++
Member Avatar for abewin
0
976
Member Avatar for rational_

Design and implement an object-oriented program describing two kinds of BANK accounts, [B]FixedFee[/B] and [B]ChargeableFee[/B], that differ in the way that fees are charged: • FixedFee: There is a fixed £5.00 fee at the end of the each month • ChargeableFee: Each withdrawal costs £0.50. The total fee is calculated …

Software Development java java-swing
Member Avatar for apines
0
306
Member Avatar for Rox Vi

Help Needed. When I click on button1, employee_id and P values need to be transferred from button1_click to Cal_Category13() and go through all the calculation. After the calculation, udtnew.X and udtnew.MTD values need to be transferred back to button1_Click I've no problem to return multiple values Cal_Category13().MTD and Cal_Category13().X from …

Software Development data-structure open-source vb.net
Member Avatar for Mariandi
0
156
Member Avatar for HoneyBadger

Guys I am trying t write this script that finds the age of a daughter through palindromes. Here is the question: Recently I had a visit with my mom and we realized that the two digits that make up my age when reversed resulted in her age. For example, if …

Software Development python
Member Avatar for gwmorris
0
288
Member Avatar for minimi

[CODE] import javax.swing.JOptionPane; public class Test1 { public static void main (String[] args) { // Method 1 Test3 method1 = new Test3(); // is this the method to call Test3()? JOptionPane.showMessage (null, method1 // Method 2 JOptionPane.showMessageDialog (null, Test3()); // Method 3 JOptionPane.showMessageDialog (null, Test3.toString()); } } class Test2 { …

Software Development java java-swing
Member Avatar for apines
0
143
Member Avatar for intes77

[CODE]import javax.swing.*; class Month { public static void main(String[]args) { String value=JOptionPane.showInputDialog(null,"Enter Month Day and Year"); if(value.length()==10) { char Month=value.charAt(0)+value.charAt(1); char Day=value.charAt(3)+value.charAt(4); char Year=value.charAt(6)+value.charAt(7)+value.charAt(8)+value.charAt(9); JOptionPane.showMessageDialog(null," "+Month+"/"+Day+"/"+Year+""); } else { JOptionPane.showMessageDialog(null,"INVALID INPUT!!"); } } }[/CODE] Hello i need help about combing the charAt()'s for example i would input 05/05/2010 i want …

Software Development java java-swing
Member Avatar for intes77
0
443
Member Avatar for sekhar9038

hai friends i am developing a voting software, but i cant able to find the code for increment the no:of vote in the database when an user click on the button.I used sql server 2005 as my back end..Any one pls help me...

Software Development vb.net
Member Avatar for sekhar9038
0
109
Member Avatar for vegaseat

Suddenly I am interested in the tcl scripting language. Does anybody know a good website to learn the rudimentaries.

Software Development shell-scripting
Member Avatar for gwmorris
0
3K
Member Avatar for jemimaloh

hi there. Just wanna check if I am coding this wrongly, [CODE]int sumOfVotes = 23 int howlong = 94 double SimPercent = ((sumOfVotes / howlong) *100);[/CODE] Shouldn't the answer, SimPercent, be 24.4? Tks!

Software Development java
Member Avatar for jemimaloh
0
99
Member Avatar for serph09

Hi, I got a compile error of incompatible types - lang.object is found but int expected on line 21. But when i put int in front of square, it says .class error:/ P.S. I didn't write everything here, I got some codes from other programs:P [CODE]import java.util.ArrayList; /** A magic …

Software Development java
Member Avatar for hanvyj
0
172
Member Avatar for lakk

Hi all, I have used popen function to run a shell script in my c program.. using that shell script, i write some floating point vale to a temporary file.. Then i tried opening that file using fopen and i used fscanf to read the only floating point value that …

Software Development c
Member Avatar for lakk
0
115
Member Avatar for 080346

Hello everybody; m screwed by searching, and dont get any satisfactory material, i want to know that, if i have a button of NEXT then how it will close that GUI and open the new one from another class?? kindly help me

Software Development gui java
Member Avatar for kramerd
0
88
Member Avatar for herms14

guys, ive copied a code about socket programming just to see how it runs. problem is i cant compile it everytime i compile client.c it shows and error. here is the error [CODE] client.c: In function ‘error’: client.c:9: warning: incompatible implicit declaration of built-in function ‘exit’ client.c: In function ‘main’: …

Software Development c client-server socket-programming
Member Avatar for getlogesh
0
1K
Member Avatar for dead1

i need to write a code that will download an excel file from a website every time it is ran. what im trying to do is automatically import real time electricity rates into excel. im a beginner in programing and am seeking help for my senior design project. Thank you

Software Development java
Member Avatar for hanvyj
0
81
Member Avatar for vbx_wx

I know how to test for a blank space,but how can you test for more than one blank ?

Software Development c
Member Avatar for vinitmittal2008
0
289
Member Avatar for AndreiZ3

Hi, I have loaded a listview with data from a webservice. foreach (DataRow dr in dt.Rows) { ListViewItem lvi = new ListViewItem(dr["ProductName"].ToString()); lvi.SubItems.Add(dr["QuantityOrdered"].ToString()); lvi.SubItems.Add("0"); lvProductsOrdered.Items.Insert(0, lvi); lvi.Tag = dr; } Now when the user taps on the listview item I want to read the data back in: The list view …

Software Development c c# c++ listview
Member Avatar for N4JRY
0
160
Member Avatar for vanan4u

i have done program as below. need to input no of students and no of subject. no of subject and student is undefine. every entered marks should produce its grade. in this case i've defined the no of subject by right it should be entered by user. how can i …

Software Development c
Member Avatar for mfaisalm
0
190
Member Avatar for vinitmittal2008

[COLOR="Green"]Hello Friends... i made this Queue Program in c and its working good.. But I want to make it circular Queue please give some ideas..[/COLOR] [CODE] # include <stdio.h> # include <conio.h> # include <stdlib.h> # include <string.h> # define QSIZE 5 typedef struct{ int head,tail; char names[QSIZE][30]; }QUEUE; void …

Software Development c queue
Member Avatar for vinitmittal2008
0
2K
Member Avatar for shakssage

Hi, I cant seem to convert the following into vc++ from vb.net. [CODE] Dim i As Integer Dim address As String = myReader.Item("Address") Dim addresses() = address.Split(" ") Dim secondPartIndex As Integer For i = 0 To addresses.Length - 1 If Regex.IsMatch(addresses(i), "^\D{1,}$") And secondPartIndex = 0 Then secondPartIndex = …

Software Development c++ regex
Member Avatar for jonsca
0
166
Member Avatar for TriceD

Hi all, I need to pass an event as a parameter to a function and I'm wondering if there is any way of doing this. The reason why I need to do this is because I have a sequence of two lines of code that is littered all over my …

Software Development vb.net
Member Avatar for TriceD
0
448
Member Avatar for 080346

hello; i have gui on which i have a button of ADDMEMBER and this is in my package of Member; now i want to open another gui from another package of LIBRARY; how i will do it?? i have searched it alot kindly answered me .... Thnx

Software Development gui java
Member Avatar for hanvyj
0
93
Member Avatar for ekkanh

Hi I have a list of False and True, which I have written to a file. When I read the file, I cant get back to my True and False list.... I only get the ["True","False"] version of it, but I want it to be like this: [True,False] Is it …

Software Development python
Member Avatar for ekkanh
0
237
Member Avatar for muzikhera

i have two related table name employee and userloginlogs. In my program user must first log username and password located at employee table. If the user already logged in i want to get the employeeID at employee table then save it to userloginlogs table plus the login and logout date …

Software Development open-source
Member Avatar for muzikhera
0
136
Member Avatar for JasonQiao

How to use RE to solve this, I did it with other method. THANK YOU VERY MUCH! Here is Question: '''Parse Stock prices. Create a function that will decode the old-style fractional stock price. The price can be a simple floating point number or it can be a fraction, for …

Software Development python
Member Avatar for Gribouillis
0
308
Member Avatar for BboyRodimus

I have this recursive method that counts the amount of negative numbers that lie in the array called "NumArray" [CODE]public static int countNegative(double[] NumArray, int startIndex, int endIndex) { if (startIndex == endIndex) { if (NumArray[startIndex] < 0) { return 1; } else return 0; } else if (NumArray[endIndex] < …

Software Development java
Member Avatar for apines
0
1K
Member Avatar for Phil++

Hey, I have a function that replaces a string within a file: [code] public static void WebPage(int gradeA, int gradeB, int gradeC, int gradeD, int gradeE, int gradeF) { // read the HTML file TextReader webpage = new StreamReader ("/Users/Desktop/Assignment/webpage.html"); string LookUp; while ((LookUp = webpage.ReadLine()) != null) { string …

Software Development
Member Avatar for apines
0
96
Member Avatar for welcomelambb

Hello, everyone i just start to learn python, but i have some problem of it can you help me figure it out please? my problem is i want to obtain a sensetce and obtain one randomly words from the use i want to write a prgram which can find out …

Software Development python
Member Avatar for SgtMe
0
125
Member Avatar for Bri426

I'm learning about arrays in my C++ class and am having some trouble with them. We have an assignment that states: Write a program that will: (1) Ask the user how many times a simulated pair of dice should be thrown. (2) Ask whether the user wants to see each …

Software Development c++
Member Avatar for SgtMe
0
1K
Member Avatar for brycematheson

I'm creating a Tic-Tac-Toe game. Well, at least the beginnings of it. Currently, I'm trying to read a game board from a file, display it to the screen, and then write the contents back to a different destination file that the user selects. My problem is this: when reading the …

Software Development c++ open-source
Member Avatar for WaltP
0
126
Member Avatar for raider650

How would I output this into: int main() I've tried: int main() { PostTemperatures; } [CODE]struct WeatherStation { string StationName; double Temperature; }; void PostTemperatures(WeatherStation BigBasin,WeatherStation Foothill, WeatherStation DeAnza, WeatherStation MiddleField, WeatherStation RedwoodCity) { cout<< "Enter reported temperatures..."<<"\n"<< "\n"; BigBasin; BigBasin.StationName = "Big Basin"; cout << "Weather Station " << …

Software Development c++
Member Avatar for raider650
0
74
Member Avatar for planetPlosion

I have printed the contents of 2 folders to separate txt files. It is in the form of a python list ['a', 'b', etc.] How could I loop through the files looking for matching list elements? My first problem is how to extract the words from out of the quotes …

Software Development python
Member Avatar for Gribouillis
0
113
Member Avatar for LuckyX2

Hey guys, just like the other graph/node problem on here, I too have a problem with graphs. The problem is as listed here: [URL="http://www.cs.rit.edu/~vcss241/Homeworks/08/AlternateDFS-stu.pdf"]http://www.cs.rit.edu/~vcss241/Homeworks/08/AlternateDFS-stu.pdf[/URL] and the pseudocode for what I'm trying to do is this: [QUOTE]DFSnodeWithDeletion( graph, node ): count the node itself for every neighbor of node: remove the …

Software Development pdf python
Member Avatar for LuckyX2
0
166
Member Avatar for Diamonddrake

I have written a Rockband Drum kit app that lets you use the Rockband Drum kit with your PC as a drum synthesizer. It has 30 Drum wav sounds and can also be used to play sound through MIDI as well, working on MIDI recording and a loopback driver to …

Software Development flash
Member Avatar for Diamonddrake
0
397
Member Avatar for nellyznell

I'm trying to evaluate postfix expressions but i cannot get it right. I always get the result value as 0 and in my evaluate method it keeps saying my num1 num2 and result have not been initialized. Any help is appreciated. [code] package collection; import java.io.*; public class Postfix { …

Software Development java
Member Avatar for CLina
0
1K
Member Avatar for SpyrosMet

Hey everyone. I have a problem with 2 strings i need to compare. My code is the following [CODE] if((*(fixedparkpnt)).name == pname) { //do stuff }[/CODE] I am trying to make a search proceedure based on a name given by the user but the condition is always false. I have …

Software Development c
Member Avatar for Agnusmaximus
0
1K
Member Avatar for Iamthecheese

Hello, I'm having trouble translating an algorithm. I'm not sure I coded bits of this correctly, but I'm certain that I have no idea how to compare an item with a node identifier (cannot apply > operator with T,T) but since this is an insert sorted method rather than insert …

Software Development algorithm java linked-list
Member Avatar for kramerd
0
184
Member Avatar for BboyRodimus

So I'm suppose to create some code that will perform some methods in recursion. Here's the prompt: [I]Assignment #9 will be the construction of a program that reads in a sequence of numbers (not necessary integers) from standard input until 0 is read, and store them in an array (including …

Software Development java
Member Avatar for kramerd
0
501
Member Avatar for biggie_011

Hi Guys, I'm trying to have the user enter an integer than an outline of a pyramid would be printed on the console. I just can't get the last line to print out with "*" all across. So say a user enters 5 I need the output to be: [CODE] …

Software Development java
Member Avatar for apines
0
125
Member Avatar for Roy1287

Hi. I'm new to this forum and to programming in general. This is my first programming class and it is in JAVA. I have been doing alright in the class, but am really struggling with this weeks program assignment. If you could help me out at all I would really …

Member Avatar for kramerd
0
831
Member Avatar for qvyhnl

Problem: write a function that returns a pointer to the maximum value of an array of double. I have written the code that return the maximum, but I don't know how to turn it into a pointer and return it =.= [CODE]#include <iostream> #include <string> using namespace std; const double …

Software Development c++
Member Avatar for qvyhnl
0
114
Member Avatar for lu25

write a public class called IfElseDemo. Create a Method called go [I][B]that takes the args String array from the main method[/B][/I]. in that method create an if/else block that looks at the first element of the array and uses the string equals method to determine the output. if it contains …

Software Development java
Member Avatar for coil
0
135
Member Avatar for lochnessmonster

How do you all feel about class composition? say im making a class i would want to publish to the public for use...well if i perform class composition this means i would also have to implement the other classes/structs so the programmer can even properly use my class. Im just …

Software Development c++
Member Avatar for mike_2000_17
0
192
Member Avatar for sravi.pearl

hai all , i have a string s= The POST variable NM_xwTapCtl%24_img_Banner is vulnerable.,The POST variable NM_xwTapCtl%24scrollTop is vulnerable. I dont know the procedure to modify that s to s = NM_xwTapCtl%24_img_Banner,NM_xwTapCtl%24scrollTop HELP ME PLEASE!!!!!!!!!!!!!!

Software Development python
Member Avatar for woooee
0
93
Member Avatar for brycematheson

I'm writing a program that will eventually be a Tic-Tac-Toe game, but as for now, I just want to get the layout done. Right now, all it does is read the game board from a file, display it, and then ask you where you want to save it afterwards. I'm …

Software Development c++ open-source
Member Avatar for Greywolf333
0
703
Member Avatar for DallasFan3

Well I am now starting a new program and it evolves get the users height, weight, age and then calculating it into hat, waist, jacket sizes. I have to have four made methods in it also. One for each clothing size and on for asking the user if they want …

Software Development java
Member Avatar for Eric Cute
0
2K
Member Avatar for rlhh

First of all, thanks for any help that I'll receive. Now on to the question. I'm wondering how do I create an array of an object in C++? I've done this in Java before but I've got no idea how to do it in C++. [CODE] import Accout.java private Account …

Software Development c++
Member Avatar for rlhh
0
205
Member Avatar for javajavajava

Hi, I need help in creating a never ending array using java. It should basically work like and ArrayList but should be done using arrays.

Software Development java
Member Avatar for Eric Cute
0
218

The End.