A list of multiple choices is given;
<span>a)
</span>Purchase a home in the city center instead.
<span>b)
</span>Rent the apartment anyway.
<span>c)
</span>Rent the apartment with a roommate.
<span>d)
</span>Purchase a home in the suburbs instead.
The answer is (C)
John should look for an apartment and share it with a
roommate. This will bring down rent expenses to 50% as both John and the
roommate will be cost sharing the rent. If the rent expenses go down by 50%, he’ll
be able to save an additional 10% and use it for other expenses.
Answer:
The blank space around the edges of a sheet of paper — as with the page of a book — that surrounds the text is called the margin.
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:
programmers who are competent in data structures and algorithms can easily perform the tasks related to data processing ,automated reasoning ,or calculations . data structure and algorithms is significant for developers as it shows their problems solving abilities amongst the prospective employers .