10 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for alexamicaa

I have no idea how to write in Python. Please help me with this! Best answer if you write the program! Central Limit Theorem I Goal Write a python program that will use your accept / reject Monte Carlo algorithm to demonstrate the central limit theorem. Recall: The central limit …

Member Avatar for sneekula
-3
486
Member Avatar for nathan.pavlovsky

Hello programmers! I have been working on STL algorithms for some time now as a beginner, and I started doing an exercise, among which is the task of `use the fill algorithm to fill the entire array of strings named items with "hello"`. My code for this is below: // …

Member Avatar for nathan.pavlovsky
0
1K
Member Avatar for sick vapor

Hello, I'm fairly new to python and I've currently run into a road block in this problem. I set up this code: def average(the_list): return the average of the list def deltalist(the_list,a): return a list which is each of the element of the_list subtracted by a def squarelist(lst): return a …

Member Avatar for sick vapor
0
2K
Member Avatar for ElDuderino12

#include <stdio.h> #include <stdlib.h> #define MAXSIZE 6 int main(int argc, char** argv) { float stddeviation, deviation, sumsqr, variance, mean, x, t, m, sum=0, max, min; int numdatapts, k; FILE * inFile; inFile = fopen("Uniform93.data", "r"); if(inFile == NULL){ printf("\nError opening file. Abort program.\n"); exit(1); } for (k = 1; k …

Member Avatar for Gonbe
0
1K
Member Avatar for Labdabeta

I am getting ready to write a programming competition on Tuesday (the Canadian Computing Competition) and I remember that last year it said that only standard libraries can be used. I was having trouble deciding which libraries are standard. I ended up using windows.h and when I suddenly realized that …

Member Avatar for Labdabeta
0
187
Member Avatar for kolibrizas
Member Avatar for prvnkmr449

Hi all of you, Iam creating a Inventory System on vb.net and I need some image for like new,search,delete copy cut edit etc can any Help me from I get all this Images, I try to search in google bt I did't get thanks In Advance

Member Avatar for prvnkmr449
0
367
Member Avatar for Garrett2011

suppose we have following function: [CODE]void someFunction(int * araye){ for (int i=0;i<5;i++) cout <<araye[i]<<' '; cout <<'\n'; }[/CODE] can we pass an array to this function by following syntax, under upcoming c++0x standards? : [CODE]someFunction({1,2,3,4,5});[/CODE] if that's true, will we even be able to use this syntax in any case …

Member Avatar for vijayan121
0
257
Member Avatar for pumpkin_pub

so i have a little issue here. i have a program that creates a list of random numbers, for sake of example here it is: [CODE] public class RandomSeq { public static void main(String[] args) { int n = Integer.parseInt(args[0]); for (int i = 0; i < n; i++) System.out.println(Math.random()); …

Member Avatar for ashok2004_urs
0
327
Member Avatar for Garrett2011

Suppose we have following two classes: [CODE=c++] class Temp{ public: char a; char b; }; class Final{ private: int a; char b; char c; public: Final(Temp in):b(in.a),c(in.b){} //rest of implementation };[/CODE] can we initialize an object of the Final class with following syntax in upcoming c++0x standard: [CODE=c++] Final obj(Temp{'a','b'});[/CODE]

Member Avatar for mike_2000_17
0
250

The End.