199,110 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
Hey, I have a scrapper that was written in php that gathers info from a website and outputs it in csv format. The problem that I have encountered is that there are short connection breaks which are enough for my script to stop executing and I am not sure whether … | |
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 … | |
Users click to open NEW Internet Explorer program page but they only get top half of page (ie minimized style) and need to click on icon at top right hand side - to get full screen (complete with tool bars etc). Question What code can be used to ensure window … | |
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 … | |
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 … | |
[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 { … | |
[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 … | |
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... | |
Suddenly I am interested in the tcl scripting language. Does anybody know a good website to learn the rudimentaries. | |
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! | |
Hi, When I send bulk emailsto many people I want to get reports like "how many delivered, how many failed, who opened, who didn't open etc.". Is this possible with PHP, if so which PHP mail package would be the best. Thanks in advance | |
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 … | |
Hi! I want to know, how to calculate running time complexity of a given code or algorithm. some one please help me. code is given below. x = 0; for (a=1;a<=n;a=a*9) { for (b=1; b<=3n; b++) { for(c=0;c<n; c=c+5) { x++; } } } I think, there is for the … | |
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 … | |
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 | |
Dear Friends, I am using FCKEditor in my website. It's working all over in website fine. But there is one page in which it does not showing properly. I tried all things but in that page is does not showing properly. I have one hidden div tag. When user clicks … | |
hi, never done this before and wondered if anyone could point me to a fairly simple step by step guide on how to add an rss feed from a site into our own web site? many thanks | |
PHPMYSQL - How do you perform a double SELECT query or check against multiple fields? Does anyone know how this can be achieved? What i want is from a search page that has multiple search areas such as name / description / functions and be able to type multiple search … | |
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’: … | |
I am displaying a value in directory.php page and then i want to display the result when clicked on the detail hyperlink , specific record to be shown in the directorydetail.php , but it is not showing. :( i am submitting the code in chunks, <td width="90"><?php echo $row_Directory['Off_tel']; ?></td> … | |
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 | |
I know how to test for a blank space,but how can you test for more than one blank ? | |
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 … | |
Hi, I am trying to get a live search facility working but my code is not working, I was wondering if someone could help me out and see if there are any mistakes or things I can change: Index.php [CODE] <form id="jobSearch" method="get" action=""> <input type="text" id="searchJobs" class="JobSearchBox" name="z" onkeyup="showResult(this.value)" … | |
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 … | |
[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 … | |
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 = … | |
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 … | |
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 | |
Hi i have this form below and i cannot get it to display as a .cfm file within I.E. and i also get this error The value of the FROM attribute is invalid. The length of the string, 0 character(s), must be greater than or equal to 1 character(s). I … | |
[B]According to Walter E. Trabbold, controller of the Bank of Delaware, "We have defined it [development of management information systems] in terms of six subsystems.'' These are:[/B] [COLOR="Red"]a. Development of a central (customer information) file. b. Computerization of all operations: demand deposits, savings, commercial loans, mortgage loans, investments, and clubs. … | |
Hey guys.... please help me out on sorting this php issue... i have made a form to upload images to folder and its details to database but not able to code a form to retrive image from folder and its details from database. HTML form - [CODE]<form method="post" action="addMember.php" enctype="multipart/form-data"> … | |
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 … | |
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 … | |
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 … | |
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] < … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 " << … | |
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 … | |
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 … | |
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 … | |
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 { … | |
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 … | |
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 … | |
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 … |
The End.