I am very new to C++, and am struggling with these problems. I must enter in a 10 integer array, and then reverse the array. I do not want to make a function, or use characters, just simple code, this is what I thinking is along the lines of the answer
#include <iostream>
using namespace std;
int main (){
int SourceArray[10]; // this will be the original array
int DestArray[10]; // this will be the array that the reverse goes into
int i;
cout << "Enter a 10 Integer array with Positive Integers" << endl;
for(int i=0; i<10; i++){
cin >> SourceArray[i];
}
cout << "Your reversed array is: " << endl;
for(int i=10; i >=0; i--){
cin >> SourceArray[i];
SourceArray[i] = DestArray[i];
}
i know this has many mistakes, but I just cannot figure out arrays, I am having a terrible time figuring them out. But i want it to be as simple as above, with no other libraries etc...
Question 2.
I must make a 10 floating point array (similar to above) and show the positive integers, negative integers, max and min, sum, and sum of absolute values. Any way to get me started on this? Oh, and i'm suppose to have them shown in a fixed format with 2 decimals, and the results for average, sum, and other sum are suppose to be in scientific...Any help would be appreciated, I have searched the forums and internet with no simple answer. THANKS A TON!!