Algorithms #
working on this code for some time now need help with the algorithms part. #include <iostream> #include <time.h> using namespace std; void choose(int a,int b, int c,int d[]); void screen(int a[],intb); int main(){ int play; int numbers; int price=play*2; choose(numbers,play,price,playernumber); screen(playrnumbers,play);} void choose(int a,int b,itn c,int d[]){ cout << "How many numbres? : "; cin >>a; cout << "How many plays? :"; cin >>b; cout << "That will cost " <<c>> endl; for( int i=1;i<=5;i++){ cout << "Number" << i<< ":"; cin>> d[i]; } } void screen(int a[], int b){ for(int i=1;i<=5;i++){ cout << i; for(int j=0;j<5;j++){ cout <<"[" << a[j+1] << "]" } cout << endl; } }