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
Marat540 [252]
3 years ago
8

Consider the following line of code: price= input(Please enter the price: ") What would be the next line in your code that will

allow you to store the price as a decimal number price price(decimal) price float(price) price decimal(price) price int(price
Computers and Technology
1 answer:
hodyreva [135]3 years ago
6 0

Answer:

price float(price)

Explanation:

There are four basic type of data type use in the programming to declare the

variable.

1. int:  it is used for integer values.

2. float:  it is used for decimal values.

3. char:  it is used for character values

4. Boolean: it is used for true or false.

in the question, the one option contain the data type float (price float(price)). So, it store the value in decimal.

price int(price):  it store the value in integer.

price decimal(price):  it is wrong declaration of variable. their is no data type in the programming which name is decimal.

price price(decimal):  it is wrong declaration of variable. their is no data type in the programming which name is price.

You might be interested in
Which of the following is an example of a currency Number format in Excel?
Elena L [17]

$21.08 is an example of a currency Number format in Excel

<u>Explanation:</u>

For items like currency, one can format numbers in cells in Excel.

To view all possible number formats, click the Dialog Box Launcher attached to Number on the Home tab in the Number group.

In the Format Cells dialog box, in the Category list, click Currency or Accounting.

In the Symbol box, tick the currency symbol.

In the Decimal places box, insert the number of decimal places.

Employed for common financial values and presents the default currency figure with quantities.

Ctrl+Shift+$ is a shortcut to represent currency values.

8 0
4 years ago
Consider the following code:
Phoenix [80]

Answer:

customers += newCustomer;

Explanation:

The operator += expands into + and assignment. The assignment is not overloaded so the required code is

customers += newCustomer;

This expands into

customers = customers + newCustomer;

The overloaded + operator is called for the right expression. This returns a `CustomerList`, which is then assigned through the = operator to `customers`.

3 0
3 years ago
PLSSS HELLLP!!! THE CROWN WILL BE REWARDED FOR THE CORRECT ANSWER!!!
Sergio039 [100]

Answer:

The audience

Explanation:

The correct option is - The audience

Reason -

When writing a technical document -

Always describe things in technical terms.

Write for your readers.

Describe things exactly as they're described to you by subject matter experts.

Technical writing :

Addresses particular readers.

Helps readers solve problems.

4 0
3 years ago
What is the rate constant at 25.0 ∘c based on the data collected for trial b?
Alecsey [184]
<h2><u>Answer: </u></h2>

acetone + I2 + HCl ---> iodated acetone  

Equation:

rate = k * [acetone]^x * [I2]^y * [HCl]^z  

Once we know x, y, z, we can plug in any of the trials A->D and determine k  NOTE: We can't use run E because temperature has an effect on rate. E was run at a different temperature.

The first thing to note is that do NOT have concentrations. We have volumes at a given molarity.  

Table:  

.001M I2.. ..050M HCl.. .1.0M acetone.. .water.. temp..time.. total vol  

.. ....mL.. ... ... .. .mL.. .. ... .. .. mL.. .. .. .. ..mL.. ..°C.. .sec.. .. .. .L  

A.. ...5.. .. .. .. .. ..10.. .. .. .. .. ..10.. .. .. .. ..25.. .. .25.. .130.. .. 0.05  

B.. ..10.. .. .. ... .. 10.. .. .. ... .. .10.. .. .. ... ..20.. . .25.... 249.. ..0.05  

C.. . 10.. .. .. .. .. .20.. .. .. .... .. 10.. .. ... ... .10... ..25.. ..128... .0.05  

D.. . 10.. ... .. ... ..10.. .. ... .. ... 20.. .. .. .. .. 10.. .. 25.. ..131.. ..0.05  

E.. ..10.. ... .. ... ..10.. ... ... ... ..10.. ... .. ... .20.. .. 42.8.. .38.. ..0.05  

We can translate that into molarity in solution using this formula. (molarity pure ingredient * mL used / 1000 / total volume in liters)  

 

.. .. ..I2.. .... HCl.. acetone.. temp.. ..rxn time  

.. .. ..M.. .. ...M.. .... .M.. .... ..°C.. .. .. sec  

A.. 0.0001.. 0.01..... 0.2.. .... .25... .... .130  

B.. 0.0002.. 0.01.. .. 0.2.. .. .. 25.. .. .. .249  

C.. 0.0002.. 0.02.. .. 0.2.. .. .. 25.. .. .. .128  

D.. 0.0002.. 0.01.. .. 0.4.. .. . .25.. ... ...131  

E.. 0.0002.. 0.01.. .. 0.2.. . ....42.8.. .. .. 38  

From runs B and D, we can see that rate dropped by half .

As [I2] and [HCl] were held constant and [acetone] was doubled.  

This means x=-1 in this equation  

Rate = k * [acetone]⁻¹ * [I2]^y * [HCl]^z  

Rate = k * [I2]^y * [HCl]^z  

From runs A and B  

[I2] doubles  

[HCl] remains the same  

[acetone] remains the same  

rate doubles   as [I2] doubles, rate doubles  

y = 1   rate = k * [acetone]⁻¹ * [I2]¹ * [HCl]^z  

And from runs B and C, we can see that  , As [HC] doubles, (all else equal) the rate halves.

Z = -1  

Rate = k * [I2] / ([acetone] * [HCl])  

Rearranging  

k = rate * [acetone] * [HCl] / [I2]  

From any experimental run (A-D), we can calculate k.

using A to calc k... ..k = 2600 M²/sec  

using B to calc k... . k = 2490 M²/sec  

using C to calc k... . k = 2560 M²/sec  

using D to calc k... . k = 2620 M²/sec  

NOTE.. the problem statement said to use the data from run B to calc k.

Hence Final Answer:

k = 2490 M²/sec

4 0
4 years ago
Please!! I need help, this is due by tonight!!!
lyudmila [28]

Answer:

sorry if it is too late but I think it is d

Explanation:

4 0
3 years ago
Other questions:
  • A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the en
    14·1 answer
  • How to use javascript libraries in javascript code?
    9·1 answer
  • What is the difference between an electronic notebook and electronic flash cards?
    8·1 answer
  • There are many different types of documents that are used to convey information in the business world-letters and
    12·1 answer
  • You are a network administrator. Your company recently approved of employees working from home one day a week and the use of emp
    7·1 answer
  • Computer networks allow computers to send information to each other. What is the term used to describe the basic unit of data pa
    14·1 answer
  • What humidity level should be maintained for computing equipment? a. 50 percent b. 40 percent c. 60 percent d. 30 percent
    12·1 answer
  • A ____ is a a set of presentation rules that control how text should look. It is applied to an XML file to change the collection
    9·1 answer
  • Phishing (pronounced fishing) is malware sent through e-mail that looks like a legitimate message from a trusted sender. The goa
    10·2 answers
  • Please can someone solve this question<br>What is a software and types of software​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!