array

Write a c++ program that stores monthly rainfall amounts in an array.

Stores monthly rainfall amounts in an array. Object: Write a program that stores monthly rainfall amounts in an array. The program then displays the monthly rainfall amounts, the total annual rainfall amount, the average rainfall amount, the highest rainfall amount, or the lowest rainfall amount First get the rainfall amounts for the 12 months. Example: …

Write a c++ program that stores monthly rainfall amounts in an array. Read More »

Write a program to add two matrices by using multi-dimensional arrays.

Write a program to add two matrices by using multi-dimensional arrays.

Program to add two matrices by using multi-dimensional arrays Object: Write a program to add two matrices by using multi-dimensional arrays. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> using namespace std; void main() { int sum[2][3],i,j; int mat1[2][3]={{2,4,5},{4,5,6}}; int mat2[2][3]={{6,3,1},{3,2,6}}; cout<<“1st Matrix: \n\n”; for(i=0;i<2;i++) { cout<<“[ “; for(j=0;j<3;j++) { cout<<mat1[i][j]<<” “; } …

Write a program to add two matrices by using multi-dimensional arrays. Read More »

Write a program that accepts temperature of 7 days from user and print their average using array

Program that accepts temperature of 7 days from user and print their average using array

7 days temperature from user and print their average using array Object: Write a program that accepts temperature of 7 days from user and print their average using array. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> using namespace std; void main() { float temp[7],sum=0,avg; int i; cout<<“Enter 7 days Tempreature:\n”; for(i=0;i<7;i++) { …

Program that accepts temperature of 7 days from user and print their average using array Read More »