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
bagirrra123 [75]
3 years ago
5

Help users calculate their car's miles per gallon. Write a program to allow a user to enter the number of miles driven and the n

umber of gallons of gas used. The output should be the miles per gallon. Use a Do...While (post- test) loop to allow users to enter as many sets of data as desired. Using Raptor program

Computers and Technology
1 answer:
stiks02 [169]3 years ago
8 0

Answer:

The Raptor program for this question is given in the attachment below.

Explanation:

  • Run a loop until user decides to quit the program.
  • Get the number of miles and gallons from user as an input.
  • Use the formula to calculate miles per gallon.
  • Display the calculated value of miles per gallon.
  • Ask the user if they would like to continue using this program.

You might be interested in
Which year was the Apple 2 released? <br>A) 1979 <br>B). 1973 <br>C). 1980 <br>D). 1977​
sesenic [268]

Answer:

1977

Explanation:

Apple 2 was released in April 19th 1977

6 0
3 years ago
Read 2 more answers
A database planner names a field “Organic ingredients_3”. Why would this name Create possible problems in programming?
o-na [289]

Answer:

I think the answer is 2.

hope it will help you

4 0
3 years ago
Read 2 more answers
.When the ______ statement is executed, the variable or expression is evaluated and the resulting value is returned as the outpu
Yuki888 [10]

Answer:

return.

Explanation:

When a "return" statement is executed then the given expression or variable in the function is evaluated and the result will be returned by the function when the function is called.With the help of return statement, we can terminate the execution a method/function and then give control to the calling function.

Example:

#include <bits/stdc++.h>

using namespace std;

long long sq( int s )

{

 /* here "return" will first execute the expression and then

 return the value to the calling function i.e. sq() in the main

 function.

 */

   return( s * (long long)s );

}

int main()

{

   long long y;

   int x = INT_MAX;

// sq() will return a value and that value is store in the variable "y"

y = sq( x );

cout<<y<<endl;

return 0;

}

6 0
3 years ago
According to the "Solar Technology" article, what happens once solar energy is in the form of electricity? 
sladkih [1.3K]
C. it can be used to power a home , office, or supply the electriacal grid.
8 0
3 years ago
Read 2 more answers
. A wireless ……..is a device used to resolvewireless network connectivity problems.
Setler [38]

Answer:LAN adapter

Explanation:

LAN adapter is use to connect a computer to the network in an local area network. The connection is possible via a modem or a router which helps to reduce the wireless connectivity problem.

4 0
3 years ago
Other questions:
  • Regarding an intrusion detection system (IDS), stateful matching looks for specific sequences appearing across several packets i
    9·1 answer
  • A good reference point for determining the position of a line or curb in front of you is your __________ . A. Hood ornament B. L
    10·1 answer
  • 1.What is a project methodology?
    9·1 answer
  • The control programs managing computer hardware and software perform the _________ function to control and prioritize tasks perf
    8·1 answer
  • TRUE OR FALSE: If I ask you to span multiple rows in your table, that means that two columns will merge together
    5·1 answer
  • Implement a Java program using simple console input &amp; output and logical control structures such that the program prompts th
    15·1 answer
  • Which kind of image is indispensable and needs added text to go with it?
    13·1 answer
  • CLS
    12·1 answer
  • How would you write out the Python code to PRINT the answer to 5 times 2?
    9·1 answer
  • Which of the cached information retrieved will be the same as what is stored in the original server where the data is maintained
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!