199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RoseB

I a sorry to come back with the same question. 2014 $5500 $5000.00 28% (10/12) x (5/15) $1389 $1389 $4111 2015 $4,111 $5,000.00 28% [(2/12) x (5/15)] + [(10/12) x (4/15)] $1,389 $2,778 $2,722 below is the code i use to calculate for the sum of years digit depreciation which …

Member Avatar for Mr.M
0
459
Member Avatar for R.M.

Hi I need help with something, I really don't know how to do this, but how would I add these questions in to VBA? could somebody tell me for atleast one. The net take-home income and other values are calculated as follows: 1) Calculate CPP and EI If annual income …

Member Avatar for Mr.M
0
277
Member Avatar for Mohammed_9

How can one code a function to remove all trailing blanks from the right end of a string, assuming i use void trimRight(char a[]);

Member Avatar for Mohammed_9
0
132
Member Avatar for waseem1345

I have a textbox called ssd. I want it to compile the C# code in it to "Prgoram.exe" at the same location. I tried this: CSharpCodeProvider codeProvider = new CSharpCodeProvider(); ICodeCompiler icc = codeProvider.CreateCompiler(); System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters(); parameters.GenerateExecutable = true; parameters.CompilerOptions = "/target:winexe"; parameters.OutputAssembly = "Program.exe"; parameters.GenerateInMemory = …

Member Avatar for waseem1345
0
234
Member Avatar for waseem1345

Hello, I'm making a program creator... I have a toolbox that adds a button and it's event...etc. to a panel called thepanel. How do I get the code of thepanel to compile it again to create another executable that have thepanel as the form. I know how to compile it …

Member Avatar for waseem1345
0
104
Member Avatar for nstrazimiri

Hello. I need to export the text typed into the text area and import it into an arraw. but when i type in new lines it cant't read it. example:when user types: aaa bbb ccc bbb the out put at the end should be: aaa bbb ccc this is the …

Member Avatar for diafol
0
541
Member Avatar for Mr.M

Hi Dw Well I know this kind of question has been asked over and over again but with not straight to the point question, so since I'm also creating a program that require it I've decided to break this down and ask a straight to the point question to get …

Member Avatar for Minimalist
0
312
Member Avatar for nabilmahesaniya

Hey friends, i have just started with my java classes but im finding it quick tricky so is there any books availabe for dummies

Member Avatar for raj.mscking
0
157
Member Avatar for Satyam_1

I a form with textbox as age. A database with 2 tables as- Accessonbook and Report. So when enter into value in Age textbox it should copy in age column in both tables. Please tell me the code.

Member Avatar for oussama_1
0
286
Member Avatar for Mohammed_9

I am having problem getting the final result here, it keeps on looping. #include<stdio.h> #include<string.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<ctype.h> int main() { int i, t, k, max, min, sumof; printf("Enter number of integer elements in array: "); scanf("%d",&t); int a[t]; printf("Enter list of array: \n"); for ( i = 0; …

Member Avatar for Mohammed_9
0
180
Member Avatar for foshan

I got this code from the internet. import random #create a sequence of words to choose from name = ("stephen","bob", "robert","craig") # pick one word randomly from the sequence word = random.choice(name) #create a variabe to use later to see if the guess is correct correct = word # create …

Member Avatar for foshan
0
199
Member Avatar for printf.me
Member Avatar for Minimalist
0
135
Member Avatar for stikku

Is it possible to call repaint() inside the main()?I have tried the code below.But its not working public mypanel() { initComponents(); repaint(100,150,40,40); } protected void paintComponent(final Graphics g) { final Graphics2D g2 = (Graphics2D)jLabel2.getGraphics(); g2.drawRect(100,150,40,40); } //above code doesnt provide any output private void formMouseClicked(java.awt.event.MouseEvent evt) { repaint(100,150,40,40) } this …

Member Avatar for JamesCherrill
0
260
Member Avatar for NEMO_1990_2007

The greatest common divisor of integers x and y is the largest integer that evenly divides both x and y. Write a recursive method Gcd that returns the greatest common divisor of x and y. The Gcd of x and y is defined recursively as follows: If y is equal …

Member Avatar for David W
0
566
Member Avatar for davy_yg

Hello, I am trying to update phone number in the maps: http://www.indonusa.net.id/IndonusaCMS/contactus.php Yet, I still do not find a way to do so. I have updated all the phone number in the maps just like in the text next to your message. Yet, even after I refresh it the phone …

Member Avatar for davy_yg
0
97
Member Avatar for lord0o

Hi, I need to save the inserted password on MSSQL as md5 encrypted one. Basicaly when the user inserts the password on the textbox, it must be encrypted before storing it on the MSSQL Database. How can I do that? This was made from DreamWeaver CS6. Thank you the code: …

Member Avatar for lord0o
0
325
Member Avatar for <iostream>

Write a C++ program that would display the menu of a restaurant and will accept orders, compute for the total amount and compute for customer change after entering the given cash. The program should be looping and will end once the user answers No to the question: Another Customer (Y …

Member Avatar for rubberman
0
135
Member Avatar for Maideen

Hi I am new in php. Below code works fine. But If I change Select Command Like this: $sql = "SELECT login_id,password FROM user_right WHERE login_id = '$username' and password = '$password'"; It shows error recorde not found. Also I need to show the role of select user. Pls Help …

Member Avatar for Maideen
0
371
Member Avatar for davy_yg

Hello, I try to install XAMPP for Linux in Ubuntu (Using Virtual Machine) but I cannot install it since there is this error message: There has been an error This installer requires root previleges. Please become superuser before executing the installer. I already check the previlege, it is administrator. Therefore, …

Member Avatar for davy_yg
0
1K
Member Avatar for nitish.mohiputlall

here are my codes: #ifndef STUDENT_H #define STUDENT_H class student { public: void enterDetails(); void enterModule(); void displayDetails(); private: char name[100]; char studID[100]; char address[100]; char module[100]; }; #endif i want to add a 2d array "M[row][col]" in my class but i don't know how to do it anyone help?

Member Avatar for Edward_3
0
181
Member Avatar for cavin.gm
Member Avatar for <iostream>

guys help with this. sorry about my post earlier. im just new here in daniweb comm. i dont know the rules yet. i have a problem . i don't know the correct equation for this one. i don't get the correct answer .please help. amount=amount+price*quant; is this correct? #include<iostream> #include …

Member Avatar for David W
0
154
Member Avatar for darrylnuyda

Hi EveryOne, Can I ask your help/suggestion: click a button to open popup window, how can i carry the one of col. info to parent window's text box when user double click the row in listview in popup window. I have a code collected in the online for PopUpform: private …

Member Avatar for darrylnuyda
0
4K
Member Avatar for DS9596

Write a program that does the following: Asks the user to enter an integer Prints the integer in Roman numerals 1.) Asks the user if they'd like to convert another integer 2.) If the user enters 'n' or 'N': end the program (return 0;) 3.) If the user enters anything …

Member Avatar for StuXYZ
0
5K
Member Avatar for Putri Alvionia

hi..... i want to show data i datagridview... ![587c270accc1bbf443a3cc1f9d9ddf30](/attachments/large/4/587c270accc1bbf443a3cc1f9d9ddf30.PNG "587c270accc1bbf443a3cc1f9d9ddf30") This is my function codes : Public Function AutoNumber() As String Dim cnn As New SqlConnection(StrConn) Dim cmmd As New SqlCommand Dim dreader As SqlDataReader Dim KODE As String Dim TAMPUNG As String Dim KONTER As String Dim SQL As …

Member Avatar for xrjf
0
138
Member Avatar for kingkong142

Hi, I checked error log and found following php errors/warning, 1) File CODE: <a href="http://<?php echo $esrow_off['fld_company_url']."".stripslashes()?>" target="_blank"><img src="<?=$domain_url?>/admin/partnerimages/<?=$esrow_off['fld_partners_image']?>" border="0" height="42" /></a> PHP error / Warning: [17-Jun-2013 23:31:59 Europe/Minsk] PHP Warning: stripslashes() expects exactly 1 parameter, 0 given 2) File CODE: $esq_row2=mysql_fetch_array(mysql_query("select * from esb2b_products where es_id=$id")); [16-Jun-2013 00:29:51 Europe/Minsk] …

Member Avatar for stekmil
0
301
Member Avatar for ayushi_1

i am pursuing engg. (3rd year).i want some suggestion regarding my minor project.My proofesors want some unique point in my project so suujest me some project with unique in that.

Member Avatar for danie93
0
146
Member Avatar for happycodingdude

Hello there, I am currently working on a indepedendent project and I am realtively new to Python. Please note that this question revolves around Python version 3. But if you have a answer in Python 2 just write it down and tell me it is in Python 2 thanks. What …

Member Avatar for iamthwee
0
318
Member Avatar for Halkawt.Papula
Member Avatar for pankajagar2002

Hi, We are facing font issue in our java swing application in linux. Kindly help to solve issue. In our application we are explicity setting font as 'Arial' for labels and others in swing Application. Since Arial is not available in linux so it picks 'Lucida Sans Regular' as default …

Member Avatar for iamthwee
0
765
Member Avatar for mc3330418

I have a secret word. People need to guess the secret word by entering single letters. When they start it will have **** for the word. When they guess a letter, an asterick shoud be replaced with the correctly guessed letter. I cant get the charachter to replace in the …

Member Avatar for iamthwee
0
2K
Member Avatar for Vasthor

void StrVec::free() { if (elements) { for_each(elements, first_free, [this] (std::string* p) { alloc.destroy(p); }); alloc.deallocate(elements, cap - elements); } } produced this error: [Cruel Error :(](http://s3.postimg.org/4p1vfhs9f/New_Bitmap_Image.png) it was the second compiling error, if I removed the pointer, it will produced the first one. which is kind of -.-" so, I …

Member Avatar for mike_2000_17
0
159
Member Avatar for HelpMEPLZ!!!

Hi everyone My code is still a bit messy as I;m pressed for time. I have to write a simple game you play against the computer. I have my StartGUI class which instantiates the GUI and then I have a Game of Life class, which does not have a JFrame, …

Member Avatar for HelpMEPLZ!!!
0
318
Member Avatar for Dae14

Write a program that will allow tutors to record tutoring activities. A tutor needs to keep track of who come for help (name, student ID), started at what time (sign-in time), ended at what time (sign-out time), for what course, his/her professor name, a short description of the problems he/she …

Member Avatar for HelpMEPLZ!!!
0
203
Member Avatar for 2292.dana

hi i was try to setup my app in visual basic .net but my app have text file ho can i hide the text file while we set up the application ? thanks

Member Avatar for oussama_1
0
149
Member Avatar for sana.f.qureshi_1

hey there nice people, i am making a hospital management system online (using asp.net, C#, sqlserver), now here is the main thing, i want to make website's own video chat (between patient and doc). i am wondering if it's possible with asp.net (i'll be using visual studio). If it's possible, …

Member Avatar for sana.f.qureshi_1
0
682
Member Avatar for haps.chouhan

how to fix below error Notice: Error: Table 'oc_product_profile' already exists Error No: Table 'oc_product_profile' already exists CREATE TABLE `oc_product_profile` ( `product_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `customer_group_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`profile_id`,`customer_group_id`) ) ENGINE=MyISAM COLLATE=utf8_general_ci; in /home3/ffashion/public_html/ffashionfox.com/system/database/mysql.php on line 51 and my sql database is: <?php …

Member Avatar for manoj hanse
0
404
Member Avatar for JavaPadawan

I'm working on what I thought was a straightforward program to accept user inputs and store them in an ArrayList. I created a separate class containing an object and a constructor (first name, last name, and an integer). In the main method, I prompt the user for input within a …

Member Avatar for arnab.batabyal.54
0
22K
Member Avatar for DS9596

1. Ask the User for his or her name. 2. Display a Menu asking the user. a. Would you Like To Print all of the prime numbers from 3... N? b. Would you like to quit this program? 3. If the User selects to print the prime numbers. Ask for …

Member Avatar for Schol-R-LEA
0
163
Member Avatar for vineeth28

#include<stdlib.h> #include<stdio.h> #include<string.h> struct D { char name[20]; float balance; }d; struct C { char name[20]; int count; }c; char ch; struct A { char command[20]; char name[20]; char filename[25]; float amount; }a; struct P { char name[20]; }p; int main(char argc, char**argv) { struct A b; char str[100]; FILE …

Member Avatar for Schol-R-LEA
0
179
Member Avatar for RAM_8

Hi Everybody, Im running a Software web application - www.physioplustech.com My clients are asking for an offline version, where they can Access previous data and they can add new data even without internet connection. I wish I can create a desktop icon for my application, which when offline opens a …

Member Avatar for RAM_8
0
525
Member Avatar for soujanya.bhat.184

Hi All, I am learning Multithreading in Java and came across this code using SwingWorker for GUI multithreading. Here is the modified code done by me. import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingWorker; public class MainFrame extends JFrame { …

Member Avatar for mKorbel
0
363
Member Avatar for mwnt2014

Detect mobile browser for android and iphone.. Want to Use below code as in wordpress post if(strstr($_SERVER['HTTP_USER_AGENT'],'Android')){ echo '<img src="/images/android.png">'; } else if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')) { echo '<img src="/images/iphone.png">'; } else { echo '<img src="/images/Download-now-button.png">'; }

Member Avatar for Ajay Gokhale
0
226
Member Avatar for Nandomo

So basically I am writing a tic tac toe program in java which is peer to peer using tcp sockets. The data I am transferring has to be encrypted and checksummed. I know how to implement both, yet I do not know in what order to do it in. Should …

Member Avatar for stultuske
0
222
Member Avatar for hiiiiii@
Member Avatar for diafol
0
311
Member Avatar for Jjaus

I need the code for this Pseudocode AccountBalance Begin Get starting balance Get withdrawal amount If withdrawal amount > starting balance Then Display “Insufficient funds” Else final balance – starting balance – withdrawal amount Display “saving account balance is low End If End

Member Avatar for Jjaus
0
215
Member Avatar for Xheis

Hi. I found this code online: #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <sys/uio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> /*********************************************************************** * Global Constants * ********************************************************************/ #define A_ROW 2 #define A_COL 3 #define B_ROW 3 #define B_COL 2 #define ARGUMENT_COUNT 13 #define PIPE_QTY 4 /*********************************************************************** * Global Variables …

Member Avatar for Ancient Dragon
0
179
Member Avatar for Pobunjenik

Hi everybody, I'm back and I bring problems. :D I've done a fair bit of research - I know Android can't run JRE 1.7, and I know JRE 1.7 is needed to get Java to read SQL. I've got this project that says I need to make a way for …

Member Avatar for Pobunjenik
0
330
Member Avatar for jontposton

I am trying to get my method to return to the main. I have tried return statements but when i run it all it gives me is nothing. It just follows what the main method has but the other methods do not get to return to the main method so …

Member Avatar for jontposton
0
199
Member Avatar for schroaus

The End.