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
Temka [501]
3 years ago
11

Driving is expensive. Write a program with two inputs, a car's miles/gallon and the cost of gas/gallon both represented as doubl

e variables, and output the total drive cost for 10 miles, 50 miles, and 400 miles, all on the same line, each separated by a single space.
Output each floating-point value with two digits after the decimal point, which can be achieved by executing the command
cout << fixed << setprecision(2); once before all other cout statements. That is done only once in the code before any cout stamtent.

Ps:(when i run the program it says this-
Enter miles per Gallon:
Gas cost for ten miles :-nan
Gas cost for fifty miles :-nan
Gas cost for four hundred miles:-nan
Computers and Technology
1 answer:
Nataly_w [17]3 years ago
6 0

Answer:33

Explanation:

You might be interested in
Read the four detective reports and the combined affidavit and warrant for the M57 Patents case. Write a one- to two-page paper
Fantom [35]

Answer:The 2009-M57-Patents scenario tracks the first four weeks of corporate history of the M57 Patents company. The company started operation on Friday, November 13th, 2009, and ceased operation on Saturday, December 12, 2009. As might be imagined in the business of outsourced patent searching, lots of other activities were going on at M57-Patents.

Two ways of working the scenario are as a disk forensics exercise (students are provided with disk images of all the systems as they were on the last day) and as a network forensics exercise (students are provided with all of the packets in and out of the corporate network). The scenario data can also be used to support computer forensics research, as the hard drive of each computer and each computer’s memory were imaged every day.

Explanation:

4 0
3 years ago
The strategy in which you learn something by repeating it over and over is called a. Revision c. Reduction b. Relearning d. Repe
Pachacha [2.7K]

Answer:

D.Repetition

Explanation:

REPETITION can be seen a the way of repeating a word over and over again or the way of doing something over and over again.

Example a person who is eager to learn or pronounce the word "Success" may continue to repeat the word over and over again as Success, Success, Success untill that person can either write or pronounce the word.

Therefore the strategy in which a person or an individual learn something by repeating it over and over is called REPETITION.

3 0
3 years ago
Read 2 more answers
1 white an object selected pressing CTRL D will
dsp73
1. B.
2.True
3.either B. or D.
4. I think it's a. or b.
7 0
3 years ago
Carrie is creating a personal balance sheet. The heading includes the period of time that the balance sheet
frez [133]

Answer:

the answer is A

Explanation:

carries balance sheet ( 2013)

4 0
3 years ago
3.3 Code Practice: Question 1
NeX [460]

Answer:

Question1:

day = int(input("Enter in Numeric Today's day:"))

if (x == 15 or x == 30):

  print("You have a payday today!")

if (x != 15 and x != 30):

  print("Its is not certainly a payday today but dont feel bad.")

Question 2:

red = int(input("Enter the value for red: "))

green = int(input("Enter the value for green: "))

blue = int(input("Enter the value for blue: "))

if (red > 255 or red < 0):

  print("The value of Red is not correct.")

if (green > 255 or green < 0):

  print("The value of Green is not correct.")

if (blue > 255 or blue < 0):

  print("The value of Blue is not correct.")

Explanation:

Please check the answer section.

6 0
3 years ago
Other questions:
  • The success of Eye of the Storm exemplifies:
    14·2 answers
  • What is the definition of online communication
    15·1 answer
  • Which technological innovations along history allowed the appearance of the computer
    9·2 answers
  • What happens once the Insert tab is used in PowerPoint to insert a chart into a presentation?
    7·1 answer
  • Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Write a statement that p
    8·1 answer
  • What is the primary benefit of using solid state storage
    7·1 answer
  • Write Python programs to solve the following two problems. Your programs should be named according to the problem descriptions a
    9·1 answer
  • Analyzing computer systems to gather potential legal evidence is computer ________. enforcement forensics detective work analysi
    11·1 answer
  • Tips to identify email scams.
    7·1 answer
  • Scenario: The deputy incident commander will be replacing the current incident commander, who needs to attend to a family emerge
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!