No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
I need to generate a random binary number (or decimal and convert it), and store that number in an array, needless to say im lost and would appreciate any help. Thx | |
I'm attempting to implement the trapezoidal method of calculating the integral of a curve. It's supposed to be the measure of water flow out of a tank's release valve. The water flow is a function of time in seconds where Y is the rate of discharge and X is time. … | |
In my comsc class we are writing a program to determine when easter sunday is, my program works like a charm when i put each equation in a seperate function but when i try and take them out (as per teachers instructions) it craps the bed and gives me an … | |
Assignment was to take information about sales made, hours worked and number of dependents from a file, calculate the gross pay expected on one of two plans Plan A 10% commission on sales, and 9.50 an hour with 1.5x overtime after 40 hrs Plan B 30% commission then we had … | |
I'm using a class to generate a list of primes. Im checking a series of numbers being incremented by two against the current vector of primes to see if any primes divide into the number evenly. If no primes divide into it I add the number onto the end of … | |
Doing Project Euler problem 3. Don't know why code not working. [code] #include<iostream> using namespace std; //largest prime factor 317584931803. bool Primechecker(int); int main() { int greatestprime=1; int limit = 317584931803; int runningcount=1; while(runningcount<limit/2) { if (Primechecker(runningcount)==true && limit%runningcount == 0) { greatestprime = runningcount; } runningcount++; } cout << … | |
The assignment was to graph a line within 10 units of the origin after the user inputs the slope and y-intercept. Sounded much easier than it was, I gave it a shot but I can't get it to print correctly. To be honest I just dont know if im headed … ![]() | |
Was compiling homework problem with Dev-C++ and got ]Linker Error] undefined reference to determinant(float, float, float, float, float, float, float, float, float) Anyone know what this is? [code=cplusplus] #include <iostream> using namespace std; float determinant(float, float, float, float, float, float, float, float, float); int main() { float x1, x2, x3, … | |
I'm writing a simple program that would assign each letter and several symbols to a randomly generated 8bit binary pattern. I want to take a rand() #, convert it to a 1 byte binary number, and store that number as a string in one row of a two dimensional array/vector. … |
The End.