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
ddd [48]
3 years ago
12

Help me guys pleassssssssse​

Computers and Technology
1 answer:
Readme [11.4K]3 years ago
8 0

Answer:

is there a word bank??

Explanation:

You might be interested in
Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the g
Allisa [31]

Answer:

The C program is given below.

#include<stdio.h>

int main() {

   double speed, gas_cost, cost_1, cost_10, cost_50, cost_400;    

   printf("Enter car's speed in miles/gallon  ");

   scanf("%lf", &speed);    

   printf("Enter cost of gas in dollars/gallon  ");

   scanf("%lf", &gas_cost);    

   // fraction gives the gallons of gas needed for 1 mile.

   // gallons of gas needed for 1 mile * cost of 1 gallon of gas = gas cost for 1 mile

   cost_1 = (1/speed)*gas_cost ;    

   // cost of gas for 10 miles

   cost_10 = cost_1 * 10;

   printf("Cost of gas for 10 miles in dollars is  ");

   printf( "%0.2f", cost_10 );

   printf("\n");    

   // cost of gas for 50 miles

   cost_50 = cost_1 * 50;

   printf("Cost of gas for 50 in dollars miles is  ");

   printf( "%0.2f", cost_50 );

   printf("\n");    

   // cost of gas for 400 miles

   cost_400 = cost_1 * 400;

   printf("Cost of gas for 400 in dollars miles is  ");

   printf( "%0.2f", cost_400 );

   printf("\n");    

   return 0;

}

OUTPUT

Enter car's speed in miles/gallon  20                                                                                          

Enter cost of gas in dollars/gallon  30                                                                                        

Cost of gas for 10 miles in dollars is  15.00                                                                                  

Cost of gas for 50 in dollars miles is  75.00                                                                                  

Cost of gas for 400 in dollars miles is  600.00  

Explanation:

This program takes user input for cost of gas in dollars and speed of the car in miles per gallon.

Next, gallons needed for 1 mile is calculated.  

cost_1 = (1/speed)*gas_cost ;

Following this, gallons needed for 10 miles, 50 miles and 400 miles are calculated.

cost_10 = cost_1 * 10;

cost_50 = cost_1 * 50;

cost_400 = cost_1 * 400;

These values are displayed on the screen with two decimal places by using printf( "%0.2f", your_value).

All the variables needed in this program are declared as double.

All the instructions mentioned have been implemented. This program can be tested for all possible positive numbers.

6 0
4 years ago
Read 2 more answers
Active space is important in which type of photograph?
Artemon [7]
Active space is important in d Motion <span>photography. Active space is required while you need to take picture while you or the object is moving.</span>
5 0
3 years ago
Read 2 more answers
Spam is _____.
DiKsa [7]

Answer:

any kind of unwanted, unsolicited digital communication that gets sent out in bulk

3 0
2 years ago
Machine language is made up of which following codes
denis-greek [22]
Machine language is made up of an <span>opcode </span>
3 0
3 years ago
If you want to prioritize downloads of your mobile app instead of visits to your mobile site, you should: a) add a sitelink exte
scoray [572]

Answer:

create a Universal App campaign

3 0
3 years ago
Other questions:
  • Match the following technologies with their applications.
    9·1 answer
  • 6.31 LAB: Leap year - functions A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer
    9·2 answers
  • The mass of a textbook is about 1.25 kilograms. Aproximately, how many ounces is this?
    10·1 answer
  • ____ uses markup to define the structure and layout of a web document.
    11·1 answer
  • What are reserved words in C programming?
    9·1 answer
  • . what action does the following a default operator perform? int a, b, c; a = b + c;
    14·1 answer
  • Write a program that performs the following tasks: Display a friendly greeting to the user Prompt the user for the value to conv
    13·1 answer
  • Consider the following two code segments. In both, assume that n is an integer variable that has been declared and initialized.
    10·1 answer
  • Aarti, a museum employee, has created a table in access titled “Roman Achitecture”. She has included a field that links users im
    8·1 answer
  • Choose the answer that best completes the visual analogy.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!