Answer:
#include <bits/stdc++.h>
using namespace std;
int lowestPosition(double elements[],int n)//function to find position of lowest value element.
{
int i,pos;
double min=INT_MAX;
for(i=0;i<n;i++)
{
if(elements[i]<min)
{
min=elements[i];
pos=i;//storing index.
}
}
return pos+1;//returning pos +1 to give the correct position in the array.
}
int main() {
double ele[500];
int n;
cout<<"Enter number of values"<<endl;
cin>>n;
cout<<"Enter elements"<<endl;
for(int i=0;i<n;i++)
{
cin>>ele[i];
}
int pos=lowestPosition(ele,n);//function call.
cout<<"The position of element with minimum value is "<<pos<<endl;
return 0;
}
Output:-
Enter number of values
5
Enter elements
4 6 7 5 1
The position of element with minimum value is 5
Explanation:
I have created a function lowestPosition() with arguments double array and it's size.I have taken a integer variable pos to store the index and after finding minimum and index i am returning pos+1 just to return correct position in the array.
Answer:
B. once a VB.NET project is created in the Microsoft Visual Studio environment.
Explanation:
Visual Basic . Net is a programming language which is used to run complex software and projects. The VB projects which are created in Microsoft Visual Studio are run by console application. These computer applications run complex and technical software.
They learned the earth was much older than they had previously thought.
Gradual processes changed the earth's surface.
Fossils could tell the age they came from.
Answer:
The working principle of the computer system. Computers do the work primarily in the machine and we can not see, a control center that converts the information data input to output. This control center, called the central processing unit (CPU), How Computers Work is a very complex system.
Explanation: