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
andrey2020 [161]
1 year ago
14

Read the following code used to calculate the weight of an item with two-pound packaging:

Computers and Technology
1 answer:
Veronika [31]1 year ago
7 0

When there is an error in the code, the function that should be used is A. float(); weight requires decimals

<h3>When is a code?</h3>

Computer code, or a set of instructions or a system of rules defined in a specific programming language, is a term used in computer programming (i.e., the source code). It is also the name given to the source code after a compiler has prepared it for computer execution.

A float is a number with a decimal place since it is a floating-point number. When greater precision is required, floats are employed. The provided value is transformed into a floating point number by the float() function. In this case, the code is used to calculate the weight of an item and the float function will be vital.

Learn more about programs and code on:

brainly.com/question/22654163

#SPJ1

You might be interested in
An IT professional with a customer-service
oksian1 [2.3K]

Answer: work late to make sure a persons issue is resolved

Explanation:

I just took the test

6 0
4 years ago
What is the most important part of the course that you have learned about so far?
dusya [7]
Well what have you learned that you thought was beneficial to you?
8 0
3 years ago
Read 2 more answers
Assume that processor refers to an object that provides a void method named process that takes no arguments. As it happens, the
Aloiza [94]

Answer:

Following are the code to the given question:

try//defining a try block

{

processor.process();//defining an object processor that calls process method

}

catch(Exception e)//defining a catch block

{

}

Explanation:

In this question, the 'Try' and 'catch' block is used in which both the keywords are used to represent exceptions managed during runtime due to information or code errors. This try box was its code block which includes errors. A message queue catches the block errors and examines these.

In the try block, a method "process" is used which is create the object processor that calls the method.

5 0
3 years ago
How long does it take to send a 3 MiB file from Host A to Host B over a circuit-switched network, assuming:
yanalaym [24]

Answer:

The answer is 69.3 ms

Explanation:

if 1 MiB = 0.008388608 Gb

then 3 MiB =  3 x 0.008388608 = 0.025165824 Gb.

since the bandwidth is equally shared amongst two users,  each user gets equal share of the bandwidth which is Total Bandwidth/Number of Users.(

The bandwidth for each user = 30.8/2 = 15.4 Gbps.

The time taken for the message to reach from host A to host B = 0.025165824/15.4 s = 0.00163414441 which is = 1.63 ms.

The link connection requires a setup time of 67.7 ms

Therefore,  the net time required is = 67.7 ms +1.63 ms = 69.3 ms.

4 0
3 years ago
What is a device driver
Elan Coil [88]

A device driver is a computer program that operates or controls a particular type of device that is attached to a computer.

5 0
3 years ago
Other questions:
  • The three devices you are going to install are a 2u server, a 1u keyboard tray, and an 8u space for a rack mounted moitor. Given
    6·1 answer
  • Gabriel needs to create a formula that does not change when it is copied to cell b2. which formula should he create?
    14·1 answer
  • On a piano, each key has a frequency, and each subsequent key (black or white) is a known amount higher. Ex: The A key above mid
    14·1 answer
  • USDA-APHIS Animal Care Resource Policy #12 "Considerations of Alternatives to Painful/Distressful Procedures" states that when a
    11·1 answer
  • Spreadsheet allow three types of cell addressing. They include ______addresses, such as $E$1, ______addresses, such as R$3, and
    12·1 answer
  • Which among the following if absent, a computer is not complete.
    6·2 answers
  • Public class Dog
    7·1 answer
  • 1. Complete the following program so that it computes the maximum and minimum of the elements in the array. Write the program so
    6·1 answer
  • Why should you list more than one font if you are formatting some text using CSS?
    10·1 answer
  • Hypertext enables you to navigate through pieces of information by clicking the __________, that connect them.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!