3,815 Topics
![]() | |
[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; … | |
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] | |
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 … | |
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: | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
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#" … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
How to calculate space complexity of any algorithm or program .... | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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++ | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
/* 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 … | |
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 … | |
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 … |
The End.