write a program with a car's gas mileage (miles/gallon) and the cost of gas (dollars/gallon) as floating-point input, and output the gas cost for 20 miles, 75 miles, and 500 miles.

Answers

Answer 1

A program with a car's gas mileage (miles/gallon) and the cost of gas (dollars/gallon) as floating-point input, and output the gas cost for 20 miles, 75 miles, and 500 miles is given below:

#include <stdio.h>

int main(void) {

  double milesperGallon;

  double costperGallon;

  double totalCost;

  double totalCost2;

  double totalCost3;

 

  scanf("%lf", &milesperGallon);

  scanf("%lf", &costperGallon);

 

  totalCost = (20 / milesperGallon) * costperGallon;

  totalCost2 = (75 / milesperGallon) * costperGallon;

  totalCost3 = (500 / milesperGallon) * costperGallon;

 

  printf("%0.2lf", totalCost);

  printf(" %0.2lf", totalCost2);

  printf(" %0.2lf\n", totalCost3);/* Type your code here. */

  return 0;

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1


Related Questions

Programs remember numbers and other data in the computer's memory and access that data through program elements called?

Answers

Programs remember numbers and other data in the computer's memory and access that data through program elements variables.

What are variables?

A variable is a value that is subject to change based on external factors or data given to the application. A program typically consists of data that it uses while running and instructions that tell the machine what to execute.

Variables are storage units of computer memory. They are of different symbols.

Thus, variables are used by programs to store and access data, including numbers and other types of information.

To learn more about variables, refer to the link:

https://brainly.com/question/20983463

#SPJ1

kate decides to download an extension to her favorite browser to quickly store links on her spreadsheet software. while downloading the software, she ignores the opt-out check box that allows the extension to download a search toolbar.

Answers

Since Kate has decides to download an extension to her favorite browser to quickly store links on her spreadsheet software. the situation that has occurred here is the fact that option d: She has installed PUPs (potentially unwanted programs).

What is a potentially unwanted program (PUP)?

The term known as a potentially unwanted program (PUP) is known to be a kind of a program that is known to not be needed that is they are unwanted.

Even if there is the possibility that users are known to be consented to download it, the  PUPs is known to be made up of spyware, adware as well as dialers, and they can be downloaded in line  with a program that a given user wants.

Therefore, Since Kate has decides to download an extension to her favorite browser to quickly store links on her spreadsheet software. the situation that has occurred here is the fact that option d: She has installed PUPs (potentially unwanted programs).

Learn more about potentially unwanted programs from

https://brainly.com/question/25091456

#SPJ1

Kate decides to download an extension to her favorite browser to quickly store links on her spreadsheet software. While downloading the software, she ignores the opt-out check box that allows the extension to download a search toolbar.

What has occurred here?

a.

Kate has installed an injection.

b.

Kate has installed a backdoor.

c.

Kate has installed a Trojan.

d.

Kate has installed a potentially unwanted program (PUP).

How are mobile cameras and digital cameras related to each other?
O They are essentially the same thing the names are used interchangeably.
O They are not related except that they are both cameras.
O Digital cameras are a type of mobile camera.
O Mobile cameras are a type of digital camera.

Answers

Answer:

Mobile cameras are a type of digital camera.

Explanation:

please make my answer as brainelist

Which component of the operating system selects the next process to be executed when the cpu becomes idle?

Answers

The next process to be executed when the CPU becomes idle is CPU scheduling. The foundation of multi-programmed operating systems is CPU scheduling.

The operating system can increase computer productivity by moving the CPU between processes. Multiprogramming is a rather straightforward concept. The operating system must choose one of the processes in the ready queue to be performed whenever the CPU becomes idle. The short-term scheduler handles the selection procedure.

One of the processes in memory that are ready to run is chosen by the scheduler, and that process is given the CPU. The issue of choosing which task in the ready queue should receive the CPU is dealt with by CPU scheduling.

Learn more about CPU scheduling https://brainly.com/question/13107278

#SPJ4

You have just captured data using the socket.recv method into a variable named client_data. what can you use to convert client_data to a string?

Answers

We can see the image below for the code use to transform client_data to a string. The method above is majorly focused on the network buffers. The above code is part of socket programming python.

Two nodes on a network can connect and communicate with one another using socket programming. While the first socket listens on a specific port at an IP address, the other socket reaches out to the first socket to establish a connection. The server generates the listener socket as the client makes contact with it. They essentially lay the groundwork for online browsing. Simply explained, there is a server and a client. The first stages in socket programming are importing the socket library and building a simple socket.

Learn more about socket oriented programming https://brainly.com/question/12972718

#SPJ4

using the resources available in your library, find out what laws your state has passed to prosecute computer crime.

Answers

The laws my state has passed to prosecute computer crime is Information Technology ACT, 2002 - It is known to be the law that stated that it will deal with cybercrime as well as electronic commerce in all of India.

What are Cybercrime?

Cybercrime is known to be a type of a crime that entails the use of a computer as well as a network.

Note that the computer is one that can or have been used in the commission of any kind of crime, or it one that is said to be under target. Cybercrime is a type of crime that can harm a person's security as well as their financial health.

Therefore, based on the above, The laws my state has passed to prosecute computer crime is Information Technology ACT, 2002 - It is known to be the law that stated that it will deal with cybercrime as well as electronic commerce in all of India.

Learn more about computer crime from

https://brainly.com/question/13109173

#SPJ1

Headers print in the top margin _____ inch from the top of every page. a. one-quarter b. one-half c. three-quarters of a(n) d. one

Answers

Headers print in the top margin one-half inch from the top of every page.

What is Microsoft Word?

Microsoft Word can be defined as a word-processing software application that is designed and developed by Microsoft Inc., so as to avail its end users an ability to type, format, adjust, save and print text-based documents.

In Microsoft Word, headers for text-based documents are designed to print in the top margin one-half inch from the top of every page by default.

Read more on Microsoft Word headers here: https://brainly.com/question/26526086

#SPJ1

Type the correct answer in the box. Spell all words correctly.

George is creating a professional presentation for his client and wants to add his company’s logo, some images, and a video of his manufacturing unit into a slide. Which parts of the slide layout should he use?

George must use the [ ? ] of the slide layout to insert the company logo, images, and the video into his slide.

Answers

George must use the media of the slide layout to insert the company logo, images, and the video into his slide.

What is a slide?

A slide can be defined as a single page of a presentation that is made up of text-based information or images, which can be used to teach and educate an audience on a subject matter.

What is a slide layout?

In Computer technology, the slide layout feature of a presentation software’s interface such as Microsoft PowerPoint, can be used to insert two or more tables, logo, images, and the video in a slide and format the text on all slides.

In this scenario, George must use the media of the slide layout to insert the company logo, images, and the video into his slide.

Read more on slides here: brainly.com/question/7019369

#SPJ1

Which communication technology often takes the place of printed interoffice communication?.

Answers

Answer:

E-mail

Explanation:

the information mis infrastructure supports the day-to-day business operations and plans for multiple choice security breaches and theft. all of the answer choices are correct. malicious internet attacks. floods and earthquakes.

Answers

The information MIS infrastructure supports the day-to-day business operations and plans for: D. All of the above.

What is an information system?

An information system (IS) can be defined as a collection of computer systems and Human Resources (HR) that is used by a business organization or manager to obtain, store, compute, and process data, as well as the dissemination (communication) of information, knowledge, and the distribution of digital products from one location to another.

What is MIS?

In Business management, MIS is an abbreviation for marketing intelligence system and it can be defined as a type of information system (IS)  which is designed and developed to uses both informal and formal information-gathering procedures to obtain strategic information from the marketplace.

In conclusion, the information MIS infrastructure generally supports the daily business operations and plans for:

Security breaches and theft.Floods and earthquakes.Malicious internet attacks.

Read more on marketing intelligence system here: brainly.com/question/14951861

#SPJ1

Complete Question:

The information MIS infrastructure supports the day-to-day business operations and plans for ____________.

A. Security breaches and theft

B. Floods and earthquakes

C. Malicious internet attacks

D. All of the above

you are the ceo of an isp firm and you want to replace the existing routers of your clients with the new updated versions which are out in the market. what kind of a business document will you submit to request vendors to submit a good proposal for your product query?

Answers

The kind of a business document that  you will submit to request vendors to submit a good proposal for your product query is option b:  An RFP.

What is query in SQL?

A query is known to be a term that is said to be a form of request that is made  for data or information which is said to be obtained from a database table or the composition of tables.

The products query is known to be a tool that gives room for a person to be able to search for catalog items.  A Request for Proposal (RFP) is said to be a form of a business document and an Organization do  publish RFPs to ask for proposals from potential vendors for a specific project solution.

Therefore, The kind of a business document that  you will submit to request vendors to submit a good proposal for your product query is option b:  An RFP.

Learn more about product query from

https://brainly.com/question/15705471

#SPJ1

You are the CEO of an ISP firm and you want to replace the existing routers of your clients with the new updated versions which are out in the market. What kind of a business document will you submit to request vendors to submit a good proposal for your product query?

An MSA

An RFP

An MOU

An SOW

When an event occurs, the agent logs details regarding the event. what is this event called?
a. mib
b. get
c. trap
d. oid

Answers

If an event occurs, the agent logs details regarding the event. what is this event called GET.

The information in the agent log file is known to be the beginning of the log file, which is stated to show the agent's launch and handling of the services and configuration settings.

Keep in mind that the agent log also contains a history of the activities performed by the agent during runtime, along with any errors, and that it is utilised to investigate deployment issues.

As a result, if an event happens, the agent logs information about it. What is this GET event, exactly?

The agent monitoring services' startup and configuration settings are displayed at the log file's beginning. The sequence of agent runtime activity and any observed exceptions are also included in the agent log.

Learn more about agent logs:

https://brainly.com/question/28557574

#SPJ4

some programmers dislike return statements in the middle of a method. it is always possible to restructure a method so that it has a single return statement. rearrange the following lines of code to produce such a version of the firstspace method of the preceding exercise.

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that produce such a version of the firstspace method of the preceding exercise.

Writting the code:

import java.util.Scanner;

public class FindSpaces

{

   

   

   public static int firstSpace(String str)

   {

       boolean found = false;

       int position = -1;

       for(int i = 0; !found && i < str.length(); i++)

       {

           char ch = str.charAt(i);

           if(ch == ' ')

           {

               position = i;

               found = true;

           }

       }  

       return position;

   }

   

   public static void main (String[]args)

   {

       Scanner in = new Scanner (System.in);

       String inputStr = in.nextLine ();

       int firstSpacePosition = firstSpace (inputStr);

       System.out.println (firstSpacePosition);

   }

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

When would you want to take a photo with a large aperture? Select all that apply.

Taking a photo of a field of tulips
Taking a photo of a single bumblebee on a flower
Taking a photo where you want the background to be blurry
Taking a landscape photo were you want everything in focus

Answers

Answer:all  exept taking a photo wher you want the background to be blurry.

Explanation:

A large aperture means that the lens is letting in more light. And when more light is let in, that produces a shallow depth of field. You can use large apertures anytime you want to add dimension to your photos.

hope this helps=]

while working in a call center, you receive a call from latisha, who says she can no longer access the online reporting application for her weekly reports through her web browser. you ask your manager, and she tells you that the server team changed the application's url during an upgrade over the weekend. she asks you to make sure all the other technicians are aware of this change. what is the best way to share this information?

Answers

The best way to share this information is to: C. update the knowledge base article that contains the software application's URL in the call tracking application.

What is a website?

A website can be defined as a collective name which connote a series of webpages that are interconnected with the same domain name or Uniform Resource Locator (URL), so as to provide certain information to end users.

What is a Uniform Resource Locator?

In Computer technology, a Uniform Resource Locator (URL) can be defined as an Internet address of a website that identifies the method by which an Internet resource (website) should be accessed by end users.

In this scenario, the best way to share this information is to update the knowledge base article that contains the software application's Uniform Resource Locator (URL) within the call tracking application.

Read more on a Uniform Resource Locator here: https://brainly.com/question/14716338

#SPJ1

Complete Question:

While working in a call center, you receive a call from Latisha, who says she can no longer access the online reporting application for her weekly reports through her web browser. you ask your manager, and she tells you that the server team changed the application's URL during an upgrade over the weekend. she asks you to make sure all the other technicians are aware of this change. what is the best way to share this information?

a. Print a flyer with the new URL and post it on the wall in the call center.

b. Send out a mass email with the new URL to all the technicians.

c. Update the knowledge base article that contains the application's URL in the call tracking application.

d. Yell the new URL to all technicians sitting in the call center.

Data ________ helps to ensure data integrity by maintaining information in only one place.

Answers

Data  centralization helps to ensure data integrity by maintaining information in only one place.

When data is dispersed and not centralized, it is hard for team members to respond to simple questions. Simultaneously, incompatible and fragmented data will hinder innovation and reduce your organization's competitiveness. It also threatens data integrity.

Point-to-point connections assist businesses in optimizing workflows and automating the use of various online applications concurrently. However, while this method of handling data (from websites, social media platforms, marketing campaigns, and other sources) is efficient, it does not provide the most significance from your data.

To learn more about data centralization: brainly.com/question/17373547

#SPJ4

patricia has started a new interior design business, and wants to store designs in the cloud so her clients can review them. which of the following apps should she use for cloud storage?

Answers

Based on the above, the apps that  Patricia need to use for cloud storage is called a Drop box.

What is a Dropbox?

The Dropbox is known to be a Software that is said to be a file making work known to be made by the American company.

It has its headquartered to be in U.S. and it is known to be a software that offers a lot of services such as:

A cloud storage, File synchronizationPersonal cloud, A client software.

Note that a cloud storage is known to be a kind of cloud computing model that helps to save data on the Internet via the use of a cloud computing provider who helps to handle and runs the data storage as a form of service.

Therefore, Based on the above, the apps that  Patricia need to she use for cloud storage is called a Drop box.

Learn more about Drop box from

https://brainly.com/question/27327971
#SPJ1

Which description of the plain text file format is most accurate? uses binary code to store data can only be opened with special software supports text formatting like bold or italics used by programmers for source code

Answers

The phrase "uses binary code to store data" is the best way to describe the plain text file format.

A binary code uses a two-symbol system to represent text, computer processor instructions, or any other data. The binary number system's "0" and "1" are frequently used as the two symbols in this system. Each character, instruction, etc. is given a set of binary digits, also referred to as bits, by the binary code.

An eight-bit binary string, for instance, has 256 possible values and can thus represent a wide range of different things. Binary codes are used in computing and telecommunications for a number of different ways to encode data, like character strings, into bit strings. These techniques could make use of fixed-width or flexible strings.

Learn more about binary code https://brainly.com/question/28222245

#SPJ4

after developing a model, many case tools can generate program code, which impedes and slows down the implementation process.

Answers

The given statement that is after developing a model, many case tools can generate program code, which impedes and slows down the implementation process is false.

In computing, code generation is a step in the compiler's workflow that transforms intermediate representations of source code into forms that can be easily executed by the target system, such machine code. Multiple passes are frequently carried out by sophisticated compilers on various intermediate forms.

To begin writing in code, reverse-write the message you wish to communicate. Add a letter and a number between each letter in your original message after that. Your message will appear to everyone else as a collection of random characters and digits.

Tools that write code for you are called code generators. It's a really cool method for handling repetitious programming issues that can't be resolved by creating an abstraction.

Learn more about program:

https://brainly.com/question/26134656

#SPJ4

Write a split_check function that returns the amount that each diner must pay to cover the cost of the meal. the function has 4 parameters:

Answers

The function has 4 parameters:

def split_check(bill, people, tax_percentage = 0.09, tip_percentage = 0.15):

  tip = bill * tip_percentage

  tax = bill * tax_percentage

  total = bill + tip + tax  

  return total / people

bill = float(input())

people = int(input())

print("Cost per diner: " + str(split_check(bill, people)))

bill = float(input())

people = int(input())

new_tax_percentage = float(input())

new_tip_percentage = float(input())

Create a function named split check that takes four parameters, bill, persons, tax percentage and tip percentage (last two values are optional) (last two parameters are optional)

Use the percentages to compute the tip and tax inside the function. Add the bill, the tip, and the tax to get the final amount. The cost per person is then calculated by dividing the amount by the number of people.

Learn more about parameters:

https://brainly.com/question/28249912

#SPJ4

The performance variables productivity, absenteeism, and turnover are generally considered a part of the ________ behaviors in the exit-voice-loyalty-neglect framework.

Answers

The performance variables productivity, absenteeism, and turnover are generally considered a part of the exit and neglect behaviors in the exit-voice-loyalty-neglect framework.

What is absenteeism?

Absenteeism may be defined as a type of habitual pattern which involves the complete absence of an individual from a duty or obligation without any probable or good reason.

Exit and neglect behavior is a type of behavior that significantly illustrates the performance of numerous attributes on the basis of the exit-voice-loyalty-neglect framework. It includes exiting the organization, migrating to a distinct department, and provoking the dissatisfied state of affairs.

Therefore, the exit and neglect behaviors in the exit-voice-loyalty-neglect framework includes the performance variables productivity, absenteeism, and turnover.

To learn more about Absenteeism, refer to the link:

https://brainly.com/question/27202509

#SPJ1

The series of steps that describe exactly what each portion of a program is supposed to do is known as a(n)?

Answers

The series of steps that describe exactly what each portion of a program is supposed to do is known as an Algorithm.

What is algorithm and how it works?

An algorithm is known to be a kind of a coded formula that is said to be written into software and it is one if triggered can make the tech to take some  action to handle a problem.

Note that Computer algorithms work through the use of input and output and as such, The series of steps that describe exactly what each portion of a program is supposed to do is known as an Algorithm.

Learn more about Algorithm from

https://brainly.com/question/15802846
#SPJ1

Most voice over ip (voip) traffic over the public internet is not encrypted so anyone can listen in on conversations:
a. true
b. false

Answers

Answer:

True

Explanation:

Modifier __________ reports when an anesthesiologist is medically directing one crna.

Answers

Modifier QY reports when an anesthesiologist is medically directing one CRNA.

What is Anaesthesia?

This refers to the medical process where there is an induced loss of sensation in a body part, usually in preparation for surgery.

Hence, we can see that Modifier QY reports when an anesthesiologist is medically directing one CRNA and this is because it is the medical direction of one qualified nonphysician anesthetist by an anesthesiologist.

Therefore, the use of modifier Q is important as it makes a report when an anesthesiologist is medically directing one CRNA.

Read more about anaesthesia here:

https://brainly.com/question/9918511

#SPJ1

Your isp sent you the following information. default gateway 131.75.69.32/23 what is the proper subnet mask for this ip address (in dotted decimal format)?

Answers

Based on the above, the proper subnet mask for this IP address(in dotted decimal format) is known to be:

255.255.248.011111111.11111111.11111000.00000000

What is the subnet mask for?

A subnet mask is known to be a kind of a 32-bit number that is said to be formed by setting host bits to those of all 0s as well as the setting network bits to all  of the 1s.

Note that based on that, the  subnet mask tends to separates the IP address into what we call the network as well as the host addresses. The “255” address is known to be the one that is often  assigned to a broadcast address.

Therefore, Based on the above, the proper subnet mask for this IP address(in dotted decimal format) is known to be:

255.255.248.011111111.11111111.11111000.00000000

Learn more about subnet mask from

https://brainly.com/question/28256854

#SPJ1

what happens if i delete system 32 on my pc

Answers

Answer:

Your computer will start collapsing slowly. Many fundamental features such as using Start Menu to open programs and opening Windows programs won’t work.

Explanation:

Answer:

you crash id

Explanation:

A(n) _____ is a framework for describing the phases of developing information systems.

Answers

Systems development life cycle also known as SDLC

The number ____ is the standard dots per inch used for blogs, social media, webpages, and emails.

That question is for my photography class.

Answers

Answer:

72 dpi

Explanation:

72 DPI is standard for social media posts and others. It is not 300 DPI which is standard for print.

The standard dots per inch (DPI) used for blogs, social media, webpages, and emails can vary depending on the specific platform and device.

A common standard for these digital mediums is 72 DPI.

DPI refers to the resolution or sharpness of an image on a digital display. A higher DPI means more dots or pixels per inch, resulting in a clearer and more detailed image. On the other hand, a lower DPI means fewer dots per inch, resulting in a less sharp image.

For digital content displayed on screens, a DPI of 72 is often used because it strikes a balance between image quality and file size. This resolution is considered sufficient for viewing images online without causing excessive loading times or using excessive bandwidth.

It's important to note that when printing physical copies, a higher DPI is generally recommended to achieve better print quality. In print media, resolutions like 300 DPI are commonly used to ensure sharp and detailed prints.

Know more about dots per inch,

https://brainly.com/question/32108345

#SPJ3

montague e, xu j. understanding active and passive users: the effects of an active user using normal, hard and unreliable technologies on user assessment of trust in technology and co-user. applied ergonomics 2012; 43:702–712.

Answers

The purpose of this study was to comprehend how, in various technological environments, passive users judge the reliability of active users and technologies.

An experiment was created to change how various technologies operated as active people interacted with them and passive users watched them. The technology and partner were rated by both active and passive users.

Exploratory data analysis indicates that passive users formed opinions on technologies based on how they worked and how active users engaged with them.

The results of this study have significance for how technologies should be designed in settings where active and passive users engage with technology in various ways. Future research in this area needs to examine strategies that improve affective involvement and trust calibration.

Learn more about active and passive:

https://brainly.com/question/22600158

#SPJ4

The complete question is'' what are the effects of an active user using normal, hard and unreliable technologies on user assessment of trust in technology and co-user''

you physically cable access to the switch, are not prompted for a password and can access the ios this is the default operation

Answers

You physically cable access to the switch, are not prompted for a password, and can access the IOS. This is console default operation.

If you're like most people, you're probably used to having to enter a password in order to access a computer or device. However, when it comes to cabling into a switch, the default operation is to not require a password.

This means that anyone who has physical access to the switch can easily gain access to the IOS. While this may not be a big deal in some cases, it could be a serious security issue in others. If you're concerned about unauthorized access to your switch, make sure to set a password for the console.

Learn more here:

https://brainly.com/question/23540634

#SPJ4

Other Questions
The two regulatory mechanisms (controls) of the digestive system are _________ and __________ please help i need it fast What reasons does pope urban ll give to his listeners to undertake a holy war? A cyclist completes a journey of 500 m in 22 seconds in two parts. The first part with the speed of 10m/s and remainder of it in 50m/s, how far did she travel in each speed building trust for postoperative pain estimation: towards explainable machine-learning prediction based on multimodal indicators 4) Mary had some candy to give to her fivechildren. She first took seven pieces forherself and then evenly divided the restamong her children. Each child receivedfour pieces. With how many pieces didshe start? Amir has a collection of 936 trading cards. He wants to put themin boxes with 25 trading cards in each box. How many boxes willAmir fill? How many trading cards will be left over? If mABD=84, what are mABC and mDBC? D A B C (5x+1) (6x-5) Why is it important to know about the physical characteristics of the region in which a civilization lived? Find the y-intercept of the line y = -8/5x -4 A ________ takes data from the data manufacturers, cleans and processes the data, and then stores it. Reference the max process: for burgers, the customer entering at which time has the longest wait time? group of answer choices 9pm 7pm 6pm all customers have the same wait time 8pm A model rocket is launched with an initial upward velocity of 126. The rocket's height (in feet) after seconds is given by the following. Find all values of for which the rocket's height is 50 feet. all of the following are ways you can develop a personal brand: preparing a brief speech that describes who you are and what problems your skills can solve, creating an individual tagline that separates you from other candidates, and . group of answer choices showing how you are similar to other job candidates emailing all of your contacts a five-minute multimedia presentation that profiles your skills and experience creating an attractive rsum distributing business cards whenever you have an opportunity which sentence uses correct punctuation? it was an extremely hot day, 99 degrees with a heat index of over 100 degrees. we walked through the red oak nature center today; it was surprising how many bicyclists were there. we never found the answer to our question, in fact, were still looking to this day. The Maya and the Aztec organized their societies around? A key motivation behind early english settlement in the american colonies was? Add or remove commas Edward Cullen and I climbed the steep rocky, trailbecause we heard there would be free sodas at thesummit computech estimates it will need 100,000 chips a year if sales go as expected. but if sales are slow, fewer chips will be needed. this isnt an issue with supplier 2; its price is the same at any quantity. however, supplier 1s price per chip will be $1.95 if computech buys less than 90,000 during the year. if computech only needs 84,500 chips, which supplier would be more economical? For lindseys dissertation, she has e-mails sent out to people 4 times a day for 4 weeks. In these e-mails, she asks about current emotional experiences and activities. What method is she using?.