No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
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 … | |
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 … | |
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] … | |
[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++ … |
The End.