110 Topics

Member Avatar for
Member Avatar for itzcarol

Hello Guys! I need help for an assignment. Somehow my code will not correspond to what I'm looking for. I'm having a hard time to find what the problem is. If you guys can please help me, I'll be more than appreciate !!!!! [I]1) Create a program that will read …

Member Avatar for Labdabeta
0
4K
Member Avatar for TrustyTony

Here is class that can be fed directly from split stream like one number per line file (or [URL="http://www.daniweb.com/software-development/python/code/321725"]generator producing 'words'[/URL] from multiple numbers per line).

Member Avatar for Gribouillis
0
607
Member Avatar for mohamed moamen

[CODE] float i = 55 ; float y = 23 ; float u = i / y ; System.out.println(u); [/CODE] i want to print u Round to five decimal places how i can do this approximation ?

Member Avatar for mohamed moamen
0
119
Member Avatar for jmay1327

I am trying to use functions in the following program. The program is supposed to use a vector of structures to store a students first name, last name, and grades. Also, to get a average for each student and a class average. I do not think I am calling the …

Member Avatar for jmay1327
0
138
Member Avatar for ryanfsf

i want to ask something about my assignment. heres the code [CODE]#include <stdio.h> int main() { int nilaiuts[5],nilaiuas[5],nilaitugas[5]; int i; float total=0; printf("Masukkan nilai UTS mahasiswa [5 mahasiswa] :\n"); // proses memasukkan data ke array for (i = 0; i < 5; i++) { printf("Mahasiswa %i : ", i+1); scanf("%i",&nilaiuts[i]); …

Member Avatar for WaltP
0
209
Member Avatar for Donieob

I want to produce a moving average for a time series using the JFreeChart MovingAverage.createMovingAverage method in org.jfree.data.time.MovingAverage. But my data is a countdown, i.e. the values for the time parameter are counting down. So when I apply this moving average function it produces a moving average counting up not …

0
146
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 mikejz88

I can't seem to get this to compile for nothing; I'm new to this c++ any help out there? [CODE]#include <iostream> int main() { //declare variables double average = 0; double sum = 0; double array[10]; int k; // User Input and Total of number input for (k =0; k …

Member Avatar for jonsca
0
182
Member Avatar for by_the_blood

I am trying to write a function that will count test scores that fall in a specific range(90-100, 89-80, 79-70, 69-60 and 60 or below) that are stored in a two dimensional array. Also, I am supposed to write a function that will do the same as above, only this …

Member Avatar for laosland
0
1K
Member Avatar for happygeek

[ATTACH=right]21490[/ATTACH]Imagine lining up 57.5 billion Apple iPads to build a wall measuring about 4000 miles long and 60 feet high. To put that into perspective, think of the Great Wall of China cloned and stacked on one top of the other, that's how big we are talking here folks. Now …

Member Avatar for a.oprea
1
347
Member Avatar for VBNewUSer

Good day to everyone:) , i'm a new user here and i'm also new to Visual Basic , i'm having problems coding the codes myself. It's an assignment for me from school , after attemtping it for a few hours , I'm almost finish but i'm having trouble in the …

Member Avatar for VBNewUSer
0
1K
Member Avatar for jrotunda85

I'm trying to figure out the best way to accomplish the computation of weighted averages for my site. Here's the PHP that pulls down the results -- [CODE]$SQL = "SELECT a.*, b.CName, c.Description FROM humidor a LEFT JOIN cigar b on a.CigarID = b.CigarID LEFT JOIN cd_manufacturer c on b.Manufacturer …

Member Avatar for jrotunda85
0
114
Member Avatar for TrustyTony
Member Avatar for tikoti

Hi all, I have been doing for fun this problem in projecteuler.net. The problem is as follows: +++++++++++++++++++++++++++++++++++++++++ Peter has nine four-sided (pyramidal) dice, each with faces numbered 1, 2, 3, 4. Colin has six six-sided (cubic) dice, each with faces numbered 1, 2, 3, 4, 5, 6. Peter and …

Member Avatar for TrustyTony
0
506
Member Avatar for Queen007

Hi, Everyone... I have a new domain in my hosting account and I've already created a wordpress blog about Cars.. However this is the result of a speed test I have made a few minutes ago makingmoneyblogs.info/carscarereview size=71.36 KB Load Time=36.19 seconds average speed per KB=0.51 seconds As you can …

Member Avatar for Queen007
0
195
Member Avatar for Awesumlewy

Hello, I am currently trying to improve my programming skills and I just can’t get my simple program to work correctly. Here’s the problem: I have managed to allow a user to input 10 numbers then when they insert these 10 numbers, the sum and average is displayed, simple! Then …

Member Avatar for richieking
0
168
Member Avatar for declna0872

Hi all, im am writing a program to take in and store a student's grade as an int. Can anyone tell me please how do i get the average score of the grade? This is what i have so far... Regards. [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; …

Member Avatar for Saith
0
2K
Member Avatar for akase2010

Im new to c++ and this is our first assignment. I dont even know where to start. Help! Your task is to write a main program which asks the user for an error value and then calls a function CalculatePi (error) which returns an approximate value of Ï€. The function …

Member Avatar for VernonDozier
-1
167
Member Avatar for MasterMic

I've taken 1 course in Java and 1 in C++ and now I'm tinkering with Python (love it so far). My module I'm currently working on is designed to solve a certain puzzle. To understand the code you'll need to understand the puzzle: There is an upside down triangle with …

Member Avatar for MasterMic
0
269
Member Avatar for icasta13

[CODE]#ifndef Prog_h #define Prog_h class Prog { public: int Array[]; int N; void ReadList(int Array[], int N); void Avgs (int Array[], int N, int &Ave, int &aveP, int &AveN); int Large (int Array[], int N); void Display(int Array[], int N, int Ave, int AveP, int AveN, int Max); }; #endif …

Member Avatar for Fbody
0
112
Member Avatar for Gribouillis

This snippet generates the best rational approximations of a floating point number, using the method of continued fractions (tested with python 2.6 and 3.1).

Member Avatar for Gribouillis
1
1K
Member Avatar for jeremy62

Alright im trying to create a program that allows the user to input numbers into an array and then will take the average of all the numbers within the array but im getting very strange results any help is much appreciated [CODE]#include <stdio.h> #include <stdlib.h> #define SIZE 9 int main(void) …

Member Avatar for darkbreaker
0
152
Member Avatar for d5e5

I know next to nothing about statistics so tried Statistics::Basic because it seemed easy to use. Then I tried Statistics::Descriptive because it has functions that Statistics::Basic lacks. What I did not expect was to get a different result when calculating Standard Deviation using Statistics::Descriptive than when using the other module …

Member Avatar for d5e5
0
406
Member Avatar for fussballer

Hi, I am developing some code to run on hardware and I am using the sin() and cos() functions inside the standard math.h many times, which slows the program down dramatically. I was wondering if there is a way to "approximate" the sine and cosine of a value (angle is …

Member Avatar for Adak
0
223
Member Avatar for ssmokincamaro

I'm working on an a grading program that will require the use of a couple classes. The program contains a list of "program assignments" which there are 5, and 3 test scores. The Driver class contains the scores for the students. I'm stuck writing the average methods :$ Along with …

Member Avatar for ssmokincamaro
0
165
Member Avatar for Roger101

I have a series of data (x,y) as below. I want to use this data to create a bell curve (normal distribution) with perl. How can I do this? x y 1 2 2 50 3 40 4 300 5 70 6 80 7 8 8 10 9 25 10 …

Member Avatar for d5e5
0
977
Member Avatar for dansnyderECE

0 down vote favorite I'm trying to figure out how exactly to use stat() to capture information about a file. What I need is to be able to print several fields of information about a file. So.. [CODE] #include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> using namespace std; int …

Member Avatar for dansnyderECE
0
405
Member Avatar for Mikey12345

Hi, Is there a frequency function in C# like there is in Excel. I need to show a distribution chart in bell curve form. Thanks

Member Avatar for ddanbe
0
1K
Member Avatar for DerKleineDude

Hello, I'm a Python/SPSS (DANIWEB) beginner and I'm having a hard time getting classes, functions and methods into the right order. I want to write a script for SPSS where I can read text out of an text object from the SPSS-output file. My code looks like this: [CODE=Python] import …

Member Avatar for DerKleineDude
0
453
Member Avatar for Big-D2xL

Hi, I know this forum for a while and it has been helping me for a time, now I registered myself and I have a question to make you: I'm making a zone in my website where I can see a Top10 of links, products and news, and all of …

Member Avatar for Big-D2xL
0
179

The End.