4.22 lab*: program: automobile service invoice(1) output a menu of automotive services and the corresponding cost of each service. (2 pts)ex:davy's auto shop servicesoil change -- $35tire rotation -- $19car wash -- $7car wax -- $12

Answers

Answer 1

To write the code for this exercise, we must be familiar with Python's computational language.

The attachment contains the code.

As a result, the Python code can be written as follows:

0 service1 cost

0 service2 cost

print("Services at Davey's Auto Shop")

print("Oil change: $35; Tire rotation: $19; Car wash: $7; Car wax: $12;"

input = service1 ("Select first service: ")

product2 = input ("Select second service: ")

If "Oil change" is service 1, then

35 service1 cost

Tire rotation: elif service1 == true

cost1 service1 = 19

"Car wash," if service1 is true:

cost service1 = 7

"Car wax" if service1 is true:

cost service1 = 12

if (service1) == "-":

service 1 equals "No service"

0 service1 cost

When service2 equals "Oil change,"

35 service2 cost

Tire rotation: elif service2 == true

cost2 service2 = 19

"Car wash" if service2 is true:

cost2 service2 = 7

"Car wax" if service2 is true:

cost2 service2 = 12

To know more about python click on the link:

https://brainly.com/question/18502436

#SPJ4


Related Questions

write a program that takes three integers as input: low, high, and x. the program then outputs the number of multiples of x between low and high inclusive. ex: if the input is: 1 10 2 the output is: 5 python

Answers

#Code in python

print("ENTER LOW, HIGH AND X")

low=int(input())

high=int(input())

x=int(input()) c=0

for i in range(low,high):  

if i%x==0:  

c++

print(c)

Python is an object-oriented, dynamically-semantic, interpreted high-level programming language. Its high-level built-in data structures, along with dynamic typing and dynamic binding, making it particularly appealing for use in rapid application development as well as as a scripting or glue language to join together preexisting components.  Python's syntax is also straightforward and quick to learn. Python allows packages and modules, which promotes the modularity and reuse of code in programs. For all popular systems, the Python interpreter and the comprehensive standard library are free to download in source or binary form and can be shared without restriction. Because Python increases efficiency, programmers frequently fall in love with it. The cycle of edit-test-debug is extremely quick because there is no compilation stage. Python scripts are simple to debug because a defect or incorrect input will never result in a segmentation fault. Instead, an exception is raised when the interpreter finds a mistake.

Learn more about python here:

https://brainly.com/question/13437928

#SPJ4

modify short names by deleting the first element and changing the last element to joe. sample output with input: 'gertrude sam ann joseph' ['sam', 'ann', 'joe']

Answers

The above problem is a simple programming prompt resolved using Phyton. See the relevant code below.

What is Phyton?

Guido van Rossum created Python, an interpreted, object-oriented, high-level programming language with dynamic semantics. It was first published in 1991.

Its design concept prioritizes code readability by employing heavy indentation. Python is garbage-collected and dynamically typed. It is compatible with a variety of programming paradigms, including structured, object-oriented, and functional programming.

Hence the above result is achieved using the following code:

user_input = input()

short_names = user_input.split()

short_names.pop(0)

short_names[-1] = 'Joe'

print(short_names)

The above code can be run on a Phyton compiler online or offline.

Learn more about Phyton:
https://brainly.com/question/26497128
#SPJ1

Full Question:
Modify short_names by deleting the first element and changing the last element to Joe. Sample output with input: 'Gertrude Sam Ann Joseph'. Solve this problem with python

Suppose that you want to create a backup of your entire data which is around 10gb. would it be reasonable to use dvds for the purpose of creating this backup? what about bds (blu-ray disks)?

Answers

Answer:yes it would

Explanation:

question 3. (30 pts) (6 points each) consider the following relations. the key fields are bold and underlined. employee (ssn, name) project1 (id, name, mgr ssn) work on (ssn, id, year)

Answers

Designed for managing data stored in a relational database management system, SQL is a database language. IBM created SQL for the first time in the early 1970s (Date 1986).

The original SEQUEL (Structured English Query Language) version was created to access and handle data held in IBM's System R quasi-relational database management system. The first SQL implementation to be made commercially available was Oracle V2, which was released for VAX systems in the late 1970s by Relational Software Inc., later to become Oracle Corporation. In this chapter, we'll concentrate on utilizing SQL as a data defining language to build databases and table architectures (DDL).

Learn more about database here-

https://brainly.com/question/6447559

#SPJ4

PLEASE HELP ASAP!! WILL GIVE 50 POINTS
Include a diagram (using squares, circles, arrows, etc.) showing the relationship between the end points and the intervening network at this layer, the layer is network access.

Answers

Answer: is this it?

Explanation:

What is the possible output of the following?

r = random.random() + 1

print(r)

Group of answer choices

1.0 <= r < 2.0

1.0 <= r <= 2.0

1.0 < r <= 2.0

1.0 < r < 2.0

Answers

Considering the definition of the python function random, a possible output for the following code is:

1.0 <= r <= 2.0.

What is the possible output for the given code?

The calculation of the value of r is given as follows:

r = random.random() + 1

The command random.random() returns a random value between 0 and 1, inclusive.

Then, the number one is added to the value stored at variable r.

The minimum value that can be stored at r is of 1, when the function random.random() returns it's minimum value of 0, then r = 0 + 1 = 1.The maximum value that can be stored at r is of 2, when the function random.random() returns it's maximum value of 1, then r = 1 + 1 = 2.

Then the interval that represents the possible outputs for the function is:

1.0 <= r <= 2.0.

More can be learned about python functions at https://brainly.com/question/15185464

#SPJ1

zach wants to install windows 10 over his existing copy of windows 10. he wants to keep his personal files, apps, and windows settings but freshen up all windows components. he currently has a usb drive with a windows 10 iso. what type of installation will you recommend for zach? a. custom installation b. fresh start installation c. repair upgrade d. network installation

Answers

Answer:

C. Repair upgrade

Explanation:

This option will allow personal files, apps, and settings to be saved while upgrading to Windows 10.

The type of installation you will recommend for Zach is a repair upgrade. The correct option is c.

What is a repair upgrade?

A repair upgrade resolves Windows system problems while retaining your files, programs, and preferences. When your Windows 10 installation becomes erratic or slow, you will attempt anything to solve it, including system file checker, DISM, and check disk, to name a few.

To repair and upgrade to Windows 10, follow these steps:

Close all active applications.Insert the Windows DVD into the DVD drive of your computer.Select Install Now in the Setup window.Select Go online to get the most recent updates for installation (recommended).If prompted, enter the CD key.

Therefore, the correct option is c. repair upgrade.

To learn more about repair upgrades, refer to the below link:

https://brainly.com/question/29242603

#SPJ2

(I already wrote the definitions.) Define: arch, vault and dome. Make a schematic diagram of each of them.

Please help me with the diagram

Answers

An arch, as used in architecture, is any method other than a lintel used to cross an aperture. Curves define true arches.  A vault is an arched ceiling or roof made of stone, brick, or concrete; wood or plaster may also be used as an imitation.  A dome is a circular base-mounted vault with an equal curvature.

Who developed the arch vault and dome?

The Etruscans taught the arch to the ancient Romans, who improved it and were the first architects and builders in Europe to use it to its full potential for structures above ground. The benefits of the arch, the vault, and the dome were fully appreciated by Roman builders before anyone else in Europe or possibly the entire world.

Note that a vault is a brick, stone, or concrete ceiling that is said to be constructed using the arch design principle. A tunnel vault, also known as a barrel vault, is a semicircular extension of an arch that resembles a tunnel and can be imagined as an uninterrupted line of arches packed close together, one behind the other.

Learn more about vault and dome from

https://brainly.com/question/8555535

#SPJ1

a. host a is sending host b a large file over a tcp connection. assume host b has no data to send host a. host b will not send acknowledgments to host a because host b cannot piggyback the acknowledgments on data. b. the size of the tcp rwnd never changes throughout the duration of the connection. networks, homework 3. instructor: rajendra v. boppana 220918 2 c. suppose host a sends host b a large file over a tcp connection. the number of unacknowledged bytes that a sends cannot exceed the receive buffer size. d. suppose host a sends a large file to host b over a tcp connection. if the sequence number for a segment of this connection is m, then the sequence number for the subsequent segment will necessarily be mm 1. e. the tcp segment has a field in its header for rwnd. f. suppose that the last samplertt in a tcp connection is 1 sec. the current value of timeoutinterval for the connection will be ≥ 1 sec. g. suppose host a sends one segment with sequence number 38 and 4 bytes of payload over a tcp connection to host b. in this same segment, the acknowledgment number is necessarily 42.

Answers

A)False Host b can send acknowledgment.

B)False rwnd can change during TCP connection.

C)True rwnd is less than rcvr buffer.

D)False It is not required.

E) True size of file is 16 bite.

G)False acknowledgment number will not be 42.

The Transmission Control Protocol (TCP), a communications standard that enables computer hardware and software to exchange messages over a network, is referred to by the abbreviation "TCP." It is made to transmit packets across the internet and guarantee the successful transmission of data and messages through networks. Numerous internet applications, including as the World Wide Web (WWW), email, File Transfer Protocol, Secure Shell, peer-to-peer file sharing, and streaming video, heavily rely on TCP. To provide dependable packet transfer over IP, a transport protocol called TCP is used. Many of the issues associated with packet-based messaging, including lost, out-of-order, duplicate, and corrupted packets, are addressed by the mechanisms built into TCP.

Learn more about TCP here:

https://brainly.com/question/23854731

#SPJ4

various cipher machines were developed and used during the two world wars. for example, enigma, schlusselzusatz, purple, etc. it was believed that keeping secret the design of the machines will help boost the security.

Answers

The Enigma machines that Germany utilized in World War II but that the Allies cracked are the most infamous example of cryptography.

A tangible object that carries out a cryptographic function (e.g., random number generation, message authentication, digital signature generation, encryption, or key establishment). For cryptographic operations, a cryptographic device must use one or more cryptographic modules. The number of remaining Enigma machines is unknown, however it is believed that there are a few more "hiding." It is known that there are roughly 300 Enigma devices in museums and private collections around the world.

By doing this, a rotor machine generates an intricate polyalphabetic substitution cipher that alters with each keystroke.

Learn more about cryptographic here-

https://brainly.com/question/14278859

#SPJ4

Cesar has downloaded some music and wants to save it to his PC. What type of file extension should he use?

A.
MP3

B.
ZIP

C.
MP4

D.
PNG

Answers

Answer:

A. MP3

Explanation:

ZIP file extensions are used to compress a file. This is used in the case of files that are too large and are needed to be compressed and to be extracted for later use.

MP4 file extensions are used to indicate that the file is a video. MP4 is just one of the many video file extensions.

PNG which stands for Portable Network Graphics, is used when saving pictures or images. I save my Photoshop and Canva designs in PNG because they seem more realistic in that file format.

It cannot be any of the other options as I have explained their use above. Besides, MP3 file extensions are used in saving music or audio files.

when configuring the virtual network for a vm in vmware workstation, which network adapter option should you choose if you want the vm to have an ip address that works on the physical network?

Answers

When setting up a virtual network for a virtual machine in VMware Workstation, you should choose the Bridged network adapter option if you want the virtual machine's IP address to work on the actual network.

When it's not possible to connect devices directly to a router or switch, a bridge enables you to connect two or more network segments together, allowing devices to join the network. If your business or home is a mixed-network setting, network bridging can be helpful. A mixed network is one that consists of some computers connected via Ethernet cables and others using wireless routers. A series of desktop hypervisor solutions called VMware Workstation enables users to run virtual machines, containers, and Kubernetes clusters.

learn more about Bridge network here

https://brainly.com/question/10920464

#SPJ4

tomio has been working as an assistant database analyst for three months. during a recent conversation with his supervisor, tomio explained his goal "to improve his computing skills by the end of the year." is this a smart goal?

Answers

Is this a SMART goal: B) No, SMART goals must be specific and measurable.

What is a SMART goal?

A SMART goal can be defined as a well-established tool that can be used by an individual, a project manager or business organization (company) to plan (create), track, and achieve (accomplish) both short-term and long-term goals.

Generally speaking, SMART is a mnemonic acronym and it comprises the following elements:

SpecificMeasurableAchievable or Attainable.Relevancy (realistic).Time bound (timely)

In conclusion, we can reasonably infer and logically deduce that Tomio's goal is not a SMART goal because it is neither specific nor measurable.

Read more on SMART goal here: brainly.com/question/18118821

#SPJ1

Complete Question:

Tomio has been working as an assistant database analyst for three months. During a recent conversation with his supervisor, Tomio explained his goal "to improve his computing skills by the end of the year." Is this a SMART goal?

A) Yes, SMART goals should set a timeline for being achieved.

B) No, SMART goals must be specific and measurable.

C) No, SMART goals must have a target date.

D) Yes, SMART goals should be results-oriented.

your company has hired an outside security firm to perform various tests of your network. during the vulnerability scan you will provide that company with logins for various systems to aid in their scan. what best describes this?

Answers

In course of the vulnerability scan you will provide that company with logins for various systems to aid in their scan, the term that best describes this is A privileged scan.

What is the  privileged scan about?

Intrusive scans try to take advantage of vulnerabilities once they are discovered. Use intrusive scanning with caution as it may interrupt your operational systems and processes, raise difficulties for your staff and customers, and highlight the potential danger and effect of a vulnerability.

Note that Credential-based vulnerability assessments, which use the admin account, do a more thorough examination by searching for issues that are hidden from network users.

Learn more about vulnerability scan from

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

e usually use a statistic to help determine which model the evidence points towards. what is a statistic that we can use to compare outcomes under emily’s model to what was observed? assign valid stat to an array of integer(s) representing test statistics that emily can use:

Answers

Social media have significantly increased in popularity in recent years and give people the chance to network, interact, and share globally.

Social networking sites are becoming an increasingly significant part of students' daily life, thus it's crucial to comprehend how technology affects the learning process. Even though university students use social media frequently, little research has examined in-depth how much they are embracing particular social media for learning. This study used a mixed-methods approach with three stages to look into how students utilize social media, and particularly social network sites, to promote learning. In the first step, data from an online survey of 812 university students regarding their use of social media was statistically analyzed.

Learn more about Network here-

https://brainly.com/question/15088389

#SPJ4

Match the items with their respective descriptions.

to navigate between worksheets

to protect a worksheet

to change the position of a worksheet

to rename a worksheet

select a password

arrowRight

drag the worksheet tab to the new position

arrowRight

double-click the worksheet tab

arrowRight

press Ctrl and Page Up or Page Down keys

arrowRight

Answers

Answer:  Here are the correct matches:

Select a Password  ---->   to protect a worksheet

drag the worksheet tab to the new position  ---->   to change the position of a worksheet

double-click the worksheet tab  ---->   to rename a worksheet

Press Ctrl and Page Up or Page Down keys  ---->   to navigate between worksheets

Explanation:  Confirmed correct.  :)

100 POINTS. BAD ANSWERS WILL BE REPORTED. GOOD ANSWERS MARKED FOR BRAINLIEST. WON'T HESITATE TO REPOST.
Which of the following programs are command-line programs?

All programs written in IDLE
Programs that are called via CLI
Programs that are called via graphics
Programs that need GUI to execute

Answers

Answer:  The correct answer is Programs that are called via CLI

Explanation:  Command Line Interface applications (CLI) are typically used to call other CLI programs, batch files or command prompt executables. Command-line interfaces are also referred to as command-line user interfaces, console user interfaces, and character user interfaces, though their intended use varies. CLI input can be entered as input commands by the keyboard and then run by the computer.

Answer:

Programs that are called via CLI.

the other options are non-examples because they are a different category of programs (GUI, graphics, and IDLE).

Please help me ASAP!!!

Answers

Answer:

The answer to 6 = Systems,

The answer to 9 = Web.

you have an azure virtual machine named computer5 and a recovery services vault named vault5. computer5 contains the following data disks: diska has a size of 512 gb diskb has a size of 30 tb diskc has a size of 26 tb diskd has a size of 2.0 tb which data disks can you back up to vault5?

Answers

The data disks that you can back up to Vault5 are: DiskA, DiskB, DiskC, and DiskD.

What is a hard disk drive?

A hard disk drive can be defined as an electro-mechanical, non-volatile data storage device that is made up of magnetic disks (platters) that rotates at high speed.

What is virtualization?

Virtualization simply refers to the creation of an abstract layer over computer hardware primarily through the use of a software, in order to enable the operating system (OS), storage device, server, etc., to be used by end users over the Internet such as a Virtual machine (VM).

In Computer technology, a Virtual machine (VM) that is integrated with a recovery service can be used to back up hard disk drive with a data storage space that ranges from 512 gigabyte (GB) to 30 terabyte (TB).

Read more on hard-disk here: brainly.com/question/26382243

#SPJ1

Complete Question:

You have an Azure virtual machine named Computer5 and a Recovery Services vault named Vault5. Computer5 contains the following data disks:

• DiskA has a size of 512 GB

• DiskB has a size of 30 TB

• DiskC has a size of 26 TB

• DiskD has a size of 2.0 TB

Which data disks can you back up to Vault5?

Select only one answer.

DiskA only

DiskB only

DiskC only

DiskD only

DiskA, DiskB, DiskC, and DiskD

Answer: DiskA, DiskB, DiskC, and DiskD

Explanation: 512 gigabyte (GB) up to 30 terabyte (TB) is supported.

23.21 lab: reverse vector complete reverse() function that returns a new character vector containing all contents in the input argument reversed. ex: if the input vector is: ['a', 'b', 'c'] then the returned vector will be: ['c', 'b', 'a'] 424384.2897294.qx3zqy7

Answers

#include <bits/stdc++.h>

//Defining our vector.

std::vector<char> idx;

int main(int argc, char* argv[]) {

   //We will fill our vector with input from the user.

   std::cout << "How many characters: ";

   int a; std::cin >> a;

   for(int i=0;i<a;i++) {

       char temp;

       std::cin >> temp;

       idx.push_back(temp);

   }

   //Reversing.

   reverse(idx.begin(), idx.end());

   //Clearing the window first

   system("clear");

   //Print the reversed vector.

   std::cout << "Reversed: [";

   for(auto const& i: idx) {

       if(i==idx.at(a-1)) std::cout << i;

       else std::cout << i << ", ";

   }

   std::cout << "]\n";

   return 0;

}

The designers of a database typically begin by developing a​ __________ to construct a logical representation of the database before it is implemented.

Answers

The designers of a database typically begin by developing a​ Data model to construct a logical representation of the database before it is implemented.

What is a data model?

A data model  in database is a type of data model that determines the logical structure of a database. It fundamentally determines in which manner data can be stored, organized and manipulated. They are three primary data models namely: relational, dimensional, and entity-relationship (E-R).

Learn more on Database model from:

https://brainly.com/question/17081023?referrer=searchResults

#SPJ4

question 3 scenario 1, continued now that you’ve created a data frame, you want to find out more about how the data is organized. the data frame has hundreds of rows and lots of columns. assume the name of your data frame is flavors df. what code chunk lets you review the structure of the data frame?

Answers

A code chunk which lets you review the structure of the data frame is  str(flavors_df)

What is a data frame?

A data frame is a two-dimensional table or array-like structure made up of rows and columns. It is typically used for the storage of data using R programming language in R Studio by.

In this scenario, "str()" refers to the function that allows the programmer to review the structure of the data frame while "flavors_df" refers to the name of the data frame which the "str()" function will take for its argument.

Here's the Complete Question:

Now that you’ve created a data frame, you want to find out more about how the data is organized. The data frame has hundreds of rows and lots of columns. Assume the name of your data frame is flavors_df. What code chunk lets you review the structure of the data frame?

str(flavors_df)

summarize(flavors_df)

select(flavors_df)

filter(flavors_df)

Learn more on data frame from:

brainly.com/question/28209816

#SPJ4

when you select an object in the visual studio designer, the object's size, color, text, and other characteristics are displayed in the window. question 73 options: object properties editing designer

Answers

Color is not merely utilized for aesthetics in Visual Studio; it is largely employed as a tool for communication.

Use color sparingly and save it for special occasions only:

Convey significance or relationship (for example, platform or language modifiers).

Draw interest in (for example, indicating a status change).

The UI's readability should be improved, and landmarks should be provided.

Increase in attractiveness.

In Visual Studio, there are numerous choices for choosing colors for UI elements. It can be challenging to know which option to choose or how to use it properly at times. You will benefit from this subject if:

Recognize the various services and platforms that Visual Studio uses to define colors.

Choose the appropriate answer for the specified element.

Use the option you selected correctly.

To know more about visual studio click on the link:

https://brainly.com/question/14287176

#SPJ4

What term is used to describe how mobile computing allows individuals to initiate real-time contact with other systems anywhere, any time since they carry their mobile device everywhere?.

Answers

Broad reach  term is used to describe how mobile computing allows individuals to initiate real-time contact with other systems anywhere, any time since they carry their mobile device everywhere.

What exactly does mobile computing communication entail?

A form of communication known as mobile communications does not require a direct physical link between the sender and the recipient. During conversation, it makes it easier for users to travel from one physical location to another.

Most popular forms of technology for communication-

GSM stands for Global Systems for Mobile Communications.Orthogonal Frequency Division Multiplexing (OFDM) is a technique used in the Long Term Evolution (LTE), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunication System (UMTS) systems.

Learn more about mobile communications

brainly.com/question/14781388

#SPJ4

Which of the following provides research abilities in Excel 2019?
O Thesaurus
O Smart Lookup
O Dictionary
O Spell check

Answers

The option that provides research abilities in Excel 2019 is option B: Smart Lookup.

What does Excel's clever lookup function do?

Smart Lookup is a function that has the potential to be quite helpful. Simply right click on the cell in question and choose Smart Lookup to do a search. After that, Excel will start a Bing-powered search engine within the software, enabling you to look up what's in the cell online.

Note that You can easily access the features or actions you want to utilize by using the text field "Tell me" to input the words and phrases that describe what you want to do next.

Learn more about Thesaurus from

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

a laptop that you previously purchased was shipped with so-dimm memory to accommodate the laptop's form factor. you would now like to upgrade the memory.

Answers

The option to upgrade a laptop's memory is dependent on one major factor: The Purpose for which the laptop will be used.

What is the explanation for the above?

Just like you'd need an SUV or tow truck to tow equipment or mobile home, and a tractor for agricultural purposes, laptops come with standard specs but with the flexibility to upgrade to accommodate the work requirements or tasks of its use.

Hence a gamer would require more RAM and processing power compared to someone whose job is writing and working with desktop publishing tools.

Hence, it is correct to state that the workload expected to be put on the laptop will determine if an upgrade to the Random Access Memory will be required.

Learn more about laptop memory:
https://brainly.com/question/28501534
#SPJ1

8) a class declared as final .a) cannot be changed.b) cannot have subclasses.c) cannot have superclasses.d) has several abstract methods.e) cannot be used in a program.

Answers

Option c subclasses cannot exist in a class that has been marked as final.

An object is produced from a class, which is a user-defined blueprint or prototype. It stands for the collection of traits or operations that all objects of a particular type share. A class in object-oriented programming is a template that defines the method s and variables in a certain type of object. Since an object has real values rather than variables, it is a specific instance of a class. One of the cornerstones of object-oriented programming is the concept of the class. Therefore, a basic class includes methods and how they are implemented. This class's methods can be used to take an action on the class's data as well as be used to construct an object or objects from the class's data. Inheritance is possible with this class.

Learn more about class here:

https://brainly.com/question/14615266

#SPJ4

problem 7 network address address class default subnet mask custom subnet mask total number of subnets total number of host addresses number of usable addresses number of bits borrowed 10.0.0.0 /16 what is the 11th subnet range? what is the subnet number for the 6th subnet? what is the subnet broadcast address for the 2nd subnet? what are the assignable addresses for the 9th subnet?

Answers

The 11th subnet range is = 10.10.0.0 to 10.10.255.255

The broadcast address of the 2nd subnet will be = 10.1.255.255

The assignable address range for the 9th subnet will be = 10.8.0.1 to 10.8.255.254

5 is the subnet number for the 6th subnet

Each device has an IP address made up of two parts: the client, also known as the host address, and the server, also known as the network address. A DHCP server or a user must manually configure IP addresses (static IP addresses). The subnet mask divides the IP address into host and network addresses, designating which portion of the address belongs to the device and which to the network. A gateway, also known as the default gateway, joins local devices to other networks. As a result, whenever a local device wants to send data to a device with an IP address on a different network, the gateway receives the packets first and then passes them on to the intended recipient outside of the local network.

Learn mor about Subnet here:

https://brainly.com/question/15055849

#SPJ4

write a function drivingcost() with input parameters milespergallon, dollarspergallon, and milesdriven, that returns the dollar cost to drive those miles. all items are of type double. the function called with arguments (20.0, 3.1599, 50.0) returns 7.89975.

Answers

A function driving cost() with input parameters miles per gallon, dollars per gallon, and miles driven, that returns the dollar cost to drive those miles.

our program must define and call a function:

double DrivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon)

#include <stdio.h>

double DrivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon)

{

double dollarCost=drivenMiles/milesPerGallon*dollarsPerGallon;

return dollarCost;

}

int main()

{

double milesPerGallon=20.0, dollarsPerGallon=3.1599;

double cost=DrivingCost(10,milesPerGallon,dollarsPerGallon);

printf("%0.2lf ",cost);

cost=DrivingCost(50,milesPerGallon,dollarsPerGallon);

printf("%0.2lf ",cost);

cost=DrivingCost(400,milesPerGallon,dollarsPerGallon);

printf("%0.2lf\n",cost);

return 0;

}

Learn more about Gallon here-

https://brainly.com/question/9917229

#SPJ4

the only difference between the get function and the >> operator is that get reads the first character typed, even if it is a space, tab, or the [enter] key.

Answers

True, the only difference between the get function and the >> operator is that get reads the first character typed, even if it is a space, tab, or the [enter] key.

What are functions and operators?

In programming terms, an operators used to manipulate individual data items and return a result while functions are blocks of organized, reusable code that is used to perform a single, related action.

They are different operators and they include:

Arithmetic Operators Assignment Operators Comparison Operators Concatenation Operators Logical Operators Boolean Operators

Learn more about Operators from:

https://brainly.com/question/26680966?referrer=searchResults

SPJ4

Other Questions
Zoe's workstation is being evaluated by an ergonomics specialist. How far away would they recommend she position her monitor?Question 6 options:12 inches from her eyes36 inches from her eyes20 inches from her eyes30 inches from her eyes There was a big snowstorm on Friday night. By Saturday afternoon, 3 inches of the snow had melted. There were still 8 inches of snow left. Solve an equation to find how many inches of snow fell during the snowstorm. Type your response in the box.As you read these two scenarios, think about the possibilities that exist when starting a business and the choices that must be made. Then answer the question that follows.Scenario 1Kristina wants to expand her custom furniture business. Shes been building furniture in her basement for a few years now. She started out selling only to friends and family and then began to sell online. Now shes getting so many orders that she can barely keep up with them all. She knows that to expand, she needs to start a factory and hire workers. She decides on a location about 10 minutes from her home. Over dinner with a friend, she explains how fortunate she is to live near a major city with a big airport, a good highway system, and an educated workforce and to have a business in a state with minimal regulations and low taxes.Scenario 2Andrew has been creating custom car accessories in his garage for years. Hes been selling so many accessories online that he can barely keep up with his orders. He lives in a small town, so there arent many people he can employ to work for him. He pays a significant amount of his income in taxes as well. He realizes he might need to move to expand his business. But hes dreading the trip to investigate possible locations because its a two-hour drive on narrow two-lane roads to reach the nearest major airport.What is driving Andrews and Kristinas decisions on where to expand their businesses? Water boils and becomes a gas at 100c .What are the states of sodium ,chlorine and sodium chloride at 100c ? luke listened to a lecture in his history class that he found very confusing, but at the end of the class when the professor asked whether there was anything students didnt understand, luke didnt raise his hand. because no other hands were raised, luke assumed that other students had understood the material and that he just didnt pay enough attention. in fact, many students hadnt understood the material and were in the same situation as luke. this is an example of: A(-3,-2) and M (2,6) find the coordinates of the other endpoint Make a prediction. Based on the passage, what themes, or central ideas, do you think will be developed in the novel? Describe at least two. Then explain why you think these themes will be developed. Be sure to use specific details from the passage to support your ideas. What does the hacker say they've done with the competitors' apps in the 4C ? suppose you are standing in an elevator that is accelerating. what does the acceleration have to be so that your weight feels tripled? assume the positive direction is upwards. database file maintenance typically involves . select all that apply. a. using log files to recover data b. writing new database client software c. compacting the database d. defragmenting the database index Find the value of x so that f(x) = 7. Nara wants to determine how much ice it will take to fill her cooler . If the cooler has a length of 22 inches, a width of 12 inches, and a height of 1012 inches, how much ice will her cooler hold? for the sn2 reaction, draw the major organic product and select the correct (r) or (s) designation around the stereocenter carbon in the organic substrate and organic product. include wedgeanddash bonds and draw hydrogen on a stereocenter. Find the equation of the line.a line that is perpendicular to the graph of y=-3x +2 andcontains the point (3,-3) Determine the quantity in moles of RbF that are in 57.0 grams of RbF. As human travel increases, the number of introduced species likelyO decreases.O increases.O stays the same.O is eliminated. What is the dipole moment of an HBr molecule, whose bond length is 0.141 nm? 4.81 D 5.98 D 6.77 D 3.67 D6.11 D help meeeeeeee please draw the expected product of the curved arrow mechanism. draw the appropriate number of hydrogens on each oxygen. be sure to draw a charge and the nonbonding electron pairs. Evaluate the extent to which domestic and foreign policy contributed to maintaining continuity as well as fostering change within American political parties from 1788-1824.