Answer:
Ctrl+Q is used to remove a paragraph's formatting
Explanation:
Hope that's the answer you're looking for!
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.
Answer:
starting with lowercase letters, using uppercase letters for the first letter in a new word
Explanation:
starting with a dollar sign, using lowercase for the remaining parts of each word
Answer:
b. & Puihaha
Explanation:
PHP variables are supposed to start with a $ sign.
Other rules followed by PHP variables are:
Starting character in variable name (after $) must be letter or _.
Other characters in variable names can be letters,numbers or _.
a. $_Puihaha
c. $Pui_haha
d. $Puihaha
satisfy these rules.
Whereas , b. & Puihaha does not satisfy as it starts with '&'. Moreover it also contains an invalid space character in the variable.
A programming language acts as a translator between you and the computer. Rather than learning the computer's native language (known as machine language), you can use a programming language to instruct the computer in a way that is easier to learn and understand.