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
nordsb [41]
3 years ago
9

Write declaration statements to declare and initialize two variables: one is an integer variable named age, initialized to 18, a

nd the other variable, named weight, is initialized to 114.5.
Mathematics
1 answer:
Alla [95]3 years ago
7 0

Answer:

int age;

age=18;

float weight;

weight=114.5F;

Step-by-step explanation:

int age; \\ it is declared as integer because 18 is an integer value

age=18; \\ initialized as 18 is stored in the variable 'age'

float weight; \\ weight is declared as float because it's value is floating or decimal value which cannot be declared as integer value

weight=114.5F; \\ F shows that it's single floating type value of 32 bits, if F is not written then it means it double floating type value which is 64 bits long

You might be interested in
Someone please help me!
bija089 [108]

Answer:

A = 58

B =:25

Step-by-step explanation:

C = A + B

83 = 9x + 4 + 4x + 1

83 = 13x + 5

13x = 78

x = 78/13

x = 6

A = 9x + 4 = 9 x 6 + 4 = 58

B = 4x + 1 = 4 x 6 + 1 = 25

7 0
3 years ago
You cut a 54-inch rope into four pieces. Twoof the pieces are the same length, a thirdpiece is twice as long as each of the twoe
antiseptic1488 [7]

Let's use the variable x to represent the length of the first and second pieces.

If the third piece has twice the length of the first and second, its length is 2x.

If the fourth piece has half the length of the first and second, its length is 0.5*x.

Adding all four pieces and equating to 54 inches, we have:

\begin{gathered} x+x+2x+0.5x=54 \\ 4.5x=54 \\ x=\frac{54}{4.5} \\ x=12 \end{gathered}

So the length of each piece is:

12 inches, 12 inches, 24 inches and 6 inches.

5 0
1 year ago
Simplify (5n^4)^-3. Assume n = 0.
denpristay [2]

Answer:

0

Step-by-step explanation:

5*0=0

0^4=0

0^-3=0

8 0
3 years ago
Read 2 more answers
How do I solve y+5x=2;-1,0,1 ?
vfiekz [6]
Plug is the number try one and see if it equals and solve for y get y on one side
5 0
3 years ago
Can someone be my math teacher ? pls message ​
weqwewe [10]

Answer:

which grade do you want to get helped by ?

7 0
3 years ago
Other questions:
  • Mr liston bought lunch for $ 12.80. He gave the waiter a tip of 15 %. How much money did the waiter recieve?
    10·2 answers
  • Write 3x^2-18x-6 in vertex form
    15·1 answer
  • What is the value of x in the equation 1/3x-2/3=-18?
    11·2 answers
  • NEED THE ANSWER ASAP<br> MARKING BRAINLIEST
    9·2 answers
  • 9 pencils cost $7.74.Which equation would help determine the cost of 6 pencils?
    14·2 answers
  • ZfgffdhzgdfghdhuifhdSUGhdioghfiSGjDIHjtihgjDPIddh
    12·2 answers
  • Pls help im new so pls can u help me <br><br> Factorise<br> x^2+18x+80
    9·1 answer
  • Please help last question I need answer to. I will give Brainliest answer.
    13·1 answer
  • Anna makes unique jewelry. The owner of the "Unique" store agreed with Anna to deliver 20 bracelets a week. At the moment, Anna
    6·1 answer
  • Mom drove 180 miles from home to the hotel in 3 hours how many miles did she drive per hour
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!