Answer:
'if'
Explanation:
The if word is used in an if-statement (a type of conditional statement) that allows the computer to do certain computations based on what the conditional statement evaluates to.
Hope this helps :)
Answer:
What are the steps to creating a blank database? Use the drop-down menus to complete them.
click the file tab, and click new
Under the available Templates category, click Blank Database.
Specify a name and location for the database.
Click create.
Explanation:
Just did it on Edge :)
The correct answer is Boolean logic.
Booleans are true or false statements.
An example of a while loop is:
while 1 < 5:
#do something.
The Boolean statement is 1 < 5 which evaluates to true because 1 is less than 5.
I hope this helps!
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.