No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Here is my attempt, could you look over it and tell me what I am doing wrong? #include <cstdlib> #include <iostream> #include <ctime> #include <cmath> using namespace std; void add(float[],float[],float[]); int main() { float a[500000000],b[500000000],c[500000000]; for(int count =0; count<500000000;count++) { a[count]=rand(); b[count]=rand(); } add(a,b,c); return 0; } void add(float x[],float … | |
Objective: to determine the MFLOPS for floating point addition, subtraction, multiplication and division on two different machines. I Write a very simple C++ program: 1. Create three float arrays A, B and C with 500000000 elements 2. Call a random number generator to fill up A and B with numbers. … |
The End.