132,726 Archived Topics
Remove Filter ![]() | |
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 … Software Development vb.net | |
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 … Software Development vb.net visual-basic | |
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 = … Software Development c# | |
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 … Software Development | |
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 … Software Development vb.net | |
Hey friends, i have just started with my java classes but im finding it quick tricky so is there any books availabe for dummies Software Development java | |
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. Software Development vb.net | |
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; … Software Development c | |
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 … Software Development python | |
create a code that will determine if a given input is(matrix) is a diagonal matrix, square matrix, or not Software Development matrix-multiplication vb.net | |
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 … Software Development java java-netbeans java-swing | |
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 … Software Development c | |
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 … Software Development c++ | |
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? Software Development c++ | |
please help me in this program codes please... im in rush Software Development c++ | |
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 … Software Development c++ first-post | |
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 … | |
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 … Software Development c++ | |
hi..... i want to show data i datagridview...  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 … Software Development vb.net | |
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. Software Development java | |
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 … Software Development python ![]() | |
[Click Here](http://s8.postimg.org/9figheq91/2014_03_22_14_19_18.jpg) Software Development vb.net | |
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 … Software Development java java-swing ![]() | |
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 … Software Development c++ | |
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, … Software Development gui java java-netbeans java-swing oracle | |
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 … Software Development gui java java-swing | |
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 Software Development vb.net visual-basic | |
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 … Software Development java | |
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 … Software Development c++ | |
#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 … Software Development c | |
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 { … Software Development gui java java-swing multithreading | |
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 … Software Development encryption java peer-to-peer | |
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 Software Development java | |
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 … Software Development c matrix-multiplication | |
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 … Software Development android-development java sql | |
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 … Software Development java | |
For the past week I have been trying to develop a VBA script to do PCA/SVD based data mining. The data are timetaged numerical quantities. It's been quite frustrating as I am newbie in VBA development. Any help would be appreciated. Secondly, is it possible to find VBA and/or python … Software Development visual-basic | |
I am label which display the current time ( label8.Text = DateTime.Now.ToString("HH:mm:ss"); ) but here i want on a button click the timer would alert on two minute (i.e time out).. Software Development | |
So, I am trying to test my if else with two Character.toUpperCase answers and I keep getting this error: 1 error found Error: bad operand types for binary operator '^' first type: char second type: boolean I tried && and & and it won't work. If I don't use anything … Software Development java | |
I hope the title is somewhat clear. In windows forms this is pretty straight forward. But for whatever reason in WPF its not the case. I am trying to change the opactiy of 2 labels. Both labels are on seperate windows. Window1 has a button to change opacity of a … Software Development | |
Hello, I am new to python and I am trying to do this task but it looks that I am missing some things which is not visible to me can any body help me see those mistakes I am making and suggest how I should restracture my code if needed? … Software Development file-system python | |
I was following along to the following tutorial - [Derek Banas Java tutorial 18 - Threads pt2](http://www.youtube.com/watch?v=G2Xd5avyk_0) and as I decided to go over his tutorial series by following along in notepad++ and compiling with the command line, so that I can experiment and test things I'm unsure about, I … Software Development ide java multithreading | |
I need to turn ON and OFF the built in camera LED FLASHER on a Windows 8 tablet. This is bascially the same as a common FLASHLIGHT APP on a cell phone. I need to make this work within a Delphi 2010 VCL application and all I can find is … | |
I have searched everywhere for Borland Delphi 7 but I cant find it anywhere. I used it a while ago when I got it as part of my programmer courses but I lost all the data on my harddrive. I have looked on Borlands main website but I was unable … | |
My code right now: std::string line; std::fstream localFile; localINIFile.open(MyToReadFile/*, std::ios::in || std::ios::out*/); // the MyToReadFile is declared somewhere else, and is being declared before this if (localFile.is_open()) { std::string Name = A[ID]; // ID is delcared somewhere else too std::string lookFor = Name + " false"; while ( getline (localFile,line) … | |
Hi all I am writing a java program to display the dob of sportsperson, now I have use the java.util.Date to display the date on to the consloe. But since it is deprecated I wish to use some other method to get and display the date from the user. Here … Software Development java | |
Friends , I have a database in sql server named "Deposit" with a table "Receipts" .I want to display the data in a list box.My code is given below Imports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim cnn As New SqlConnection("Data Source … Software Development microsoft-access sql vb.net | |
Perhaps mt eyes are missing something simple, but I cannot understand what is going on. The following code produces intellisense and compile error "error C2373: 'GetHwnd' : redefinition; different type modifiers" I have many functions in same manner, but this will not play ball. extern "C" HWND __stdcall GetHwnd(wchar_t *); … Software Development c++ |
The End.