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
Sonja [21]
3 years ago
6

A basic program to find the area of a square​

Computers and Technology
1 answer:
uranmaximum [27]3 years ago
4 0

The area of a square is simply the square of the side. So, you only need to write a program that receives a number as input, which is the side of the square, and returns that number squared, which will be the area of the square.

You didn't specify any language, so for example here's a C implementation that receives the side from the user and returns the area:

#include <stdio.h>

int main()

{

   double side, area;

   

   do{

       printf("Enter the side of the square (must be >0): ");

       scanf("%lf", &side);

   } while(side<=0);

   area = side * side;

   printf("The area is %lf", area);

}

You might be interested in
I need help pleaseeeeeee!
sertanlavr [38]

Answer:

located on the x axis

the x axis is horizontal and y axis vertical

8 0
3 years ago
Read 2 more answers
Label 14 parts of the inside of a computer
qwelly [4]

(1) Power supply                (6) motherboard                                     (11) Drive Bay

(2) hard drive                     (7) Central Processing Unit (CPU)         (12) Floppy Drive

(3) expansion card             (8) Random Access Memory (RAM)      (13)Speaker

(4) expansion slot              (9) CD-ROM                                     (14) Video Connecter

(5) Read Only Memory      (10)Power Cord Plug                       (15) Fan

7 0
3 years ago
A solid weighs 20gf in air and 18gf in water .find the specific gravity of the solid​
swat32
<h2>Answer:</h2>

10

<h2>Explanation:</h2>

Specific gravity (also called relative density) is the ratio of the density of an object (or substance) to the density of a reference substance (mostly water). It has no unit and is given by the following;

Specific gravity = \frac{density-of-object}{density-of-water}

Specific gravity is also given by the ratio of the weight of the object in air to the loss of weight of the object in water. i.e

Specific gravity = \frac{weight-of-object-in-air}{loss-of-weight-in-water}            --------------(* * *)

In this case;

i. The object is the solid which has a weight of 20gf in air.

ii. The loss of weight of the solid in water is the difference between the weight in air (20gf) and the weight in water (18gf).

Therefore the loss of weight is

20gf - 18gf = 2gf

Now substitute these values from (i) and (ii) into equation (* * *) as follows;

Specific gravity = \frac{20gf}{2gf}

Specific gravity = 10

Therefore the specific gravity of the solid is 10

7 0
3 years ago
Which of the following are considerations in e-commerce and e-government Internet sites? Check all of the boxes that apply.
vovangra [49]

Answer:

protection of sensitive information

Explanation:

6 0
3 years ago
Im so stuck bruh helpppppppppp
goblinko [34]

Answer:

24 is the answer hope that helped!

•w•

5 0
3 years ago
Other questions:
  • kara, darrell and jose all enjoy watching comedies online. kara and jose also enjoy watching dramas. using content-based filteri
    12·1 answer
  • What part of the System Model is a Flow Chart primarily developed for?
    9·1 answer
  • How many pairs of chromosomes do human body cells contain?
    7·2 answers
  • An unauthorized user is a network _______ issue.
    11·1 answer
  • All of the following are benefits of automation except
    5·1 answer
  • HELP AASAP BRAINLIEST JUST HELP
    13·1 answer
  • What is binary number system? Why is it used in computer system?
    13·2 answers
  • Which information can you apply to every page of your document with the page layout options?
    9·1 answer
  • Create a Python program that computes the cost of carpeting a room. Your program should prompt the user for the width and length
    10·1 answer
  • How does the dns solve the problem of translating domain names like example.com into ip addresses?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!