3,815 Topics

Member Avatar for
Member Avatar for csha_cs508

[CODE]/*a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers*/ #include <iostream> using namespace std; int main() { int firstNum, secondNum, thirdNum, sum, product,average, largest, smallest; cout<<"Enter three integers: "; cin>>firstNum; cin>>secondNum; cin>>thirdNum; sum = firstNum+secondNum+thirdNum; product = firstNum*secondNum*thirdNum; …

Member Avatar for csha_cs508
0
187
Member Avatar for Blunch

Hi every Body ! I'm so happy that become members Daniweb and thanks for usefull subject's friends May be help me ?!! I want program code 8 puzzle with greedy search algorithm with Java Thanks[code][/code]

Member Avatar for Blunch
-1
74
Member Avatar for jimJohnson

I know I am going to have alot of questions but can someone check to see if I am starting this out correctly... Programming assignment two will demonstrate your understanding and mastery of multi-threaded application concepts in a Windows environment using Visual C++ .NET 2005. In this programming assignment you …

Member Avatar for nbaztec
0
371
Member Avatar for octavia

Hi all, Any ideas for video file encryption using AES (symmetric) ???????????? I seen only data file encryption. I wanna encrypt video file and decrypt as well ..... Who wants to help such a new beginner ???????/:) PLssssssssssssssss :confused:

0
58
Member Avatar for cableguy31

I'm using re.search to search for the pattern of anything that might look like a credit card number in a file. What I would like to do, is have the script then pull out the potential cc number and pass it to the Luhn algorithm for verification. If I'm not …

Member Avatar for cableguy31
0
84
Member Avatar for empror9

hello, i have some simple questions but i don't know why my code is not correct see these questons: 1-Write an algorithm to accept three numbers and display the largest one? this is my code [CODE]int num1,num2,num3; cout <<"Please enter three numbers:"; cin >> num1 >> num2 >> num3; if(num1 …

Member Avatar for hsh44
0
183
Member Avatar for Merlin33069

Ive looked through google and a few other places, searching for how to calculate the pixels you would need to fill in a 3d space to draw a line, circle , sphere or anything really. Ive always been good with learning math, i just need somewhere to learn it from …

Member Avatar for adams161
0
267
Member Avatar for kebbby

I need help in finding an [B]existing algorithm[/B] that is used in an [B]existing application[/B]. And then I should find bugs / errors / problems on the said existing algorithm so I could [B]enhance[/B] it and I should come up with a [B]new and enhanced application[/B]. It is the main …

Member Avatar for AuburnMathTutor
-1
110
Member Avatar for Nexgr

I am trying to implement the A* algorithm in C++ ([url]http://en.wikipedia.org/wiki/A*_search_algorithm[/url]). The pseudocode i am trying to implement is: [code]function A*(start,goal) closedset := the empty set // The set of nodes already evaluated. openset := set containing the initial node // The set of tentative nodes to be evaluated. g_score[start] …

Member Avatar for Nexgr
0
171
Member Avatar for oimenoi

I am keep having the "No overload for method 'GenerateSignature' takes 9 arguments" problem. Can you please tell me what is wrong with this class. This code is the sample from the Oauth.net . I think it too old for my asp.net 3.5 or 4.0. My page. [CODE]<%@ Page Language="C#" …

Member Avatar for oimenoi
0
108
Member Avatar for hazeeel

Hi all, I am a student doing a project on the superposition algorithm. I have to rotate 1 protein on top of the other protein after translation to match it as closey as possible. In order to do that, I need to write the codes in java and also, to …

Member Avatar for Rashakil Fol
0
56
Member Avatar for saima.H

Hello duniaweb i am new computer user so i have not much information about the computer i need the help for my assignment of CS plzzzzzzz help me....... Write an algorithm in pseudo code form for the following problem and also draw a Flow chart for the same problem statement. …

Member Avatar for goshe17
-1
1K
Member Avatar for feodal

Hi guys, So I have a little project that I need to get done which I honestly don't exactly know how to approach. The task is. There is a website, cars.com and there you can enter in search field of used cars the zip code that you need for all …

Member Avatar for pritaeas
0
95
Member Avatar for daniel88

Hi guys, Well, it's World Cup time and it seems only fitting that I submit something related to that. I was intrigued by the whole "Group of Death" concept. Intuitively (for me), a group of death should be a very unlikely event - yet they are always found in the …

Member Avatar for daniel88
0
114
Member Avatar for ubi_ct83

hi all, thanks for time to view my thread.hope u guys can reply. i have an algorithm,but the question is how can i code from the algorithm?what should i do maybe in steps? because im really new to programming and i want to know what is the step do we …

Member Avatar for masijade
0
107
Member Avatar for KultChyld

Hi there. I'm Kurt!! I have two algorithm problems. I was wondering if you can check my answers for the first one and help me get a start with the second one: [B]1)Write an algorithm to compute the average of 5 numbers[/B] [COLOR=DarkRed]Name: Ave5 Given: X1, X2, X3, X4, X5 …

Member Avatar for rahul8590
0
126
Member Avatar for kevinyu

hello guys, i need help, on how to output odd and even numbers at the end of the loop... not the way my program does, which prints the number every time i input numbers, and it needs indicated whether it's an odd or an even number. guys give me an …

Member Avatar for kevinyu
0
106
Member Avatar for g2gayan

Hello Experts :) My Name is GaYan and im still learning C# :D lol.. im a newbie :idea: what i need to do is to create a program in C# to enter a number series and to get the the highest(largest) value and minimum(smallest) value of the entered numher series …

Member Avatar for kvprajapati
0
122
Member Avatar for arthurav

I'm trying to understand the following algorithm, found at the 26th page from the first volume, 3rd edition of donald knuth's art of computer programming. it is the 25th exercise on the page. I am using <- as the attribution operator. It says: suppose that we have a binary computer …

Member Avatar for TrustyTony
0
161
Member Avatar for meepokman

Hi guys, I'm currently trying to produce a facial detection application, but I seem to have some problems. My program, is able to recognise multiple users, and match their captured image to one saved in the database. However, if a person who has not registered is photographed, it is supposed …

Member Avatar for meepokman
0
449
Member Avatar for pmishra
Member Avatar for thehelios
0
145
Member Avatar for mr_s70

Hello ppl, Do any of you have a sample branch prediction algorithm? I m trying to study deep into branch prediction and I need to see what things are being used in the code. Thanks in advance Sunny

Member Avatar for mr_s70
0
83
Member Avatar for htetnaing

Hi everyone, I have been reading this forum a lot lately and I just decided to have an account for myself. I have been thinking of creating something like fingerprint recognition. Nothing fancy but the system must be able to determine whether 2 fingerprints are the same or not.I have …

1
48
Member Avatar for victorxstc

Hi guys and sorry for poor English I'm about to implement a program in C++ that according to the algorithm, will parse a text file and do further processes on it. I have previous implementations that could read ASCII characters from a plain text file. I need to extend it …

0
52
Member Avatar for kenji

Hey, Iv decided to tackle a bit off C++ before I start it in college in fall and Im sort of stuck on a problem. The book im reading is Accelerated C++ and its exercise 3.2. Basically the question asks to get values from the user and take for at …

Member Avatar for arkoenig
0
154
Member Avatar for highflyer8

Hi, I am doing an undergraduate physics project by writing a C++ code to implement the Metropolis algorithm to a simple 2d one component plasma. In short, I have to determine the equilibrium configuration at each temperature by means of the Metropolis algorithm and then compute ensemble averages (such as …

Member Avatar for jonsca
0
116
Member Avatar for jcstarjcstar

can any one provide java code for bellman ford algorithm with java applet? here is the algorithm: BELLMAN-FORD (G, w, s) INITIALIZE-SINGLE-SOURCE (G, s) for each vertex i = 1 to V[G] - 1 do for each edge (u, v) in E[G] do RELAX (u, v, w) For each edge …

0
24
Member Avatar for gfx

hi, I have a problem with implementation of a quicksort algorithm. I have pseudo-code which helping me understand this, but I still can't make this program to work. Does anybody can help me figur out what is wrong in my code? Thanks My code : [CODE] #include <iostream> #include <ctime> …

Member Avatar for griswolf
0
106
Member Avatar for beginnercoder

Hello all, sorry for this being my first post. I have been dealing with this Nqueen program, and I cannot get it to work properly. I feel like I have been just staring at my computer screen for hours and my brain is starting to hurt. After entering n, the …

Member Avatar for JIMITRIS
0
90
Member Avatar for comput scince

hi there can any one help me to answer this problem . problem > Imagine you are given a set of input elements where each element is assotiated with a specific access Probability by which each element is likely to be accessed ; e.g; Elements :{A,B,D,K,L,M,N} pi=<0.1,0.15,0.25,0.05,0.2,0.1,0.15> for all 1<=i<=n …

Member Avatar for gusano79
0
82
Member Avatar for bd338

Hello everyone! I'm trying to make a "map creator" program, which allows you to place 75x75 isometric tiles in a grid. I'm drawing the grid using the overridden "paint(Graphics g)" method, which you'll see in my SSCCE below. But the problem is that I'm not able to place JComponents the …

Member Avatar for NormR1
0
202
Member Avatar for albertkao

I want to optimize the following small integer program in speed. My g++ compiler version is 4.3.4 on 32 bit linux. Please suggest or comment the following ideas. Some ideas are: 1. use compile flag such as -O3 2. rewrite the bigger function with function object [CODE]#include <algorithm> #include <cstdlib> …

Member Avatar for Rajesh R Subram
0
110
Member Avatar for idlackage

I have a method that takes in a rectangle shape as a parameter, uses it as a selection box, and finds shapes in an array called shapeObjects that are within the bounds of the selection box. The indexes of those shapes are then added into a new array which is …

Member Avatar for javaAddict
0
97
Member Avatar for ayan2587

Hello guyz !!! I came across this problem and I am still unable to come up with a good algorithm to solve this problem Problem : given, 1<=n<=1000000, and 1<=k<=9 , calculate the first and last k digits of n^n. for example if n=13 and k=4, then result : first …

Member Avatar for ayan2587
0
204
Member Avatar for bigcheesy

Hello, I am having some trouble figuring out an assignment I was given in class. I am not looking for any code, but need a better explanation that what the teacher has given. Basically the program will calculate the number of days between any two days from 1/1/1900 through 12/31/2099, …

Member Avatar for JeyHey
0
7K
Member Avatar for rootchord

Been working on this for hours now. but most of it has been trying to fix these two errors. I've been googling my heart out and keep getting cryptic answers about the [B]const[/B]. Really need help. it's supposed to take in names of students and their scores, sort them, then …

Member Avatar for rootchord
0
640
Member Avatar for Tech B

I'm revisiting an old IR tracking project, and want to use it in a blender game. I would like to know if anyone could help optimize the parsing algorithm or tell me an easier way to track multiple points with code. "im" is an instance of an image I captured …

Member Avatar for TrustyTony
0
234
Member Avatar for Ryan61343

I am writing a program for connect four I have all the code written and all works fine i was wondering however if anyone could offer any advice on a function to determine if a player has 4 or more in a row cause i just cant seem to think …

Member Avatar for Ryan61343
0
92
Member Avatar for jchain814

Hi,, Friends.. just take a look how will SEO make a website promotion, increase traffic and Business on your website. Search engines such as Google and Yahoo typically list the most relevant and recent websites on search results. This is known as indexing. If you want more traffic from Google, …

Member Avatar for ruby.mein
-1
380
Member Avatar for ferenczi

Hello, I have a question: [CODE] Algorithm DFS(Vertex V) mark[V] := 1; print[V]; for each (edge (V, W)) do if mark[W] = 0; DFS(W); [/CODE] I would like to realize this recursive procedure (depth-first search), but in my graph representation (with adjacency lists) I use two different classes, one for …

Member Avatar for thelamb
0
126
Member Avatar for codedhands

Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out …

Member Avatar for binoykp
0
1K
Member Avatar for Audil

i need to create 100 nodes link list and by using it as a memory, Implement a mechanism to add two large numbers (in the order of 1 x 108) using only stacks. Implement the selection sort algorithm on top of the simulated memory codes must be in c++

Member Avatar for vincomgo
-3
71
Member Avatar for CarleneGriffith

I have written my code for my class and i keep getting a couple of errors. Could someone take a look for me and point me in the right direction. Here is my code: // DateProject.cpp : Defines the entry point for the console application. // /*specification: Create a date …

Member Avatar for CarleneGriffith
0
139
Member Avatar for MrDiaz

Hey folks, I am trying to normalize a view on a given output. This is how it works, I need to print several characters but the maximum chars i can print have to be 40 per line. [QUOTE]aaaaaaaaaaaaaaaaaaaaaaaaaaaaa...till 40 aaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbb[/QUOTE] The algorithm works as follows: I have to find …

Member Avatar for MrDiaz
0
126
Member Avatar for AcidG3rm5

Hi all, i'm doing a AES encryption with a library found on sunjava. There is a small problem i hit while making a test. Firstly i used "nv3456789123456o" as my key to encrypt. However, for testing purpose, i'm trying to use a different key to decrypt the message to see …

Member Avatar for jwenting
0
669
Member Avatar for God Coder123

Hey Guys i seem to be having an issue with the follwoing code when i complie in VC++ 2010. It compiles fine in both minGW and VC++ 2008. The code is as follows... The Program accepts three inputs whereby it outputs them in alphabetical order, very simple. [CODE]#include <iostream> #include …

Member Avatar for God Coder123
0
141
Member Avatar for Suarli

Hi; in Ubuntu and C++, i need the code to obtain and show for screen myself MAC. Can you help me?. This is part of a big program and it's the only thing which i have problems I can use: #include <algorithm> #include <cassert> #include <iostream> #include <sstream> #include <vector> …

Member Avatar for daviddoria
0
163
Member Avatar for Alerwiali

/* In this program i am trying to Read these info from a text file called unsorted saved in D These info are A201456 23.15 B209356 6.58 C201232 7.5 D201172 1.2 E201653 3.68 1)i want to sort them in ascending order of the real number example (23.15 ). 2)I want …

Member Avatar for abhimanipal
-1
166
Member Avatar for noobuser

Hi, I want to solve a problem( to be honest its my homework ) given two string, the print the permutation in ordered form. Example: ‫‪Please enter the first string:> abc‬‬ ‫‪Please enter the second string:> mn‬‬ ‫‪Results will be: abcmn abmnc amnbc mnabc mabcn manbc mabnc ambnc ambcn abmcn‬‬ …

Member Avatar for abhimanipal
0
88
Member Avatar for TGeorge824

Hi everyone, I'm in dire need of help. I'm a computer science major going into my junior year of college. I'm kind of having some doubts about whether or not I'm in the right program, though. I like the material, and I am starting to like the math, and the …

Member Avatar for jwenting
0
123

The End.