Panchromatic band is not included. The characteristics of SPOT images (SPOT 1-5)
ID: 3858537 • Letter: P
Question
Panchromatic band is not included. The characteristics of SPOT images (SPOT 1-5) are described below. Use the table above to compare the spatial resolution of the panchromatic bands from SPOT 5 and SPOT 1. What is the spatial resolution of the panchromatic band from SPOT 5? Add the three bands to the composer: display the first band (njolo1) and then add the others by right clicking on their names in the IDRISI explorer and selecting add layer from the contextual menu that appears. Of the 3 bands provided, which one does not seem to be displaying properly (i.e., has banding effects)? (specify the band number) Describe what you see: in which direction (i.e., East-West or North-South) is the banding more dramatic?Explanation / Answer
Answer:
#include <iostream>
using namespace std;
int Highestvalue(int value[], int input_capacity) {
int highest_value = 0;
for (int i = 1; i < input_capacity; ++i) {
if (value[highest_value] > value[i]) {
highest_value = i;
}
}
return value[highest_value];
}
int Lowestvalue(int value[], int input_capacity) {
int lowest_value = 0;
for (int i = 1; i < input_capacity; ++i) {
if (value[lowest_value] < value[i]) {
lowest_value = i;
}
}
return value[lowest_value];
}
int main()
{
int input[50],capacity, i;
cout<<"Enter number of integers : ";
cin>>capacity;
cout<<"Enter values of integers : ";
for(i=0; i<capacity; i++)
{
cin>>input[i];
}
cout << "The lowest value among the integers is:" << Highestvalue(input, capacity) <<endl;
cout << "The highest value among the integers is: " << Lowestvalue(input, capacity) <<endl;
return 0;
}
Output:
Enter number of integers : 5
Enter values of integers : 21
67
45
38
79
The lowest value among the integers is:21
The highest value among the integers is: 79
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.