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
GaryK [48]
3 years ago
5

What declarations, inputs, processing, and outputs are needed to calculate the area of a rectangle?​

Computers and Technology
1 answer:
Sedbober [7]3 years ago
3 0

Answer:

Declaration: length, width, area

Inputs: length & width

Processing: length & width

Output: area

Explanation:

The area of a rectangle uses the formula: A=lw. In your coding, you need to ask for user input for the length and width in order to calculate the area.

Your processing would simplify multiple the user's input together stored in some type of sum variable.

Now I don't know what program language you are using but I will give you an idea.

<u>Code (Python)</u>

<em>#Define variables equal to user input.</em>

length = int(input("Enter the length of the rectangle: "))

width = int(input("Enter the width of the rectangle: "))

area = length * width

Your output would be the area, but you can manipulate it if you want.

print("The area of the rectangle is", area)

<u>So the program would run like this:</u>

Enter the length of the rectangle: 3 <--you type a number

Enter the width of the rectangle: 5

The area of the rectangle is 15

Sidenotes: if you are using ints, the number MUST be a whole number or the program will throw an error. If you are using decimals, use a float.

You might be interested in
What are some examples of the kinds of information that might be included in a career definition section of a career plan? Check
Ganezh [65]

Answer:

3.) job title

5.) job location

6.) level of pay

7.) description of employer

Explanation:

Career Plans can be defined as the plans that an individual makes regarding the advancement or growth his or her career.

Career Plans are plans that involve steps an individual intends to take to advance their career growth and they are:

• Short term goals

• Intermediate goals

• Long term goals

• Academic pursuits or certifications to further advance your career

• Internships the individual plans to embark on e.t.c.

A career plan has different sections that it is subdivided into. They are:

a) Personal Section: This included information about yourself, your educational background, e.t.c.

b) Skills Section

c) Career definition section

In a career definition section of a career plan, this section is about where that individual is currently in their career. The information contained in this section includes:

• Job title

• Job location

• Level of pay

• Description of employer

6 0
3 years ago
Read 2 more answers
Does anyone know what anotmy means​
deff fn [24]

Answer:

also its spelled anatomy

Explanation:

The branch of science concerned with the bodily structure of humans, animals, and other living organisms, especially as revealed by dissection and the separation of parts.

Hope this helped :3

3 0
3 years ago
Read 2 more answers
The word software is interchangeable with what word
defon
It could be interchangeable with the word program
4 0
3 years ago
You need to fax a portion of a map from a large hard-cover atlas to a client from an internal fax-modem. To fax the map, the bes
Kay [80]
The fax modem is used to send and receive fax messages by only having phone line (fax machine is not required). The scanned documents should be saved as digital file (image or PDF format) in order to be sent. So, in order to send a portion of a map you should first convert the map into digital file and than simply send it through the fax modem. The best way to convert it to a digital file is to use an optical character recognition (OCR). 
6 0
3 years ago
The Twitter website has become a de facto first source for many important events in the last decade. Twitter's hashtag feature l
timurjin [86]

Answer:

..........................................?

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following is not an impact device?<br> Joy Stick<br> Track Ball<br> Mouse<br> Printer
    10·1 answer
  • Why is a DNS cache poisoning attack dangerous? Check all that apply. A. Errrr...it's not actually dangerous. B. It allows an att
    12·1 answer
  • On the seventh day of the iteration, the team realizes that they will not complete 5 of the 13 stories. the product owner says s
    12·1 answer
  • There are local administrators for each of the departments, excluding the IT. These local administrators will use the local admi
    7·1 answer
  • ____ is the official web portal for the U.S. government, providing access to all official U.S. government services and informati
    12·1 answer
  • What simple machine is most often used to lift the blinds on a window?
    8·2 answers
  • The type of medium used to hide data in steganography is referred to as __________. This may be a photo, video, sound file, or V
    12·2 answers
  • ou use productivity apps on your iPad tablet device while traveling between client sites. You're concerned that you may lose you
    11·1 answer
  • Calcula l'energia (Kwh) consumida per una màquina de 30 CV que funciona durant 2 hores.
    12·1 answer
  • Software is in -----language​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!