1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tpy6a [65]
2 years ago
8

Write a function DrivingCost with input parameters drivenMiles, milesPerGallon, and dollarsPerGallon, that returns the dollar co

st to drive those miles. Ex: If the function is called with 50 20.0 3.1599, the function returns 7.89975. Define that function in a program whose inputs are the car's miles/gallon and the gas dollars/gallon (both floats). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your DrivingCost function three times.
Computers and Technology
1 answer:
jolli1 [7]2 years ago
4 0

Answer:

the brainly thing is saying that i can't put the answer so i screenshotted it and put it down below

Explanation:

You might be interested in
A specific type of computer program that manages the other programs on a computer
yarga [219]
Operating system
Reason: operates systems like desktop CPU’s, laptop computers, smartphones, tablet cpus, and gaming consoles
6 0
3 years ago
)duplicate hash code
mash [69]

Answer:A) Create collisions

Explanation: Hash codes are the numeric codes present in the programming infrastructures which are responsible for focusing on the object while the equality testing is in process. Hash codes does not display the property of having a permanent value.

When there is the creation of the duplicate hash codes then ,chances of collision arise because they search for the particular object and cannot have the same numeric value.

5 0
3 years ago
Which option represents the location of the Goal Seek function?
sweet-ann [11.9K]

Answer:b

Explanation:

3 0
3 years ago
Read 2 more answers
Using language c, find the nth Fibonacci, knowing that nth Fibonacci is calculated by the following formula: - If n = 1 Or n = 2
Nina [5.8K]

Answer:

#include <stdio.h>

int fib(int n) {

 if (n <= 0) {

   return 0;

 }

 if (n <= 2) {

   return 1;

 }

 return fib(n-1) + fib(n-2);

}

int main(void) {

 for(int nr=0; nr<=20; nr++)

   printf("Fibonacci %d is %d\n", nr, fib(nr) );

 return 0;

}

Explanation:

The code is a literal translation of the definition using a recursive function.

The recursive function is not per se a very efficient one.

4 0
3 years ago
What should you do if an online friend asked to meet you after school? <br>ᵖˡˢˢˢˢ...​
soldier1979 [14.2K]

Answer:

I'm going to agree if they had some decision when we meet to each other because I want to meet them in personal.

Explanation:

That's my own opinion

8 0
3 years ago
Read 2 more answers
Other questions:
  • You are replacing the toner cartridge for an old laser printer. You are concerned that several internal components are reaching
    8·1 answer
  • Magnetic energy can build up in the atmosphere of the sun. When this energy is finally released, it is 10 million times greater
    15·1 answer
  • Please check my answer! (Java)
    8·1 answer
  • What is the correct term for a set of established guidelines for actions (which may be designated by individuals, teams, functio
    13·1 answer
  • Gabe Kelp is a fourteen-year-old goalie for the Soaring Eagles soccer team. He and his teammates are each creating a screen name
    11·1 answer
  • Suppose that the domestic production of computer games creates enjoyment for those who play the games. Domestic production of co
    14·1 answer
  • If a business filing bankruptcy has assets in the United States and one or more foreign countries, that business should file und
    6·2 answers
  • What have very strong chemical bonds and cannot be reshaped when heated.​
    6·1 answer
  • Use the drop-down menus to complete the sentences about the Calendar view Arrange command group.
    6·1 answer
  • 14 Copy a picture of a crane on the next page. Do not trace them. Make a freehand sketch. (2) 2 Look at the placed where the Mar
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!