3,815 Topics
![]() | |
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 … | |
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] … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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, … | |
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. … | |
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 … | |
//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 … | |
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 … | |
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, … | |
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.. | |
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 … | |
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 … | |
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[]); … | |
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 … | |
[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 … | |
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; } … | |
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.... | |
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, … | |
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 … | |
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 … ![]() | |
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 … |
The End.