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]
4 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]4 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
In a study of annual salaries of employees, random samples were selected from two companies to test if there is a difference in
vichka [17]

Answer:

Step-by-step explanation:

Download docx
7 0
4 years ago
A team of three students are working on a language-learning app; they need to develop 300 micro-lessons and 300 micro-tests befo
Olegator [25]

Answer: a) 15 b)

Step-by-step explanation:

Let X be the number of days:

a)

For LESSONS:

Jordan does 10 / day ( 10*X)

Marco 5 / day ( 5*X)

Junyi 5 / day ( 5*X)

For TESTS:

Jordan does 5 / day ( 5*X)

Marco 10 / day ( 10*X)

Junyi 8 / day ( 8*X)

for each they need a total of 300

a) 10X+5X+5X=300 => 20X = 300 => X = 15 days for the lessons

b) 5X+10X+8X = 300 => 23X = 300 => X = 13.04 days for the tests

so they need 15 days to finish both tasks

now if Junyi gets sick we just eliminate his contribution

a) 10X+5X=300 => 15X = 300 => X = 20 days for the lessons

b) 5X+10X = 300 => 15X = 300 => X = 20 days for the tests

so in 20 days they will finish without him

If jordan works 10 hours a day, we just replace him with 10/24

a) 10(10/24)+5X+5X= 300 => X = 29.58 days for the lessons

b) 5(10/24)+10X+8X = 300 => X = 16.51 days for the tests

so at the end to complete both tasks they need 29.58 days

4 0
3 years ago
Amun has four credit cards, each with a different interest rate. He charges $1,000 to each card in January and does not pay down
ddd [48]
Credit 1 and Credit 3! Just took the test :) 
8 0
4 years ago
2(a) p=(4 5) q=(-2 7)<br>ii)Find |p|​
77julia77 [94]

Step-by-step explanation:

p= (45), |p|= 45

this is the solution

7 0
3 years ago
Gavin went on 24 runs last month that totaled 100 miles. Each run was a distance of either 3 miles or 5 miles. Which system of e
snow_lady [41]

Answer:

d

Step-by-step explanation:

7 0
3 years ago
Other questions:
  • A bag contains only red and blue marbles. Yasmine takes one marble at random from the bag. The probability that she takes a red
    7·1 answer
  • Perform the indicated operations. Express the result in scientific notation. (5.7 × 105) + (4.6 × 106) – (2.9 × 105)
    15·1 answer
  • Need some math help please!
    13·2 answers
  • Simplify.<br><br> 22÷(9+2)<br><br> Enter your answer in the box.
    5·2 answers
  • Help pleaseeeeeeeeee
    13·1 answer
  • -5/8x+2&gt;56/16 please help anything will do
    11·1 answer
  • The area of a square battlefield was 22,500 square miles. How long will it take a group of soldiers to cross the field diagonall
    15·1 answer
  • Hey guys I need help what is 361.5 divided by 12
    5·1 answer
  • Simplify this expression: 1/2(10x + 12) - (3.5x - 7) *
    13·1 answer
  • What's 5 + -4 + -7 +2
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!