659 Topics

Member Avatar for
Member Avatar for vishal1949

I want to find the average score of a LinkedList. My code is [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bowlinggame; import java.util.LinkedList; import java.util.TreeSet; public class BowlingGame { public static void main(String[] args) { TreeSet <String>PlayerNames …

Member Avatar for singh_soorma94
1
1K
Member Avatar for tristanbacon

Hello all, I am working on a Blackjack program, but am having a bit of trouble with the finer details. At the moment, I have a list of the cards and their values, as follows: [CODE] Jack = 10 Queen = 10 King = 10 Ace = 11 # card …

Member Avatar for TrustyTony
0
243
Member Avatar for vishal1949

I made a program and want to enter previous dates into a linkedList. My code is [CODE]package bowlinggame; import java.util.Date; import java.util.LinkedList; import java.util.TreeSet; public class BowlingGame { public static void main(String[] args) { TreeSet <String>PlayerNames = new TreeSet<String>(); PlayerNames.add("Steve"); PlayerNames.add("James"); PlayerNames.add("Bob"); for (Object o : PlayerNames) { System.out.println(o); } …

Member Avatar for JamesCherrill
0
108
Member Avatar for vishal1949

I am making a program of a bowling tracker. I made four names and then I have to add specific dates they played and then the score they got on those days. Then print to screen the names, the number of games they played, average score, last games score and …

Member Avatar for NormR1
0
410
Member Avatar for JoshuaBurleson

if I wanted to remove all of the strings within a given list that met a certain criteria, such as having the str'a' in them, how would I go about doing that? the only way that's intuitive to me a for/in loop, but that can't be done. any ideas? Using …

Member Avatar for Enalicho
0
237
Member Avatar for fingerpainting

Say I have a list of lists as follows (which I do): [CODE][['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3']][/CODE] What I want to accomplish is if in any list Value1 & Value2 equal the Value1 & Value2 of any other list, I want to merge …

Member Avatar for TrustyTony
0
630
Member Avatar for bharatk

I am trying to find the index position of the minimum element in a list and print the element at the corresponding index position in another list. For example: [CODE] ?- min2(X,Y,[a,b,c],[5,3,7]). X= b y= 3[/CODE] Code: [CODE] min2(A,B,[A|_],[B|_]). min2(A,B,[X|T1],[Y|T2]) :- smallest(W,[Y|T2]), % using a predicate to find the min …

Member Avatar for bharatk
0
2K
Member Avatar for Ahmed2

Hi there, I'm currently working on a small broject which is about providing flexible download service. Basically, I read the info from a csv file and put it in the futurelist, then depending on the length of the file I will put it either in currentlist or delayedlist and after …

Member Avatar for Ahmed2
0
170
Member Avatar for deecoup

[url]http://www.sitepoint.com/forums/[/url] – PR7 [url]http://forums.digitalpoint.com/[/url] – PR7 – Post requirement prior to sig link [url]http://forums.seochat.com/[/url] – PR6 [url]http://www.daniweb.com/forums/[/url] - PR6 [url]http://www.zymic.com/forum/[/url] – PR6 [url]http://www.googlecommunity.com/forum/[/url] – PR5 [url]http://www.smallbusinessforums.org/[/url] – PR5 [url]http://forums.site-reference.com/[/url] – PR4 [url]http://www.websitebabble.com/[/url] – PR4 [url]http://affiliate-marketing-forums.5stara...grams.com/[/url] – PR4 [url]http://www.geekvillage.com/forums/[/url] – PR4 [url]http://www.dreamteammoney.com/[/url] – PR4 [url]http://www.wickedfire.com/[/url] – PR4 [url]http://www.v7n.com/forums/[/url] – PR4 [url]http://www.webdigity.com/[/url] …

Member Avatar for Mellisa82
1
2K
Member Avatar for flebber

Say I have a basic list. [CODE]x = [2,3,1,3,5,4,5] [/CODE] And I want to find the sum result applied against the list without duplicates. So with duplicates the code could be. [CODE][elem * 2 for elem in x if elem >= 1 ] > [2, 4, 6, 6, 8, 10] …

Member Avatar for TrustyTony
0
295
Member Avatar for munnate

Hi, i need some pointers on how to approach my assignment. Dont want you to write me the code, just please point me in the right direction. I need to create a C++ program that requires the user to enter 10 student id numbers and the grade they received in …

Member Avatar for moh0
0
345
Member Avatar for flebber

Is there a way to do nested list comprehension? for example I can square a range of numbers, even only. [CODE][x*x for x in range(1,20) if x % 2==0][/CODE] but what if I want to square the even and times the odd by 3. [CODE][x*x for x in range(1,20) if …

Member Avatar for richieking
0
152
Member Avatar for aru211285

Hi friends, I have a question regarding the option list in HTML pages.... i have 2 items (class, subclass) each of which have some options and hence i created the drop down lists for the 2 items which when selected by user will go the action page and search for …

Member Avatar for aru211285
0
182
Member Avatar for arunkumar267

#include<iostream> using namespace std; class polynomial { private: struct p { int degree; float coefficient; p *link; }*head; public: polynomial() { head=NULL; } void getdegree(); void getpolynomial(int d); void display(); void addition(polynomial p1,polynomial p2); }; void polynomial::getdegree() { int degree1; cout<<"\n Enter the highest degree of your polynomial:"; cin>>degree1; getpolynomial(degree1); …

Member Avatar for arunkumar267
0
281
Member Avatar for unoho

Hey guys, so im building this application using ASP.net (visual studio 2005) and i have few dropdown lists. the dropdown list has an arrow beside it. when u hover over it, it says "choose data source". i click on it but there seems like no option to connect to analysis …

Member Avatar for cfwebdeveloper
0
347
Member Avatar for Riteman

A website is under construction. Am struck to a point here: In the website am building, the clients requirement is that, He offers some works under some payment. So he needs in his services page the kind of drop down list in such a manner that its as below: say, …

Member Avatar for Riteman
0
121
Member Avatar for tbjo

Hi! I'm working on code for a personal project thingie, and I'm stumped by part of it. I am trying to search a line (provided in a separate .txt file) to see if I can find any consecutive occurrences of elements of a list in said line. For example: in …

Member Avatar for vegaseat
0
188
Member Avatar for thierrypin

I have this problem: I have a data structure called DACT, that I convert into a string line and send to another computer. I have a file full of DACTs, and I need to send them all to another computer. When I send only 100, it works fine, but when …

Member Avatar for thierrypin
0
186
Member Avatar for rpv_sen

Hi Friends I am trying to get the value of select dropdown item in a text box, but i am unable to get it. I am using ajax for dropdowm method. please any one can help one.php [CODE]<?php session_start(); include("config.php"); // Check, if username session is NOT set then this …

Member Avatar for twiss
0
1K
Member Avatar for flebber

I want to compare a list of files with extension .rtf in my directory with a list of files at a given url and download the files at the url not found in my directory. This is where I am at but cannot figure how to filter a list based …

Member Avatar for TrustyTony
0
319
Member Avatar for ocramferreira

Hi all, well my problem isn't a practical problem. I have a project to do which is a word game.First of all i have a .txt (a dictionary) my program has to fetch a random word and shuffle it. With the combination of those letters the program has to find …

Member Avatar for iamthwee
0
561
Member Avatar for Farhad.idrees

Hi i have 3 list view...1=Courses, 2=Semester, 3= Section.. when i select any course so in semesterlist view semester should come with respect to Corses...similary when i select semester so section should come with respect to semester...but i m not able to do it...... i have written this code... [CODE] …

Member Avatar for Mitja Bonca
0
115
Member Avatar for shylesh_kerala
Member Avatar for kained

The code i'm using is fine in firefox and chrome but ie is keeping the bullet point as black. Anyone know how i can hack round it? [CODE].rightpane ul , .contentpane ul { padding:0; margin:0; margin-left:15px; text-align:left; list-style-type:disc; color: #007dc3; } .rightpane ul li:first-line , .contentpane ul li:first-line { color: …

Member Avatar for gogreen1
0
170
Member Avatar for d_panayotov
Member Avatar for rockerjhr
0
199
Member Avatar for anitaNg

what is wrong with my code?i cant figure it out. [CODE] #include<iostream.h> #include<stdlib.h> #include<stdio.h> #define MAX 50 struct Node { char judul[MAX]; char pengarang[MAX]; int harga; Node* nextPtr; }; Node* makeNode(char judul[], char pengarang[], int harga) { Node* newNodePtr = (Node*)malloc(sizeof(Node)); if(newNodePtr == NULL) { cout << "Out of Memory" …

Member Avatar for jonsca
0
140
Member Avatar for oree

Hey there, I am looking to have 2 drop down lists, 1 for provinces and 1 for cities. i saw some examples in java script but since i dont know how to use java and i do know and LOVE php i wondering if anyone can help me with this …

Member Avatar for oree
0
2K
Member Avatar for choover12

Hi, I would like to have a list of "methods" so that i can invoke them inside the list. I just don't know how to store the methods in a list.

Member Avatar for Mitja Bonca
0
71
Member Avatar for Executionerr

Hello, it seems I am having some difficulties with my project in witch I am training my C# skills. Well, the problem is I have wrote the biggest part of the code, but I have problem to finish what i started, so I left blank code lines. Here is a …

Member Avatar for RunTimeError
0
117
Member Avatar for GolfGr

Hello guys im working on a project for my class and im stuck. i dont have much of experience with linked list and my book isn't helpful with this project. Here is what the project is about: Develop an interactive program to implement basic linked list operations including: 1. Add …

Member Avatar for GolfGr
0
166

The End.