132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RayvenHawk

To be upfront and all, this is indeed a homework assignment. But I'm not looking for anyone to write the code I need just help me with a few functions I'm needing to use (the book is VERY vague on how to use these instructions). Assignment is open an encrypted …

Software Development assembly
Member Avatar for dan63043
0
142
Member Avatar for spatel14

How do I generate random numbers in C? The user doesn't enter anything, I'm just looking for a way to generate random numbers every time I run the program. Thanks guys!

Software Development c
Member Avatar for Chilton
0
133
Member Avatar for rohanvijay

1. Write a C program to convert a given infix expression to postfix form using stacks 2. Write a C program to evaluate the postfix expression using stacks

Software Development c data-structure
Member Avatar for Chilton
0
175
Member Avatar for gretty

Hello HELP :( Ok I have an assignment due in 5 days. I have done [B]everything[/B] except for one function. This function finds the smallests factors of a positive int & it multiplicities, Have I lost you yet, dont worry because I've been lost for a week now with this …

Software Development algorithm c++
Member Avatar for mrnutty
0
150
Member Avatar for PolarPear

Hello, I've checked google now intermidintly for two days, and I could not find a solution for my problem, so I decided I would post my own thread on here. The program I'm designing is supposed to ask the user for a file name, open that file, then take the …

Software Development c++ file-stream file-system
Member Avatar for PolarPear
0
94
Member Avatar for samsons17

how do i display something like this using [I]for loop[/I]? 0 2 4 6 8 10 12 14 18 24 26 28 30 32 thank you for helping...

Software Development c++ display
Member Avatar for restrictment
0
261
Member Avatar for _dragonwolf_

This project is similar to, but not exactly like, my phonetic project. I am having to construct a GUI and have done so. I have been able to get everything except one part. What I need it to do is: 1) User inputs a string (this part works) 2) When …

Software Development gui java java-swing
Member Avatar for _dragonwolf_
0
243
Member Avatar for kjavaapclass

I am making a tic-tac-toe game and I am scanning in the players name and piece in the viewer. How am I able to access that in the component class? I am not able to put a method in my viewer, so I can't say getPlayer of getPiece, but there …

Software Development java
Member Avatar for santiagozky
0
78
Member Avatar for AutoPython

Okay, the encryption algorithm idea was stupid. But I still made an encryption program. I got the absolute most possible frustrating situation. The program doesn't work in the console window. It spits out a giant error (probably recursion judging how many errors it got), but it DOES work in IDLE. …

Software Development algorithm encryption python
Member Avatar for jlm699
0
175
Member Avatar for Bluesilver

I am trying to write a method that accepts two integer parameters and returns their average as a float, but for some reason it is only returning a double. I am quite sure that there needs to be "f" after the resulting value, but it's not showing up. Can someone …

Software Development java
Member Avatar for Bluesilver
0
144
Member Avatar for urbancalli

[CODE] MOV AH,DAY DIV DIVISOR CMP Al,'0' JE WEEK_ JMP NOT_WEEK_ [/CODE] that is my code that tries to find out if the "DAY" is divisible by "7", which is the DIVISOR.. i initialized them as.. [CODE] DAY DB 1 DIVISOR DB 7 [/CODE] when the "day" is divisible by …

Software Development assembly
Member Avatar for NotNull
0
156
Member Avatar for RgCz

In Visual Basic 2008 Express edition: Create a new string replacing the order of the words, from last one to the first one and show it in a text box Example: Input: “This is an example” Output: “example an is This” I know theres a function to reverse the letters …

Software Development vb.net visual-basic
Member Avatar for RgCz
0
158
Member Avatar for Kloukip

Hi! I was wondering how to access the name (location,...) of a file I doubleclick on and that opens in my application through the Windows extension association. Thanks -Klo

Software Development
Member Avatar for Diamonddrake
0
202
Member Avatar for VibhorG

Hi all, Can anyone tell me how can we play the video(.wmv) in C# window application .................? Let i have some links on window form, As the user click on that link, related video should start playing..... And i am using VS2008....... Kindly help me regarding this............

Software Development video
Member Avatar for Diamonddrake
0
540
Member Avatar for trzypak

my program reads om tje number of liters of gasoline per 2 cars and the number of miles traveled by a car and then its supose to output the number of miles per gallon the car delivered. I used .264179 as my conversion of liters to gallons. Everything seems fine …

Software Development c++
Member Avatar for trzypak
0
115
Member Avatar for Ponomous

Hey so my code below works. It finds the roots for values that are in the quadratic equation from a file. What i want to do is write a function that will count the number of positive roots. What would be the easiest way to do this? I was thinking …

Software Development c++
Member Avatar for Ponomous
0
121
Member Avatar for jjf3rd77

I have to print a triangle in C++ where the length is double the height and base of the triangle it is to be isosceles this is my Isosceles code. how do I change the length base and width so that the length is double. We are only allowed to …

Software Development c++
Member Avatar for jjf3rd77
0
144
Member Avatar for group256

Hey everyone, For my project, I need to write an assembly/C code to detect multiprocessors. I really have no idea how as I have barely done assembly coding and I have no good reference or even idea how to start. Again, what I am going to do is, I'm trying …

Software Development assembly
Member Avatar for gerard4143
0
314
Member Avatar for MajesticMoose

I need a function that returns the name of a key directly from the keyboard, eg, the input of '32' would return 'Space'. I know there is a function that does this, but I can't figure out which one.

Software Development c
Member Avatar for gerard4143
0
141
Member Avatar for PDB1982

I am trying to figure out why my function isn't working when I compile the program....can anyone suggest anything? [code] #include <iostream> #include <cmath> using namespace std; double distance(); void main() { double center1, center2, point1, point2; cout << "Please Enter X-Value of Center: "; cin >> center1; cout << …

Software Development c++
Member Avatar for PDB1982
0
135
Member Avatar for simplyscottif

[CODE] #endif class BankAccount { public: double enterAccountData(); double computeInterest(); void displayAccount(); private: int accountNumber; double accountBalance; static const double RATE; } #include "stdafx.h" #include <stdlib.h> #include <conio.h> #include <stdio.h> #include <dos.h> #include <ctype.h> #include<iostream>// holds the cin and cout commands #include<conio.h>// holds the getche() instruction using namespace std; //#include …

Software Development c c# c++
Member Avatar for jonsca
0
171
Member Avatar for gibson.nathan

what i am trying to do is take alot of information and use it to calculate a persons carbon footprint based on a list of things that are in the second class of my program. im trying to make everything very easy to read program wise. im doing this assignment …

Software Development java
Member Avatar for gibson.nathan
0
125
Member Avatar for bk_bhupendra

how can i control the close button in a form.... (the three bottons minimize,maxi,close for all windows form) i hav attached a fig... jst check it... n pls reply

Software Development
Member Avatar for Diamonddrake
0
3K
Member Avatar for bkafroboy69

public boolean addEvent(int year, int month, int day, int hour, int minute, int duration, String what); This will return true if the event was added and false otherwise. Only valid events will be added to the list. i kind of understand what im suppose to do but i just cant …

Software Development java
Member Avatar for bkafroboy69
0
127
Member Avatar for yodito

Hello, I'm a newbie on C# and I have a question in two parts. Say I have a class Team that defines name and location. I need to write a method that returns an array of Teams. My first question is... by best pracitce, should I define this method within …

Software Development
Member Avatar for yodito
0
124
Member Avatar for nevets04

[code] #Credits: #Nevets04 #Fallen #Uber1337 #Farout import os List = [] z = int(raw_input("How many words in your list?: ")) os.system("clear") for x in xrange(z): List.append(raw_input("")) List.sort(),os.system("clear") print "\n".join(List) [/code]

Software Development os-x python
Member Avatar for vegaseat
0
112
Member Avatar for nonshatter

Can anyone shed some light on these errors? [CODE] public void FaultHandler () { int faultCount = 0; while ( faultCount < 4 ) { DatagramPacket request = new DatagramPacket(requestArray, requestArray.length, aHost, proxyPort); aSocket.send(request); try { aSocket.setSoTimeout(4000); aSocket.receive(reply); } catch ( SocketTimeoutException e ) { faultCount++; continue; } catch ( …

Software Development java
Member Avatar for Cronless
0
212
Member Avatar for shroomiin

Hello everyone. I am required to write a simple code that reads 10 numbers and displays the largest and last number entered. I thought i would be able to do this easily but for some reason the numbers wont get assigned to the variables like i thought. [code] import java.util.Scanner; …

Software Development java
Member Avatar for shroomiin
0
165
Member Avatar for gangster88

I want to be able to output the area of the circle and the cirumference of the circle to the user. so the output is to be "the area of the circle is... and the circumference of the circle is..." and it has to be to 2dp. the question says …

Software Development python
Member Avatar for snippsat
0
142
Member Avatar for dmitriylm

Hey guys, I'm having a bit of trouble with an assignment that has been racking my brain. I'm taking a number from the user, using a function to print its reverse order, checking to see if it is a palindrome in the main program and also removing any leading zero's …

Software Development c++
Member Avatar for Kontained
0
179
Member Avatar for reese27

i need help with removing "s" and "tion" properly if i want to input "composition" it should leave me with "composi" but it leaves me with "compo" and if i were to enter a word that starts with an s and doesnt end with an s the word would not …

Software Development c++
Member Avatar for VernonDozier
0
108
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Software Development java
Member Avatar for jaison2
0
130
Member Avatar for the great

Hello I have given a program in which i have to declare structure to store account ID, amount, user name and address. It inputs the number of account holders from the user and creat a dynamic array of structures to store the records of accounts. The program should declare two …

Software Development c++
Member Avatar for jonsca
0
87
Member Avatar for something else

Right I must first say, this is not homework, if it was, I might have a clue what I am doing. I am currently doing some research and as part of the understanding of the data we have produced I am trying to convolute it. For this I want a …

Software Development c++
Member Avatar for msiddi13
0
399
Member Avatar for iammfa

Hi, This is small c++ guess game, I almost finished it, but when i tried compile it gave me an error: "Cannot open include file: 'stdlib': No such file or directory" is this file part of c++ standard library..? why compiler can't find it? here is my .cpp source:

Software Development c++ open-source
Member Avatar for RayvenHawk
0
189
Member Avatar for sfurlow

For the final part of our project, we're supposed to: Add the following constant (the file name must match exactly): const string MASTER_FILE_NAME = "master.txt"; 2. Create the file master.txt and add it to your project. The master file must contain account records (one record per line). Each account record …

Software Development c++ file-system
Member Avatar for Fbody
0
103
Member Avatar for alexa868

A criticism of the break and continue statements is that each is unstructured. Actually they statements can always be replaced by structured statements, although doing so can be awkward. Describe in general how you would remove any break statement from a loop in a program and replace it with some …

Software Development c++
Member Avatar for BeyondTheEye
0
99
Member Avatar for Potty391

Hi all, I've been working on a Java guessing game, similar to hangman which rewards you with a picture using the Gogga class (developed by the people who wrote my IT textbook for Grade 10, also I removed gogga for this website, since I doubt you'd be able to find …

Software Development java java-swing
0
210
Member Avatar for laxter17

I am totally new to programming and could use some help. I am trying to write a while loop in python that could execute this equation but in a while loop type function. the equation is n * (n + 1) / 2 any ideas?

Software Development python
Member Avatar for ShadyTyrant
0
168
Member Avatar for DdoubleD

A few days ago I decided to install MySql v1.2.17 and I downloaded a client class library: MySql.Data.dll v5.0.9.0 (by MySQL AB). I included the client classes inside my wrapper class and had it creating, dropping, inserting, and deleting tables..., or so I thought. I guess I never actually looked …

Software Development mysql
Member Avatar for sknake
0
237
Member Avatar for john_prince

Hi, We are taking backups for ldap instances, and with the new requirement would like to keep 1 day's of backup to local disk (/export1) and rest 14 days backup to SAN (/export2). Now we are in kind of fix on how to move the backups ( includes files & …

Software Development shell-scripting
Member Avatar for sknake
0
183
Member Avatar for tdeck

Ideally I'd like to do it with a list comprehension. Something like this [CODE]result = [(key, value)for key in dict.keys(), value in dict.values()][/CODE] but clearly that isn't the right format. Any suggestions? EDIT: This seems like what I want to do, but it doesn't work: [CODE]result = [(dict.keys[i], dict.values[i]) for …

Software Development python
Member Avatar for jlm699
0
328
Member Avatar for skelator

Hi, I'm new here. I have been looking around for the last few months. Very new to java and I need help with this assignment. I am to program hangman, I know that this has been asked multiple times. I just cannot seem to find the answers that I need. …

Software Development java
Member Avatar for skelator
0
144
Member Avatar for jerrytouille

Let's start with 1 pipe such as ex: "ls | grep hello" What I'm trying to do is to split the *args[] into 2 that one contains "ls" (left-of-the-pipe command) and the other contains "grep hello" (right command) -> so I can execute the child pipe as producer and parent …

Software Development c++ unix
Member Avatar for jerrytouille
0
213
Member Avatar for skiplatte

I'm getting StringIndexOutOfBoundsException when I try to reasign the value of a variable. [icode]protString = protString.substring(newRPos+1, input.length());[/icode] I understand that this is something I would rather not do... but as I don't know the index of newRPos I can't think of another way to iterate. Thanks

Software Development java
Member Avatar for masijade
0
96
Member Avatar for chavanak

Hi, I am comparing 2000 files with one other file. I want the program to go through each line in both files and compare. If the line is present, then it has to write to another file. What I tried was to open both the files and use readlines() to …

Software Development perl python
Member Avatar for chavanak
0
433
Member Avatar for newportking

I am interested in learning python and picked up a friends textbook to try and work through it. I have no cs experience so am pretty clueless. I am having difficulty with one of the problems in the first chapter lol. i am trying to make the program spit out …

Software Development algorithm python
Member Avatar for newportking
0
118
Member Avatar for CSG-SQU

Hello all, i want to creat a list of an object so i used ArrayList in C# after declaring a class book i declare the array list as follwing: [CODE]private ArrayList mobileStore = new ArrayList();[/CODE] then i have an object of class , say Mobile [CODE]Mobile m1;[/CODE] and finally i …

Software Development
Member Avatar for RunTimeError
0
121
Member Avatar for skarocks47

I want to create a menu. The files i have are main.cpp BMI.cpp and BFP.cpp. I want the program to use the BMI.cpp when 1 is pressed and the BFP.ccp when 2 is pressed. Here is my code so far. [CODE] #include <iostream> using namespace std; int main(void) { int …

Software Development c++
Member Avatar for skarocks47
0
129
Member Avatar for vksingh24

Hi, I want to write a small desktop application which will fetch Live stock price from NSE/BSE or Yahoo finance website. In order to create such application I need the guidance that how shoudl I proceed with? The major problem I am facing is connecting a desktop application with intenet …

Software Development finance
Member Avatar for sknake
0
120

The End.