Answer:
The program is as follows:
#include <iostream>
#include <vector>
using namespace std;
int main(){
int n;
cout<<"Elements: ";
cin>>n;
vector <int>vectnum;
int numInp;
for (int i = 1; i <= n; i++){ cin>>numInp; vectnum.push_back(numInp); }
int big, secbig;
big = vectnum.at(0); secbig = vectnum.at(1);
if(vectnum.at(0)<vectnum.at(1)){ big = vectnum.at(1); secbig = vectnum.at(0); }
for (int i = 2; i< n ; i ++) {
if (vectnum.at(i) > big) {
secbig = big;;
big = vectnum.at(i);
}
else if (vectnum.at(i) > secbig && vectnum.at(i) != big) {
secbig = vectnum.at(i);
}
}
cout<<"Second Largest: "<<secbig<<endl;
int small, secsmall;
small = vectnum.at(1); secsmall = vectnum.at(0);
if(vectnum.at(0)<vectnum.at(1)){ small = vectnum.at(0); secsmall = vectnum.at(1); }
for(int i=0; i<n; i++) {
if(small>vectnum.at(i)) {
secsmall = small;
small = vectnum.at(i); }
else if(vectnum.at(i) < secsmall){
secsmall = vectnum.at(i); } }
cout<<"Second Smallest: "<<secsmall;
return 0;
}
Explanation:
See attachment for explanation
The nonclustered index is a <span>type of index that has an index key value that points to a data row, which contains the key value.
</span><span>This index has a structure separate from the data rows and contains index key values and each key value entry has a pointer to the data row that contains the key value.
</span><span>Clustered indexes on the other hand sort and store the data rows in the table or view based on their key values.</span>
You have to press the space bar 13 times in order to make it the same length as the tab.
Answer:
Infrastructure-as-a-Service
Explanation:
IaaS provides networking components such as backup, security, scaling, data partitioning and other vital computing resources needed. All these services are provided online using high-levels APIs (Application Programming Interface).
IaaS providers make resources available to customers from the equipment installed in data centers.
Therefore, the service that deals with networks, servers, and storage is Infrastructure-as-a-Service (IaaS