132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for spring2014

The purpose of the program is to take 4 user inputed integers (days, hours, minutes, and seconds) and output them as a floating point doubles to show the maximum amount of time possible for each. For example I input 2 days, 10 hours, 45 minutes, 20 seconds and it outputs …

Software Development java
Member Avatar for NormR1
0
605
Member Avatar for Doormail11

I am completely new at Python and I am not sure where to start with this task. Basically, I want to search for a word in each line; if the word is there, output the entire line to another file (Excel or Text). The lines look like this: PA,IAV protein,AC0T9,DHP …

Software Development python
Member Avatar for TrustyTony
0
205
Member Avatar for minimee120

Hi, I'm completely new to Java and having some trouble basically understanding everything. I have some code and am wondering how to edit it in order to make some questions that I'm being asked to work. Here's the code: import java.util.*; // for class Scanner public class Copy { public …

Software Development java
Member Avatar for NormR1
0
221
Member Avatar for indrajeet6

Please take a look at the code below. It is a copy of the coding of a function and a subroutine I've coded in my program. The SQL Database VBDB has the table Users defined so that the default access level is 0. The problem is that the access level …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
213
Member Avatar for sona123456

my question is to Create a program to add sines and cosines of frequencies and plot them visually.eg addfreq out.jpg sin 0.2 cos 0.4 cos 0.7 This command will plot three curves (using different colors) and plot their sum as well at different discrete points.image magick++ is also to be …

Software Development c++
Member Avatar for np complete
0
139
Member Avatar for loshan.moonsamy

Problem: The statement ++Chequebook1; should increment the member variable Balance of Chequebook1 by R100. Give three different implementations for the overloaded operator ++ to accomplish this: • using the member function Adjust() • implementing the overloaded operator ++ as a friend function • implementing the overloaded operator ++ as a …

Software Development c++
Member Avatar for np complete
0
172
Member Avatar for xIXZeroIXx

hello everyone, im new in here and im having a headache with my program,the thing is that i need to get a input from the keyboard and then separate it using strtok but have to separate the tokens using 4 diferent cases and in each case i need to print …

Software Development c
Member Avatar for WaltP
0
561
Member Avatar for ProNewb

I need a little bit of help here with comparing data sets. file1 = open("filename1.txt", "r") file2 = open("filename2.txt", "r") fileone = file1.readlines() filetwo = file2.readlines() file1 = close() file2 = close() exfile = open("results.txt", "w") for line1 in fileone: s1, v1, p1 = line[:-1].split(":") for line2 in filetwo: s2, …

Software Development python
Member Avatar for TrustyTony
0
159
Member Avatar for ObSys

Ok so basically I want to know how I can paint multiple items to the screen without using all of my laptop CPU power. I was thinking that it may be possible to arrange the items as a bitmap and then paint that bitmap to the screen but im not …

Software Development gaming vb.net
Member Avatar for ObSys
0
204
Member Avatar for BilalAKhan

I have a simple loop which is matching the letters and giving the equivalent into binary. Forexample I have a sequence of letters as *abc*, then according to the code given below the binary generated will be 000010001000011 and saved in the variable at the end. What I want to …

Software Development vb.net
Member Avatar for TnTinMN
0
880
Member Avatar for superchica08

hello everyone I was wondering if anyone could explain big-oh estimate to me for c++ data structures. I do not understand it that much and does anyone know of any good websites that have good information on c++ data structures i would greatly appreciate it. Also could anyone explain to …

Software Development c++ data-structure
Member Avatar for superchica08
0
270
Member Avatar for michelle1

Hello, Can anyone recommend an [U]light weight[/U] IDE for C development? Preferably open source, but definitely free. (for Windows) It doesn't need to have its own version control - I'm using subversion - a plugin to subversion would be nice but it okay if it doesn't. Currently my colleague is …

Software Development c ide open-source
Member Avatar for Abdelghafour
0
716
Member Avatar for sidhartha93

after writing the codes and saving it..while i compile it in comand prompt it shows an error as 'javac file not found '

Software Development java
Member Avatar for NormR1
0
49
Member Avatar for aabbccbryanmark

import java.io.*; public class QuizBee { public static void main(String[] args)throws IOException { BufferedReader a = new BufferedReader(new InputStreamReader(System.in)); int cor=0; System.out.println("\t \t \t \t \t \t \tWelcome to 10th Annual Quiz Bee of the Year"); System.out.println(); System.out.println("General Direction: In this question you are obligue to answer them honestly."); System.out.println("\t …

Software Development java
Member Avatar for aabbccbryanmark
0
206
Member Avatar for gelmi

**Enter row number: 4 Sum of numbers in row 5 is 31. Sum of all numbers above 4 is 15. this should be the output look like.. can someone help me? thanks.

Software Development java pascal
Member Avatar for Nutster
0
427
Member Avatar for green_ning

Hello guys. I am a starter in Java Programming. And I wanted to understand and manipulate it effectively from now on. I also want to start developing applications in iPad or iPhone but I am a Windows user, and I guess I need a Mac in able to do that. …

Software Development html-css ide ios ipad iphone java
Member Avatar for green_ning
0
272
Member Avatar for Secone

Here's the entirety of my code. The problem I'm having trouble with is in the sortArray function. The first part of that function is used to sort the words gathered in a text file from A to Z, the second part is meant to find any duplicate words, ie 'a' …

Software Development c++
Member Avatar for Secone
0
227
Member Avatar for khocmedemmua

Hi all! I have a question : I want to prevent the ' keyboard to textbox, please help me! (Sorry, I don't know how to call ' keyboard, it is below " ) Thanks

Software Development
Member Avatar for //Gonz
0
114
Member Avatar for aabbccbryanmark

System.out.println("\t \t \tYou got " + (cor/10*50+50) + "%"); help me with this code.. i didn't get what's supposed to be the percentage.. what's wrong with it?.. i got 3 for cor and i should have 65% but i just get 50%..

Software Development java
Member Avatar for JamesCherrill
0
112
Member Avatar for lehe

Hi, I am reading a command in shell script using sed: echo $1 | sed -e "s/^[^=]*=\(.*\)$/\1/" what I don't understand is the sed command. I only know it tries to substitute "^[^=]*=\(.*\)$/" with "\1" and 1 is one of the positional parameters got from invoking the shell script, but …

Software Development shell-scripting
Member Avatar for Pooja#
0
166
Member Avatar for sundog1

Hi guys, I hope someone can help. I have a list view being populated by a Table (cashCustomers) in an Access DB which has customers Information. * CashAccRef * CashName * CashAddress1 * CashAddress2 * CashTown * CashAddress3 * CashAddress4 * CashAddress5 and the following Orders table (cashOrders) * ID …

Software Development dataset listview
Member Avatar for Mike Askew
0
518
Member Avatar for opman234

Please help me. I want to set the identity specification to yes, but all the option is gray out. I could not change it to yes from no. Ĩ̷̊ñ sql server 2008. Thanks

Software Development sql vb.net
Member Avatar for opman234
0
92
Member Avatar for rvijaya

Hi, so I have to write a program for my Java assignment and I am just starting out so I might be doing this wrong but I can't figure out why it won't invoke the method I have created. import java.util.Scanner; public class EvalMarks1 { public static void main(String[] args) …

Software Development java
Member Avatar for rvijaya
0
154
Member Avatar for javaprog200

Hello, Are any of the older exams for the Sun Certified Java Programmer certification available online? I was able to find mock exams and other test prep material. Just wondering if earlier exams are available. Thank you!

Software Development java
Member Avatar for rotten69
0
177
Member Avatar for Raghu88

package com.zyom.struts.ats.action; import java.io.File; import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.List; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import jxl.Workbook; import jxl.write.Colour; import jxl.write.Label; import jxl.write.WritableCellFormat; import jxl.write.WritableFont; import jxl.write.WritableSheet; import jxl.write.WritableWorkbook; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.actions.DownloadAction; import org.apache.struts.actions.DownloadAction.ResourceStreamInfo; …

Software Development apache java session
Member Avatar for Raghu88
0
268
Member Avatar for narendharg

Hi , I would thank you for replying for my thread, I would like to know about [B]static functions [/B]C language,what is the use of static functions. Narendhar Gomathirajan

Software Development c
Member Avatar for nitin1
0
639
Member Avatar for banana.apple001

Okay, I'm very new to Java as a whole, and I'm just trying to get to grips with it. I'm experimenting with classes, and I'm struggling to get this one thing to work. Basically, I've made a short program which one can make matrices, and all it has at the …

Software Development java
Member Avatar for banana.apple001
0
274
Member Avatar for brandon66

![WidgetRunning2](/attachments/large/3/WidgetRunning2.jpg "WidgetRunning2") hey everyone, need some help here im trying to create this(in the picture shown) but the problem im having is when i select the item from the combobox i want to show the price in the text field as shown but im not sure how i would go …

Software Development java
Member Avatar for NormR1
0
201
Member Avatar for jallalovski

import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; public class Concat { public boolean accept(File file) { //if the file extension is .txt or .java return true, else false if (file.getName().endsWith(".txt")||file.getName().endsWith(".java")) { return true; } return false; } public void copy(PrintWriter pw, String inputFile) { File …

Software Development java open-source
Member Avatar for NormR1
0
133
Member Avatar for cming21

I know I am new here but I need help with this assigenment that I am working on. [Tax Table] From To Tax due $0 $50,000 $0 + 5% of amount over $0 $50,000 $100,000 $2,500 + 7% of amount over $50,000 $100,000 ... $6,000 + 9% of amount over …

Software Development
Member Avatar for TnTinMN
0
1K
Member Avatar for CloudZELL91

hi,, i know i will be criticised by this but am not a programmer though but its ok,,,, i like to know if someone is willing to help... ==>> Student Attendance system.......that uses VB and access that includes SEARCH,ADD,DELETE,EDIT.... info: database/access only includes student,id# course and a specific date on …

Software Development vb.net
Member Avatar for TnTinMN
0
101
Member Avatar for Secone

I'm trying to have my program find duplicates in an array of strings, and if it finds one, it swaps the duplicate to itemamount - 1, adds +1 to the WordAmt for that word, and moves the loop one spot down. I just am not sure how to properly do …

Software Development c++
Member Avatar for VernonDozier
0
236
Member Avatar for Start4me

I’m making a program that will be like a search engine, similar to a map program. There will be a text box for the user to search for a location. The thing I don’t know is that the user has 4 different combinations that they may enter. For example: **N229** …

Software Development seo vb.net
Member Avatar for TnTinMN
0
300
Member Avatar for hughesadam_87

Hi, I'm having some difficulty reading in boolean values from a file, particularly false values. Python can understand false values as empty strings, as well as a few other ways. For example: In [43]: bool(0) Out[43]: False In [44]: bool(False) Out[44]: False In [45]: bool('') Out[45]: False The problem is, …

Software Development file-system python
Member Avatar for woooee
0
929
Member Avatar for padton

Hello all, this is my first post here. I seem to have a problem dealing with data, csvs and dictionaries. Here is a snippet of contents of file 1 (Node,x,y,z): 1,19.0,18.2,22.4 2,8.4,9.4,10.2 4,22.2,2.5,3.1 7,3.2,6.1,4.3 10,3.1,4.2,33.7 11,3.7,23.8,23.4 Here is a snippet contents of file 2 (Node,x,y,z): 1,4.2,7.3,9.5 2,4.1,8.4,9.2 4,2.3,4.6,3.2 11,2.5,2.7,32.6 File …

Software Development python
Member Avatar for woooee
0
165
Member Avatar for ritaphuti

How do i embedd a recursion with arrays!

Software Development java
Member Avatar for cretaros
0
76
Member Avatar for sanket044

{Prescriptions.GlsType} Like "SV" and ( ((IsNull({Prescriptions.R_DV_CY}) and {Prescriptions.R_DV_SP}="+2.00") or (IsNull({Prescriptions.R_NV_CY}) and {Prescriptions.R_NV_SP}="+2.00") or (IsNull({Prescriptions.L_DV_CY}) and {Prescriptions.L_DV_SP}="+2.00") or (IsNull({Prescriptions.L_NV_CY}) and {Prescriptions.L_NV_SP}="+2.00")) ) i am having this type of recordselection formula but when i execute this if the First condition ***[((IsNull({Prescriptions.R_DV_CY}) and {Prescriptions.R_DV_SP}="+2.00") or ]*** becomes true then it is giving output, …

Software Development visual-basic
Member Avatar for AndreRet
0
176
Member Avatar for SteveyD

Using the snippet below, how would I make the *String songName* a Global for use in other areas of the code? a return? get;set;? Any help would be appreciated. public void Initialize(IExecutable executableObject, SetupData setupData, XmlNode setupNode) { this.m_setupdata = setupData; this.m_setupnode = setupNode; this.m_channels = executableObject.Channels; EventSequence sequence = …

Software Development audio
Member Avatar for SteveyD
0
105
Member Avatar for DahliaBasik

/** * @(#)GeometricObject.java * * GeometricObject application * * @author * @version 1.00 2012/9/10 */ public abstract class GeometricObject { private String color = "white"; public GeometricObject(){ } public GeometricObject(String color){ } public String getColor(){ return color; } public void setColor(String color){ this.color=color; } public String toString(){ return " the …

Software Development java
Member Avatar for DahliaBasik
0
2K
Member Avatar for JudyBetch

So my task was to write a boolena method to count the number of live neighbour of a cell t is a 2D boolean array with a row and column position, i have to count the number of surrounding cells that contain the value true. So the index number given …

Software Development c++
Member Avatar for deceptikon
0
192
Member Avatar for strizh

I need to override String toString method so it woud print my deposits I dont't know how to override it, since in makeDeposit method I pass two variables I'm posting just a saple of my code, I'm not sure if you need the whole code public class Bank { private …

Software Development java
Member Avatar for stultuske
0
164
Member Avatar for r0vanz01

I am trying to output an arbitary double number (which might be negative) using only the printDigit for I/O, but when I run this program and you enter in a number is doesn't output anything. #include <iostream> using namespace std; void printDigit( int n ) { cout<< n; } double …

Software Development c++
Member Avatar for np complete
0
715
Member Avatar for muhammads

Hi, I am having this problem when i try to execute the .exe of my application "Debug assertion failed !, Expression invalid null pointer" After a bit of googling i think so i know where the problem lies, but have no idea how to solve it. Below is the relevant …

Software Development c++
Member Avatar for np complete
0
260
Member Avatar for Tinnin

Hi all, I'm trying to set up a typedef for vector type in a header file I've named Container.h The struct is called Student_info and is in a file called Student_info.cpp with header file Student_info.h My code in Container.h is as follows; #ifndef GUARD_Container_h #define GUARD_Container_h #include <vector> typedef std::vector<struct> …

Software Development c++
Member Avatar for NathanOliver
0
233
Member Avatar for opman234

Please help me. I want to make my software a trial version for 30 days. Help me with code to use , and the steps. •̸ŤђαϞĸs

Software Development vb.net
Member Avatar for ObSys
0
346
Member Avatar for 7c00h

i have some code i am working on andit keeps throwing an expression expected error. this code is designed to cheeck a RichTextBox form and highlight text, specified by a dictionary. Dim location As UInteger = 0 Dim dict As Dictionary(Of String, ULong) = getWords(rText1) Dim wcount As Integer = …

Software Development programming-construct vb.net
Member Avatar for ObSys
0
2K
Member Avatar for nitin1

actually, I was thinking arbitrary that i should make my own sizeof function. till date, i have made many many my own C functions which are also defined in C libraries. but i got strucked in sizeof operator desiging. can anyone give me hint how to start with this ? …

Software Development c
Member Avatar for deceptikon
0
169
Member Avatar for benjie.v.sanpedro

Can anybody help me please? My codes does'nt seem to work and i don't know the error.

Software Development vb.net
Member Avatar for Reverend Jim
0
86
Member Avatar for aabbccbryanmark

public class asterisk { public static void main(String[] args) { int row, col, spc=3, spc1=2, spc2=1, spc3=0; for(row=1;row<=1;row++) { for(col=1;col<=1;col++) { for(spc=spc;spc>0;spc--) { System.out.print(" "); } System.out.print("*"); System.out.println(); { for(spc1=spc1;spc1>0;spc1--) { System.out.print(" "); } System.out.print("**"); System.out.println(); { for(spc2=spc2;spc2>0;spc2--) { System.out.print(" "); } System.out.print("***"); System.out.println(); { for(spc3=spc3;spc3>00;spc3--) { System.out.print(" "); } …

Software Development java
Member Avatar for stultuske
0
592
Member Avatar for Secone

I'm trying to use a while loop to read in some files, but it only reads once and quits. Not sure what's wrong, professor says this is how it should work as long as I'm understanding him correctly. void populateStruct(ifstream &filein, WordStruct Words[1000], int &itemamount) { while (filein >> Words[itemamount].Word); …

Software Development c++
Member Avatar for Secone
0
167

The End.