Answer:
#include <iostream>
#include<iomanip>
using namespace std;
double DrivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon)
{
double dollarCost = 0;
dollarCost = (dollarsPerGallon * drivenMiles) / milesPerGallon;
return dollarCost;
}
int main()
{
double miles = 0;
double dollars = 0;
cout << "Enter miles per Gallon : ";
cin >> miles;
cout << "Enter dollars per Gallon: ";
cin >> dollars;
cout << fixed << setprecision(2);
cout << endl;
cout << "Gas cost for 10 miles : " << DrivingCost(10, miles, dollars) << endl;
cout << "Gas cost for 50 miles : " <<DrivingCost(50, miles, dollars) << endl;
cout << "Gas cost for 400 miles: "<<DrivingCost(400, miles, dollars) << endl;
return 0;
}
Explanation:
- Create a method definition of DrivingCost that accepts three input double data type parameters drivenMiles, milesPerGallon, and dollarsPerGallon and returns the dollar cost to drive those miles
.
- Calculate total dollar cost and store in the variable, dollarCost
.
- Prompt and read the miles and dollars per gallon as input from the user
.
- Call the DrivingCost function three times for the output to the gas cost for 10 miles, 50 miles, and 400 miles.
The answer & explanation for this question is given in the attachment below.
<h2>
Answer:</h2><h3>Hacktivist group is most likely to responsible for this.</h3><h3 /><h2>
Explanation:</h2>
Hacktivism is defined as an action in which a computer or a network is targeted so that it could be misused in order to achieve a goal against any social or political action.
Hacktivists are the persons who perform hacktivism in order to seek attention on a specific thing or issue they want, from all the people.
In the given scenario, the hacking attack is hactivism as it is done to pull the company down.
Hacktivist can be a single person as well as a group of people working together. However they try to work anonymously so that they could not be traced.
<h3>I hope it will help you! </h3>
Answer:
H) Well it depends how you put it. I'm Doing virtual School for my education. And it is so easy when we have technology out their to provide the help that we need. So I think it has affected education pretty good. You can Also google the answers.
I) Looking up Answers at home
J) Parents can check up on their child's school work and see if they can help them. Also The law is involved in Education.
K) It depend's on how you put it
Explanation:
Short Answers