Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~565 People Reached
Favorite Forums
Favorite Tags
c++ x 13
Member Avatar for Ben10

Hello everyone! I need a C++ program that stores the results of product table from 1 to 10 in two-dimensional array... what i did : [code=c++]#include<iostream.h> void main() { int a[5][2],result; const int k=1; for(int f=1;f<=10;f++) result=k*f; for(int i=0;i<5;i++) { for(int j=0;j<2;j++) { a[i][j]=result; cout<<"a["<<i<<"]["<<j<<"]="<<a[i][j]<<endl; } } }[/code] BUT the …

Member Avatar for Ben10
0
84
Member Avatar for Ben10

Take (10) integers, store them in 1D array then do the following: 1. find the max and min number of them 2. find the average 3. sort these numbers in ascending squence the first two questions are quite easy but my problem is in sorting those numbers...anyways, i came up …

Member Avatar for Ben10
0
124
Member Avatar for Ben10

Q- Use swapping concept to swap the elements of 1D array consist of 10 integers. Ask the user to enetr the values of array elements then print them out to the screen before and after swapping. e.g. a[0] ----> a[9] a[1] ----> a[8] a[2] ----> a[7] a[3] ----> a[6] a[4] …

Member Avatar for Ben10
0
211
Member Avatar for Ben10

[B]a. Write a pseudo-code that prompt the user to input number of sold items and then receive the sold value for each item, calculate the average value, display the items numbers associated with its values and display also the calculated average value on the screen. b. write down the C++ …

Member Avatar for Ben10
0
146