Answer:
graphic word processing program
Answer:
ljb lih lug outbpiyougvotvoy
outiyfiyfiyfiyffiyvitfurcutfcutcrcutfutcdu
Explanation:
didn't understand the question
Answer:
1. Numeric variable:
A variable which can store numeric value is called numeric variable.
e.g.
A=12
pi=3.14
c=79.89
2. String variable:
A variable which can store string variable is called String variable. String is a array of character enclosed within the double inverted comma.
e.g.
N$="ram"
Place$="Kirtipur Kathmandu"
note that a string variable ends with $
Explanation:
A variable is a quantity which can store value in computer memory. A variable is also a quantity whose value changes during the execution of a program. Like in mathematics a variable holds certain value Just in QBASIC; it is a placeholder for storing value in computer memory
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.