how to write an algorithm to find area and perimeter of diamond .

Answers

Answer 1
Find the area of both triangles with 1/2•base•height then add them together

Related Questions

pls help help i will give brainliest help pls​

Answers

Answer:

3 or 2

Explanation:

Why do my airpods keep disconnecting and reconnecting.

Answers

the battery may be low

the senser may be not working

the Bluetooth on the phone or headset may not be working try a new phone

hope this helps

scav

The range of port 1024 to port 4999 is the usual range for ________ port numbers. Group of answer choices well-known ephemeral both A and B neither A nor B

Answers

The range of port 1024 to port 4999 is the usual range for EPHEMERAL port numbers. It is a communication endpoint.

What is an ephemeral port?

An ephemeral port can be defined as an endpoint for transporting a layered protocol of the IP suite.

The ephemeral port is always employed during a very short interval of time in a given session.

Some number examples of ephemeral ports include, among others, HTTPS = 443, HTTP = 80, and RPC = 13.

Learn more about ephemeral ports here:

https://brainly.com/question/2663754

Why don't we use a for each loop when doing a sequential (linear) search?

Answers

Answer:Linear search (aka Sequential Search) is the most fundamental and important of all algorithms. It is simple to understand and implement, yet there are more subtleties to it than most programmers realize.

The input to linear search is a sequence (e.g. an array, a collection, a string, an iterator, etc.) plus a target item. The output is true if the target item is in the sequence, and false otherwise. If the sequence has n items, then, in the worst case, all n items in the sequence must be checked against the target for equality. Under reasonable assumptions, linear search does O(n) comparisons on average. In practice, this is often too slow, and so, for example, BinarySearching or hashing or TreeSearching are speedier alternatives.

Here's an implementation of linear search on an array (in Java):

Explanation:

which issue of computer ethics is concerned about the technological division in the society?​

Answers

Answer:

There are many legal and ethical issues with computers that can be exploited by bad people to do bad things. Some of those issues include illegal music and video file downloading, spyware, identity theft, phishing, keystroke logging, packet sniffing and cyberbullying

The issue of computer ethics concerned with technological division in society is known as "Digital Divide."

What is Digital Divide?

It refers to the unequal access and disparities in the use of technology, where certain groups or individuals have limited or no access to digital resources, skills, and opportunities, leading to social and economic inequalities.

The digital divide can be caused by factors such as socioeconomic status, geographic location, education, and infrastructure availability, raising ethical concerns about fairness, inclusivity, and the potential for exacerbating existing societal divisions.

Read more about computer ethics here:  

https://brainly.com/question/20264892

#SPJ2

What is the use of the Mode option shown in the given image? ​

Answers

The Mode option is used to change how the colors in a particular layer blend with colors that are contained in another layer.

What is Photoshop?

Photoshop can be defined as a software program that is designed and developed to enable the use of an artistic process and tools for the creation of art works or graphic designs such as logos.

In a graphic design software such as Adobe Photoshop, the Mode option is used to change how the colors in a particular layer blend with colors that are contained in another layer.

In conclusion, the Mode option is used to blend colors for Photoshop layers.

Read more on layers here: https://brainly.com/question/14354492

Elena wrote the following code in Scratch to have the sprite move and then turn around. However, the code does not work as expected. What should be done to fix the error?

Change "move 20 steps" to "move 10 steps"
Change "turn left 180 degrees" to "turn left 90 degrees"
Change "turn left 90 degrees" to "turn right 180 degrees"
Change "turn right 90 degrees" to "turn left 90 degrees"

Answers

Sprites are program objects used to create animations

What should be done to fix the error is to (d) Change "turn right 90 degrees" to "turn left 90 degrees"

How to fix the error

From the question, we have the following highlights

The sprite is to move forwardAnd then turns around

The first line of the code segment moves the sprite 20 steps forward;

This step is correct, and it does not need to be changed.

For the sprite to turn, then it must rotate 360 degrees in a direction.

From the code segment, we have the following rotations

180 degrees left90 degrees left90 degrees right

When the angles of rotation are added, we have:

[tex]\theta = 180 + 90 - 90[/tex]

[tex]\theta = 180[/tex]

i.e. the code segment implements a 180 degrees rotation

In order to turn the sprite around, she needs to change the 90 degrees right to 90 degrees left.

So, we have:

[tex]\theta = 180 + 90 + 90[/tex]

[tex]\theta = 360[/tex]

Hence, the fix to the error is (d) Change "turn right 90 degrees" to "turn left 90 degrees"

Read more about sprites at:

https://brainly.com/question/26549550

Dominic is an industrial designer who's developing an office chair that is more comfortable for tall individuals. He hires a software engineering firm to develop a simulation that can simulate the chair used by a person working at a desk, and then come up with an estimate of the resulting comfort level.
Which detail is least necessary for this simulation?
A. The heights of the most popular office desks
B. The three-dimensional shape of the chair
C. The range of colors available for the chair’s fabric
D. The tendency of the chair to incline backward in response to pressure from the user

Answers

Answer:

C. The range of colors available for the chair’s fabric

hope this helps

scav

Your Windows system boots to a blue screen stop error and no Start screen or desktop. What do you do first

Answers

Answer:

Attempt to boot into Windows RE using the Windows setup DVD or a recovery Drive

Explanation:

Byte pair encoding is a data encoding technique. The encoding algorithm looks for pairs of characters that appear in the string more than once and replaces each instance of that pair with a corresponding character that does not appear in the string. The algorithm saves a list containing the mapping of character pairs to their corresponding replacement characters.
For example, the string "THIS_IS_THE_BEST_WISH" can be encoded as "%#_#_%E_BEST_W#H" by replacing all instances of "TH" with "%" and replacing all instances of "IS" with "#".
For which of the following strings is it NOT possible to use byte pair encoding to shorten the string’s length?
a) "BANANA"
b) "LEVEL_UP"
c) "MEET_ME_LATER"
d) "NEITHER_HERE_NOR_THERE"

Answers

Answer:

The encoding algorithm looks for pairs of characters that appear in the string more than once and replaces each instance of that pair with a corresponding character that does not appear in the string. ... Byte pair encoding is an example of a lossy transformation because it discards some of the data in the original string.

Explanation:

hope it helps!!

An IPv4 address has 32 bits, so there are 232 (over 4 billion) possible IPv4 addresses. Since the Internet is gaining devices quickly, we will soon surpass 232 unique devices on the Internet.
In anticipation of all the new Internet devices, we are in the process of switching to IPv6, which uses 128 bits for a single address. That’s 96 extra bits to represent one address!
Which of the following statements correctly describes how many more addresses will be possible to represent by switching from IPv4 to IPv6?
i. 96 more addresses can be represented with IPv6
ii. 296 more addresses can be represented with IPv6
iii. 96 times as many addresses can be represented with IPv6
iv. 296 times as many addresses can be represented with IPv6

Answers

Answer:

Explanation:IPv4 is almost used up due to the constant increase in devices so therefore IPv6 was implemented to combat this issue, IPv6 uses 128 bit addresses, allowing 3.4 x 1038 unique IP addresses. This is equal to 340 trillion trillion trillion IP addresses. IPv6 is written in hexadecimal notation, separated into 8 groups of 16 bits by the colons, thus (8 x 16 = 128) bits in total. Which essentially means both me and you wont see IPv6 run out in our life times nor will you kids kids.

The 96 times as many addresses can be represented with IPv6. Hence option 3 is correct.

What are addresses?

Addresses are defined as the address, street name, and town name where a person resides or works and where mail can be sent: her home and office addresses. a shift in address. Memory addresses are used by computer programs to execute machine code and store and retrieve data. A device or CPU uses a memory address as a specific identifier to track data. The CPU can keep track of where each memory byte resides in the system by using this binary address, which is determined by an ordered and finite sequence.

The magnitude of IP addresses is the fundamental distinction between IPv4 and IPv6. Unlike IPv6, which has a 128-bit hexadecimal address, IPv4 has a 32-bit address. Compared to IPv4, IPv6 has a broad address space and a straightforward header.

Thus, the 96 times as many addresses can be represented with IPv6. Hence option 3 is correct.  

To learn more about addresses, refer to the link below:

https://brainly.com/question/29065228

#SPJ5

I need help NOW with my java script!! 1. What will the code below output to the console and why? const person = {
age: 20,
name: 'Ben'
};

const peopleArray = [person, person, person];
peopleArray[1].name = 'Joe';
console.log(peopleArray[0].name);

Answers

Using a JS console when using the following code:

const person = {

   age: 20,

   name: "Ben"

};

const peopleArray = [person, person, person];

peopleArray[1].name = 'Joe';

console.log(peopleArray[0].name); (Returns: Joe)

What is the strongest technology that would assure alice that bob is the sender of a message?.

Answers

Answer:

it would be a digital certificate

Explanation:

What type of dns record is used to map hostnames to ipv6 addresses?.

Answers

Answer:

IP Version 6 Address record (AAAA Record)

Explanation:

Address Mapping record (A Record)—also known as a DNS host record, stores a hostname and its corresponding IPv4 address. IP Version 6 Address record (AAAA Record)—stores a hostname and its corresponding IPv6 address.

list and explain 3 commonly used high-level languages​

Answers

look the image

hope it helps

Make your own Multimedia Presentation using Microsoft Powerpoint. The presentation must be all
about yourself. Make it presentable with animations and transformations, attach file, audio or
images to make it more fun and exciting. Limit it to 5 slides only, tell something about yourself,
your hobbies, dreams, aspirations, achievements, likes and dislikes, etc. Attach your output upon
submission to the assignment given.

Answers

Dm me ill do it for 20 points

Linda works from home occasionally and needs to set up her computer at work so she can remote in from her home office. Which tools should she use

Answers

Explanation:

Check the type of hard drive installed.

hope this helps you ❣️

An insurance organization has data on a large number of claims made by policyholders. The management has a process in place to regularly check the data warehouse for fake claims. Which application of data mining does the organization use? A. market segmentation B. customer retention C. fraud detection D. direct marketing

Answers

The application of data mining the organization uses is known as : Fraud detection.

What is data mining?

Data mining refers to the process of retrieving data that can be worked on from a large set of data, to solve business problems and reduce risk.

In a data mining process, the aim is to find anomalies and correlation so that outcomes can be predicted using different types of techniques.

Hence, the application of data mining the organization uses is known as fraud detection.

Learn more about data mining here : https://brainly.in/question/2000228

Answer:

C. Fraud Detection

Explanation:

For situations that may be too dangerous, costly or otherwise too difficult to test in the real world, what do computer scientists create in order to draw help discover new knowledge and create new hypothesis related to what situation they are studying

Answers

What computer scientists create in order to draw help discover new knowledge and create new hypothesis related to what situation they are studying is called stimulations.

What is stimulations?

Stimulation tends to make use of model in order to enables computer scientists to discover more information about  the situation they are investigating.

Stimulations is of great important to computer scientist because it is more reliable when creating an hypothesis .

Inconclusion what computer scientists create in order to draw help discover new knowledge and create new hypothesis related to what situation they are studying is called stimulations.

Learn more about stimulations here:https://brainly.com/question/24912812

Examine the following declarations:


int area;
Point pt;


Which of the following is true?

a. both are primitive variables

b. area is a primitive variable, and pt is an object reference variable.

c. both are reference variables

d. area is an object reference variable, and pt is a primitive variable.

Answers

C. Both are reference variables

Which is not a method for updating your dts personal profile?.

Answers

Using the grip tools feature on the travel explore Home Screen

can some please help


why was it made

Answers

Answer:

papa bill needed money

Explanation:

An _________ conditon is when a computed result goes beyond what can be stored given the computer's architecture.

Answers

The answer is overflow

Difference between passing argument or return value

Answers

The argument is any string you pass to your function when you call it. The return value is the number of words.

In this exercise we have to use python programming knowledge to describe a function, so the code is:

The code is in the attached image.

What is string in programming?

Strings are strings of characters that store textual data and, therefore, can store information for the most diverse purposes. The content of a string can represent a fact in itself, or information.

In a simpler way we have that the code in python will be:

#include <stdio.h>

#include <string.h>

int main()

{

   /* String Declaration*/

   char nickname[20];

   printf("Enter your Nick name:");

   /* I am reading the input string and storing it in nickname

    * Array name alone works as a base address of array so

    * we can use nickname instead of &nickname here

    */

   scanf("%s", nickname);

   /*Displaying String*/

   printf("%s",nickname);

   return 0;

}

See more about python at brainly.com/question/26104476

2q +2q is what please answer

Answers

Answer:

4q

Explanation:

because 2+2=4 and you just add the q after if q has no value yet.

what is a procedure in a python?

Answers

Answer:

A procedure allows us to group together code blocks under a name of a certain condition / nest.

What is the difference between a program counter, an instruction register, and the program status word

Answers

Answer:

You will need both always. The program

counter (PC) holds the address of the next instruction

to be executed, while the instruction register (IR) holds

the encoded instruction. Upon fetching the instruction,

the program counter is incremented by one "address

value" (to the location of the next instruction)

How would you write 100111 as a byte

Answers

Answer:

100111 converts to 39 byte

Explanation:

Hope this helped

Lourdes is going to create a company logo. She will create it in a vector format so that she can resize it without distortion. Which software works best for her needs

Answers

Explanation:

military

hope this helps you

Which network protocol is used to route ip addresses?.

Answers

Answer:

the Internet Protocol (IP)

Other Questions
A force of 50 N displaces an object by a distance of 80 cm. Calculate the workdone. What coordinate is the island of Madagascar close to on the map? 5x +(9+17)x320-10 divided by 2 The surface along which the crust moves is called a fracture.TrueFalse Please need help !!!!!! class 10 english sets book poem the road not taken questions and answers A man pulls a box with an applied force of 500N. He pulls the box 100.0 m. About how much work does he do? Question options: 0.5 J 50,000 J 5,000 J 2 J PLSSSSSSS HELPPPPPPPPP A test question asks you to find two side lengths of a 45 -45 -90 triangle. You know that the length of one leg is 6, but you forgot the special formula for 45 -45 -90 triangles. Explain how you can still determine the other side lengths. What are the other side lengths? help meh please :)_________________ 3/6x - 7 = 2/6x - 4Pls help!!this is due tomorrow PLS PLS ANSWER WITH WHOLE SOLVING EXPLANATION LIKE INCLUDE STEPS YOU DID The Black Regiment in the provided picture, known as the _____, were instrumental during the fighting of the Indian Wars on the Western Frontier of the United States. A. Rough RidersB. Easy CompanyC. Tuskegee AirmenD. Buffalo Soldiers A point on a pre-image is currently located at (1, -3). The pre-image is translated 3 units right and 6 units up. What are the NEW coordinates for the point after the translation? Use graph paper to sketch the translation if needed. Question 3 options: A. (3, 4)B. (4, 3) C. (7, 0)D. (-2, 2) Hurryyyy please u dont have time I will give brainlistThis table shows the results of rolling a number cube with sideslabeled 1 through 6 several times.OutcomeNumber of times outcome occurred110What is the experimental probability of rolling a 2 or a 4?26Enter your answer as a fraction in simplest form in the box.34485Basic6667889-y10.4156x12.3+$0++%0.:A&==TOTT What fraction of 5 is 1/2 For every quarter spent, Reggie receives 50 food pebbles to feed the fish at a hatchery. Reggie has thrown 350 food pebbles into the fish pools. Find the number of quarters Reggie spent at the hatchery. (Please use a label with this solution) * The colors of uae flag had never been used before. True or False Working together, Jacob and Heather can sweep aporch in 5.45 minutes. Had she done it alone it wouldhave taken Heather 12 minutes. Find how long it wouldtake Jacob to do it alone. What is the repetition of consonant sounds at the beginning of multiple words placed close together in poetry? alliteration rhythm metaphorassonance Calculate the kinetic energy in j of an electron moving at 6. 00 106 m/s. The mass of an electron is 9. 11 10-28 g.