Answer:
Sebastian is your last name diaz
Explanation:
Functions allow us to break our program into multiple parts
Multiple is the answer
Atlanta-Robinson
Answer:
The answer is "number of the column containing the return value".
Explanation:
In Excel, the "VLOOKUP" method is used to perform the vertical search by looking for both the value during the user table and retrieving the number of the index number location in the same row. It is a built-in function, which is classified as a Lookup or Reference worksheet function, and the following function can be defined as follows:
- In the 1st parameter, it is used to watch the value for the match.
- In the 2nd parameter, it is used to search the table.
- In the 3rd parameter, it is used as the column number representing the return value.
- In the 4th parameter, it is used to return only if the same match is found.
Answer:
#include <iostream>
using namespace std;
double DrivingCost(int drivenMiles,double milesPerGallon,double dollarsPerGallon)
{
double dollarsperMile=dollarsPerGallon/milesPerGallon;//calculating dollarsperMile.
return dollarsperMile*drivenMiles;//returning thr driving cost..
}
int main() {
double ans;
int miles;
cout<<"Enter miles"<<endl;
cin>>miles;
ans=DrivingCost(miles,20.0,3.1599);
cout<<ans<<endl;
return 0;
}
Output:-
Enter miles
10
1.57995
Enter miles
50
7.89975
Enter miles
100
15.7995
Explanation:
In the function first I have calculated the dollars per mile and after that I have returned the product of dollarspermile and driven miles.This will give the cost of the Driving.