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
suter [353]
3 years ago
15

Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 5

0 miles, and 400 miles.
Ex: If the input is 20.0 3.1599
The output is: 1.57995 7.89975 63.198
Computers and Technology
1 answer:
Anna007 [38]3 years ago
8 0

Answer:

Explanation:

The following is written in Python. It is a function that takes in two parameters called miles for miles/gallon and gasCost for gas dollars/gallon. Then it creates three variables for each number of miles used (10,50,400) and calculates the total cost for each. Finally, it returns all three costs to the user

def mileage(miles, gasCost):

   tenMiles = (10.00 / miles) * gasCost

   fiftyMiles = (50.00 / miles) * gasCost

   fourHundredMiles = (400.00 / miles) * gasCost

   return tenMiles, fiftyMiles, fourHundredMiles

You might be interested in
Why do nonprofit agencies include blogs on there website?
Katarina [22]
It might be non profit, but they are still getting views and paid for doing what they need to. It's simply called advertising.
3 0
4 years ago
The CIBER network provides a link between the human resource and technology needs of a company with the research capacities and
Elan Coil [88]

The CIBER network provides a link between the human resource and technology needs of a company with the research capacities and language training found at universities.

What is CIBER network?

The Omnibus Trade and Competitiveness Act of 1988 established the Centers for International Business Education and Research (CIBERs) to increase and promote the nation's capacity for international understanding and competitiveness.

The United States administers it. The CIBER network, established by the Department of Education under Title VI, Part B of the Higher Education Act of 1965, connects the manpower and technological needs of the US business community with the international education, language training, and research capacities of universities across the country.

The thirty-one Centers provide regional and national resources to businesspeople, students, and educators at all levels.

To know more about network, visit: brainly.com/question/1326000

#SPJ4

3 0
1 year ago
Estan clasificadas como piezas alargadas y dentada<br>​
hodyreva [135]

Answer:

Estan clasificadas como piezas alargadas y dentada

when you turn the setence above me to english it means

They are classified as elongated and toothed pieces

Explanation:

7 0
3 years ago
Joe is examining the logs for his web server and discovers that a user sent input to a web application that contained the string
alexira [117]
SQL Injection Attack
6 0
3 years ago
In Activity 6.4 we asked you to compare the experience of playing the game of Snake on a
alexandr402 [8]

Answer:

start with what you know

Explanation:

8 0
3 years ago
Other questions:
  • What is it called when someone attempts to befriend you online for the purpose of stealing confidential or sensitive information
    10·1 answer
  • Which of the following statements will assign the contents of the Text property of a Textbox control named txtInput into the Tex
    10·1 answer
  • According to the video, who is the most common employer for Foresters?
    14·2 answers
  • Which of the following lists contains the five essential elements of a computer?
    5·1 answer
  • What technical elements can a film director manipulate to achieve the final product, conveying his ideology and vision?
    11·1 answer
  • What option from the format tab should you use to remove unwanted parts of a picture
    8·1 answer
  • Why does Microsoft release new versions of its Windows operating system every few years?
    9·2 answers
  • Pixar is a company that creates a huge amount of images, audio recordings, and videos, and they need to decide what compression
    11·1 answer
  • What dose a hard drive do
    8·2 answers
  • Which device is used to direct the flow of data on a computer network?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!