subject

Write a function float computearea(int *v1, int *v2, int shape )that computes the area of fourbasicgeometric entities. the geometric entity will be identified by the argument shape which is 1 for triangle, 2 for square/rectangleand 3 for circle. the arguments v1 and v2 are pointers to the two arguments defining the shape. for circle v1 is a pointer to the diameter of the circle, v2 is null, for rectangle/square, v1 and v2 are pointers to the height and width for triangle v1 is a pointer to the the base and v2 points to the height of the triangle.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
You know the right answer?
Write a function float computearea(int *v1, int *v2, int shape )that computes the area of fourbasicg...
Questions
question
History, 02.03.2021 01:00
question
Mathematics, 02.03.2021 01:00
question
Mathematics, 02.03.2021 01:00
Questions on the website: 13722361