3,815 Topics

Member Avatar for
Member Avatar for n8thatsme

Ok so I prompt the user for invoices (Invoice Number, Quantity Shipped, Part Number, Part Description, and Unit Price) until the user gets tired and enters an Invoice Number of 0 for an invoice. After the user enters an Invoice Number of 0, he should not be prompted for any …

Member Avatar for skatamatic
0
116
Member Avatar for traza786

I have a written a program for Dijesktra algorithm; But I encounter the run time error when the code returns "lp" value ... Runtime check failure #2-Stack around the variable 'parent' is corrupted please see the code Could some one tell me that how to solve this prblem thanks [code=cplusplus] …

Member Avatar for traza786
0
213
Member Avatar for akbar002426

You are to implement a very simple distributed text editor. For this purpose, each user must be provided with a simple workspace where she can either read or write plain text. You must implement the system in such a way that, at any given point of time, only one user …

Member Avatar for thanatosys
0
113
Member Avatar for leegeorg07

hi again i have been learning about algorithm solving and designing from the website [URL="http://www.ece.uci.edu/~chou/py02/python.html"]here[/URL] i sort of understood the first code but before i went on any further i wanted to understand it the code is [ICODE]def InsertionSort(A): for j in range(1, len(A)): key = A[j] i = j …

Member Avatar for ZZucker
0
295
Member Avatar for wonder87

Hi all! As a person who has not a Computer Science degree(I am a poor web developer!),but having much desire to learn as much as I can about CS topics,I have a (maybe easy ) question about the recursive algorithm that solves the "Towers of Hanoi" puzzle. I can understand …

Member Avatar for aashish.raina
0
376
Member Avatar for gregorynoob

heya... ok, so i was browsing the net to find out if there's a good text on this algorithm, but i don't seem to be able to find one. people are obviously using it, but, hey, there's no info on it. the part i get is the theory on how …

Member Avatar for Lerner
0
185
Member Avatar for Gagless

My program needs to print the mirror image of a letter that's input. All the letters will be input in uppercase. And the mirror image will be printed in uppercase. So if I input A it's mirror image would be Z if B, then Y if C then X if …

Member Avatar for Freaky_Chris
0
305
Member Avatar for gotm

I want to convert two C++ programs into MIPS assembly. Both programs compute if a given integer is prime or not. They both contain the same main() pretty much, but one uses an iterative function while one uses a recursive function. I am not too good with MIPS so I …

Member Avatar for Salem
0
1K
Member Avatar for skatamatic

For an assignment I must implement an operator -= to remove points from a canvas (that have been plotted broken line graph style). Here's the part where the problem is occuring. It certainly removes points, just not the right ones seemingly and not all of them. It doesn't make much …

Member Avatar for skatamatic
0
338
Member Avatar for Avaviel

I'm having trouble with a program with class. When it runs, on the screen and on the file it shows one output, the last one in the input file. It USED to work, untill I tried to get fancy and add some other code... that will be below the main …

Member Avatar for Avaviel
0
343
Member Avatar for lucky200830

You are required to design, implement, and test a program that will will read in a file consisting of a grid of letters and write a file containing all possible combinations of adjacent letters that spell words in a dictionary. Words with fewer than three characters should not be considered. …

Member Avatar for stultuske
0
108
Member Avatar for ndumbo

HI my project involves making an index structure for a corporate or intranet. hence i need to store the urls in one file and then one by one count the frequency of a pre-specified word in each of these urls. i haev already made a package containing classes to count …

Member Avatar for brianlevine
0
87
Member Avatar for gbengazzee

Hi, House, I'm new to this house, i am computer science student in Nigeria. Please i want any one in the house to recommend a textbooks or any materials that will get me started on the following courses: FORTRAN BASIC ALGORITHM I appreciate ur responses. Thanks.

Member Avatar for Salem
0
68
Member Avatar for MylesDBaker

Hello everyone, I am trying to get a head start on this week's program, as it seems to be a long, albeit relatively easy, program. I wanted to double check with the experts here to make sure the flow of control for this program is correct. The assignment is as …

Member Avatar for Denniz
0
247
Member Avatar for piggysmile

Is there an algorithm in C++ to determine the digit located on a given place value of an integer? For example, 9 would be outputted as the tens value of 196. If none exists, is it possible to code it? If so, what are some of your ideas to do …

Member Avatar for Denniz
0
394
Member Avatar for arifliminto86

Hi, I got some difficulity how to move bitmap image in my application basically, the algorithm is like this, I've got CDC as m_MapDC and it already being created and DrawPoint basically use for draw truck in the mapDC but the result is there is no truck in the map …

0
53
Member Avatar for Aric69

evaluate a given postfix expression containing some one-letter integer variables a-z (in lower case) whose values are given in a data file. the name of the data file will be : c:\\temp\\375_prog4_stack_data.txt and you can hard code this name in your program. there will not be more than 26 different …

Member Avatar for Lerner
0
160
Member Avatar for elsa87

hi everyone..i need to crack a symmetric key by implementing a method called CrackSymmetricKey I must use the TEA encryption algorithm below: [CODE=c++] union myMsgType{ unsigned long textConverted[2]; char text[9]; }; class TEA_Algorithm { public: void CrackSymmetricKey(union myMsgType plaintext, union myMsgType ciphertext); void Decrypt(unsigned long k[], unsigned long ciphertext[], unsigned …

Member Avatar for ArkM
0
112
Member Avatar for tillaart36

Hello all :) I have a grid program that lets me define a grid and do some basic stuff with it. The next step I need to implement is that I need to add a floodFill like method ([url]http://en.wikipedia.org/wiki/Flood_fill[/url]). What I wanna achieve with this is the functionality that I …

Member Avatar for tillaart36
0
901
Member Avatar for Tris1

Hi, everyone. For my programming homework, we have to write a code based on the Soundex algorithm that is used by New York State Immunization Information System. Here are the instructions/rules:[url]http://www.cis.temple.edu/~ingargio/cis67/homeworks/homework6f08.html[/url]. My problem is that (besides having no idea what to do) I have an infinite loop somewhere in the …

Member Avatar for Tris1
0
156
Member Avatar for champ80

please tell me algorithm or code for following character sorting (Ascending) problem. For example Text file contains following data: 001, PSTR, abcdef, h.no.222 abcdefghik lmnopq rstuv, student, A-level 002, MKTO, abcdef, house. 2 abcdefghik lmnopq rstuv, student, rtv 003, LORR, abcdef, h.number.210 abcdefghik lmnopq rstuv, student, O-level 005, ASMP, abcdef, …

Member Avatar for emotionalone
0
586
Member Avatar for defychaos

Hi :) I'm doing a programming project with development of an algorithm for a quadratic recursive sequence: (3, 3, 7, 11, 19, 20, 32), but I can't figure out which expression to use. I know it's probably got something to do with the differences of n-1 and n-2 being added …

Member Avatar for stultuske
0
91
Member Avatar for defychaos

Hi :) I'm doing a programming project with development of an algorithm for a quadratic recursive sequence: (3, 3, 7, 11, 19, 20, 32), but I can't figure out which expression to use. I know it's probably got something to do with the differences of n-1 and n-2 being added …

Member Avatar for Lerner
0
343
Member Avatar for FAZ3

Can someone help me create a function in a linked list program that replaces an element in (I) place with an element a user enters? here is the sudo code I tried to implement but Im kinda lost. this is in my header file -> [icode]typedef int el_t; // el_t …

Member Avatar for stilllearning
0
104
Member Avatar for burhanms

Hello all, I am using Matlab Genetic algorithm toolbox to solve my function. It gives an error and I couldnot understand. My function is as "objfun(CW,D)" and when solving on genetic algorithm toolbox it says D is undefined which is my variable. Could anyone tell why this toolbox gives this …

0
71
Member Avatar for hbmarar

I had written a algorithm, that gets executed daily. it does the following. Make use of 4 auxillary tables , A,B,C,D. Reads from the other database tables, using few rates and updates or populates ranks and order in A,B,C, D. Once this is done, it enters a fixed iteration loop. …

0
65
Member Avatar for LiquidCobra

The assignment problem below ask me to calculate the number of months it will take to pay off the loan and the total amount of interest paid over the life of the loan. I'm having trouble trying to find the right algorithm for the monthly payments. Could you please take …

Member Avatar for stultuske
0
144
Member Avatar for hbmarar

hi, I got a daily task script that does the job as below: #1. Calculate score for one time, count and rank using 4 auxillary empty tables, using data from few other main tables. #2. Now, i start iterating 5 times to get my score for each user stabilised based …

0
64
Member Avatar for stefen04

I am a student who is taking a computer science course in college and have been assigned to write an algorithm for a java program. I have no previous programming experience and I am really behind in this class. It seems fairly simple and anyone on here could probably do …

Member Avatar for javaAddict
0
123
Member Avatar for Geard2

I am new to link list and I have this problem where you have two lists. One list pointed by HEAD has a list of numbers in it, and the second list pointed by LARGE that contains the highest element(s) in the list pointed by HEAD. Each element has three …

Member Avatar for stilllearning
0
114
Member Avatar for Se7Olutionyg

[QUOTE] * Calculates and displays: o The number of square centimeters of material that are needed to manufacture a specified quantity of flat washers o The weight of the left-over material, after the washers are stamped. In order to calculate the leftover weight - you will need to determine the …

Member Avatar for Lerner
0
254
Member Avatar for core2d

I have an assignment to write a pseudo-code to have a list pointed by H (list of numbers) that have to be copied to a list pointed by H1 (only the odd numbers need to be copied). Can anyone tell me if I am wrong on this (not a working …

Member Avatar for bhoot_jb
0
191
Member Avatar for simply_vheng

i need some guide.. i'm a new member here. this is my first time to ask for help. i've been working for this code for two days.. but i cant find way to make it better..huhu it suppose to do a "round robin with overhead". its an algorithm.. i think, …

0
54
Member Avatar for pocku

I need help with finding a function T(n) that describes the upper bound for the worst case running time of this algorithm: [CODE] 1. maxS = 0 2. n = A.length 3. for j from 0 to n − 1 do 4. for i from 0 to j do 5. …

Member Avatar for sarehu
0
259
Member Avatar for atularora66

I'm new to java and we have to create a program telling the user how much of their income will be taxed based on rates given out by the government of Canada. I am getting 2 errors, one saying that "variable federal might not have been initialized" and the other …

Member Avatar for atularora66
0
105
Member Avatar for patricksquare

//challenge,, fix this! [code=cplusplus] #include<stdio.h> #include<conio.h> void main() { struct job{ int at; int bt; }; struct job J[80], cpy[80], temp, cpy2[80]; int q, oh, jbn, x, y, z, t, ref=0, tt[80]; again: clrscr(); textcolor(YELLOW); gotoxy(20,5); cprintf("*** ROUND ROBIN WITH OVERHEAD ALGORITHM ***"); textcolor(10); gotoxy(5,7); cprintf("How many jobs do you …

Member Avatar for bhoot_jb
0
188
Member Avatar for DogfoodEnforcer

Hi there Daniweb, right now im in an engineering program and we are being put through a crash course in C. Ive never dont any type of programming before so it is quite an adventure (to say the least). Currently we are doing an assignment in which we have to …

Member Avatar for Freaky_Chris
0
180
Member Avatar for Konokai

I'm trying to formulate an algorithm that will calculate the point where an independently rotating point collides with an independently rotating line.This will only concern instances where the rotating point, which will be called P1 from now on, and the rotating line, which will be called L1 from now on, …

Member Avatar for MattEvans
0
119
Member Avatar for happy8899

Can anyone help me by telling me where to find twofish source code other than from scheinier website?? I just want to find a sample source code of encrytion and decrytion using twofish algorithm. Thx a lot for the help..

Member Avatar for Salem
0
609
Member Avatar for blackryu21

I was wondering, how do I put in an index number for n elements. The program provided asks you to enter the numbers and it puts them in descending order, but I need an index number to be put with the values you enter for n to be the same …

Member Avatar for ArkM
0
102
Member Avatar for tones1986

Hey All - i am currently working on an assignment for a computer science programming class. I have to find and print all the prime numbers from 2 to N (N being a number read in from file). I have some code but i do can not get my mind …

Member Avatar for skatamatic
0
430
Member Avatar for blackryu21

I need an array listing the index number for a list of n elements and when I sort it in descending order, I need that same number to be with the element. Here's the code I have so far: [code] #include <iostream> using namespace std; int Partition(int low,int high,int arr[]); …

Member Avatar for ArkM
0
503
Member Avatar for meddlepal

I am having a lot of trouble with a Divide and Conquer algorithm to count the number of white cells and white cell blocks in a grid of black and white cells. Here is my grid file "cells.txt": w = white cell b = black cell [CODE] bbbbbbbbbb bwwwwwbwwb bbbbbwbwwb …

Member Avatar for ArkM
0
236
Member Avatar for dskumar_85

[code] hai friend's i have 1000 and more question's in database ,now i want to select the question's by the amount of 10 at a time ,when i click the next button the another 10 question's are want to show , now the selected questions from database should be in …

0
90
Member Avatar for rrreeefff

I created this function and I need help turning this into a recursive function [code=c] #include "stdafx.h" #include "stdio.h" int fact (int n); // function prototype// int main (void) { int n,result; printf("please enter a positive integer"); scanf("%d", &n); result = fact(n); printf("The answer is %d\n", result); return 0; } …

Member Avatar for ahamed101
0
160
Member Avatar for carlosolasjr

hi im carlo from philippines.and im a comsci student undergrad. i would like to ask from u all to help me find a title thesis focusing in algorithm...i have a lot of thesis proposal but its all denied....

Member Avatar for zeroth
0
23
Member Avatar for Caniggia

Hi guys ! Well, I just graduated. I have bachelors in Mathematics and Masters in Logic, Algorithm and Complexity. I just started looking for a job and I am somehow confused. As you can see from my Masters title I have a strong understanding and knowledge of algorithms (Greedy Algorithms, …

Member Avatar for Denniz
0
140
Member Avatar for Yuruke

Having trouble getting started on an assignment for my c++ class. I understand how stacks/queues work, but what I don't quite understand is how they work as adapters, i've read plenty of sites but none really have given me a good example of how they work when implemented using a …

Member Avatar for stilllearning
0
119
Member Avatar for diyaz

You are required to write a program which will: · Fetch inputs from the user · Ask the user how many words that he want to insert · Append the original inputs to the screen (and save to a file called as string.txt) · Append the scrambled inputs to the …

Member Avatar for iamthwee
0
187
Member Avatar for shamila08

Hello, dear all, here is my algorithm. i'm trying to reverse the array but its not function and not loop. [code=cplusplus] #include <iostream> using namespace std; void initial(int *v, int N) { int i; for(i=1; i<=N; i++) v[i] = i; } void write (int *v, int N) { for (int …

Member Avatar for Nick Evan
0
160

The End.