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
Bezzdna [24]
4 years ago
12

Given decimal variables named length and width that contain the dimensions of a rectangle, write a statement that calculates the

rectangle’s area and saves the result in a new integer variable named area. (Be sure to cast the result from decimal to integer.)
Computers and Technology
1 answer:
kirill [66]4 years ago
3 0

Answer:

The code to this question can be defined as follows:

<u>Code:</u>

int area = (int) (length * width); //defining integer variable area that holds calculated value.

Explanation:

In the given question it is defined, that two decimal variable "length and width" is defined that holds some decimal value in it, and this question asks to define an integer that holds it calculated value, which can be described as follows:

  • In the above code section, an integer variable "area" is defined, which calculates the decimal variable "length and width" multiplication.
  • Inside the area variable, the typecasting is used that converts the decimal value to integer value.  
You might be interested in
HELPPP ASAPP
Setler [38]

Answer:

I think that Hardware runs the computer, whereas software performs tasks is correct.

I think that Hardware performs tasks, whereas software provides instructions is correct.

Explanation:

For the first one I put above, I think it is correct because Hardware is literally the computer, it runs everything but the software gives it instructions.

For the second one I put above, I think it is correct because Hardware does what the software tells it, hardware is what makes everything happen, the software gives it code.

For example, if you know Python:

print('Hello')

Will tell the computer to print 'Hello' in the terminal.

If you know javascript:

document.write("Hello") Not sure if this is right btw, I learned js some time ago

This will tell the computer to display Hello on the screen on your website

If you know ok nevermind...

And by software you mean the programming language or something executing the code (complier) right?

Hope this helps!!!

LOOK AT THIS!!!

My guess, might not be correct: Hardware performs tasks, whereas software provides instructions because if software is the app or program right? So then the software gives the code and algorithms and in algorithms you provide instructions and the computer runs the result, if you think about it like this: without the software the hardware can't do anything which is true, so then the software is telling the software what to do (instructions) and the hardware is performing it and showing results and responding to the software. I hope this helps

This is supposed to be a comment but it doesn't fit

6 0
3 years ago
Read 2 more answers
Do you have to make a account of Windows 10?
shepuryov [24]

Answer: No!

Explanation: You can make your account where and whenever!

6 0
4 years ago
Convert 128 GB into KB​
goblinko [34]

Answer:

1,073,741,274  KB

Explanation:

Use an unit convertor or an calculator.

8 0
3 years ago
Read 2 more answers
What is the purpose of a register in a CPU? Describe three types of registers.
Ganezh [65]

Answer:

I hope this answer is correct

Explanation:

Internal registers include the instruction register (IR), memory buffer register (MBR), memory data register (MDR), and memory address register (MAR). The instruction register fetches instructions from the program counter (PC) and holds each instruction as it is executed by the processor.

5 0
3 years ago
i was playing a mobile game and I was a guild leader in there. one of the members were very disrespectful and they just left bec
Sonbull [250]

Answer:

which mobile game? Whatever the worst thing you can do is. If its slurs and harassment or bullying report them

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Write the printitem() method for the base class. sample output for below program: last name: smith first and last name: bill jon
    6·2 answers
  • When does a kernel panic occur?
    12·2 answers
  • What is the definition of online communication
    15·1 answer
  • Which is an example of appropiate online behavior?
    6·1 answer
  • Jamie posted all the journal entries into ledgers. After the postings, Jamie realizes that the debit side of the travel account
    10·1 answer
  • Sensitive security information can be shared with whom
    13·2 answers
  • What is the clearing house for domain names called?
    12·1 answer
  • Which of the following is a good conductor of electricity and heat?
    13·2 answers
  • Every presentation should have a beginning, a middle, and an end.
    10·1 answer
  • Once the data center routes to the destination server that hosts the website, what's the next step in the Internet process?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!