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
Gwar [14]
3 years ago
12

Assume a program has the following variable defenition: int a, b =2; float c = 4.2; and the following statement: a = b * c; What

will be stored in a? A. 8.4 B. 8 C. 0 D. None of the above
Mathematics
1 answer:
Vladimir [108]3 years ago
5 0

Answer:

The correct option is B.

Step-by-step explanation:

In a program the variables are defined as

int a, b =2;

float c = 4.2;

The given statement is

a = b * c

a = 2 * 4.2

a = 8.4

It is given that variable a is an integer. So, only integer value can be stored in a.

a ≈ 8

It means 8 will be stored in a. Therefore the correct option is B.

You might be interested in
The scale on a map of Roswell, New Mexico is 1 inch : 0.5 mile. If two buildings in Roswell are 2.3 miles apart in real life, th
Nataly_w [17]

Im not too sure but I think its 4.6,because 1 in :.5 mile. As a whole, .5 can go into 2, 4 times, then whats left over also gets divided into .6. Add those together and youll get 4.6

4 0
3 years ago
Among all rectangles that have a perimeter of 188, find the dimensions of the one whose area is largest.
ANEK [815]
Always add them all around and then divide the two and you should get the correct answer
4 0
2 years ago
Ms. Brown predicted that 25% of the days in January would have temperatures below 45°F. How many days does she predict will have
Dmitriy789 [7]

The answer is 7.75. Since there can not be 7.75 days, you can round that to 8 and say that it's almost 8 days. Hope this helps!

8 0
3 years ago
The probability that a can of paint contains contamination is 3.23%, and the probability of a mixing error is 2.4%. The probabil
stich3 [128]

Answer:

4.6%.

Step-by-step explanation:

The probability that a can of paint contains contamination(C) is 3.23%

P(C)=3.23%

The probability of a mixing(M) error is 2.4%.

P(M)=2.4%

The probability of both is 1.03%.

P(C \cap M)=1.03\%

We want to determine the probability that a randomly selected can has contamination or a mixing error. i.e. P(C \cup M)

In probability theory:

P(C \cup M) = P(C)+P(M)-P(C \cap M)\\P(C \cup M)=3.23+2.4-1.03\\P(C \cup M)=4.6\%

The probability that a randomly selected can has contamination or a mixing error is 4.6%.

3 0
3 years ago
Suppose you'd like to save enough money to pay cash for your next car. The goal is to save an extra $28,000 over the next 6 year
Anna35 [415]

Given:

• Amount to save, A = $28,000

,

• Time, t = 6 years

,

• Interest rate, r = 5.3% ==> 0.053

,

• Number of times compounded = quarterly = 4 times

Let's find the amount that must be deposited into the account quarterly.

Apply the formula:

FV=P(\frac{(1+\frac{r}{n})^{nt}-1}{\frac{r}{n}})

Where:

FV is the future value = $28,000

r = 0.053

n = 4

t = 6 years

Thus, we have:

28000=P(\frac{(1+\frac{0.053}{4})^{4\times6}-1)}{\frac{0.053}{4}}

Let's solve for P.

We have:

\begin{gathered} 28000=P(\frac{(1+0.01325)^{24}-1}{0.01325}) \\  \\ 28000=P(\frac{(1.01325)^{24}-1)^{}}{0.01325}) \\  \\ 28000=P(\frac{1.371509114-1}{0.01325}) \\  \\ 28000=P(\frac{0.371509114}{0.01325}) \end{gathered}

Solving further:

28000=P(28.0384237)

Divide both sides by 28.0384237:

\begin{gathered} \frac{28000}{28.0384237}=\frac{P(28.0384237)}{28.0384237} \\  \\ 998.6=P \\  \\ P=998.6 \end{gathered}

Therefore, the amount that must be deposited quarterly into the account is $998.60

ANSWER:

$998.60

8 0
1 year ago
Other questions:
  • Maria bought and notebooks that cost $0.95 each and pee pants that cause 0.50 each . a 7.5% sales tax will be applied to the tot
    12·2 answers
  • 4x+y-3z=45<br> 6x-4y+3z=41<br> 2x-7y-11z=85
    9·1 answer
  • Adam is admiring a statue in Sparrowtown Park from 56 feet away. If the distance between the top of the statue to Adams head is
    12·1 answer
  • Triangle XYZ is translated by the rule (x + 1, y − 1) and then dilated by a scale factor of 4 centered at the origin. Which stat
    14·2 answers
  • Question
    8·1 answer
  • 4. Order the set of numbers from least to greatest: (4 points)
    10·1 answer
  • The length of a rectangle is 3 inches more than three times the width. The perimeter is 62 inches. Find the length and width.
    6·1 answer
  • Please help me with the question please ASAP ASAP please please help ASAP ASAP please please help please
    5·1 answer
  • Answer this please I’m not sure of the answer
    5·1 answer
  • Find the area of the circle from the given radius.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!