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
uranmaximum [27]
3 years ago
10

3. Write a program to find the area of a triangle using functions. a. Write a function getData() for user to input the length an

d the perpendicular height of a triangle. No return statement for this function. b. Write a function trigArea() to calculate the area of a triangle. Return the area to the calling function. c. Write a function displayData() to print the length, height, and the area of a triangle ( use your print string) d. Write the main() function to call getData(), call trigArea() and call displayData().
Computers and Technology
1 answer:
hjlf3 years ago
4 0

Answer:

The program in C++ is as follows:

#include<iostream>

using namespace std;

void displayData(int height, int length, double Area){

   printf("Height: %d \n", height);

   printf("Length: %d \n", length);

printf("Area: %.2f \n", Area);

}

double trigArea(int height, int length){

double area = 0.5 * height * length;

   displayData(height,length,area);

   return area;

}

void getData(){

   int h,l;

   cin>>h>>l;

   trigArea(h,l);

}

int main(){

   getData();

   return 0;

}

Explanation:

<em>See attachment for complete program where comments are used to explain the solution</em>

Download cpp
You might be interested in
the development of modern computer system have been evolutionary, discuss this phenomena and further explain how current trends
Volgvan

Answer: Why are there so many of these?

The modern computer system has been evolutionary. Modern computers have allowed for us to complete hard tasks rather easily. With modern computers, we are able to calculate advanced equations with the click of a button. Trends in computing like RTX can rapidly improve performance, rendering, and tons of other graphical heavy actions. In September of 2018, we got the first RTX card, now in 2021, RTX has become exponentially better than what it was in 2018. With the modern computers comes quantum computers. Quantum computing is estimated to be 100 million times faster than any modern computer. IBM, the company to make the first computer stated that we are in the decade of quantum computing. And who knows? Maybe quantum computing will come sooner rather than later.

Explanation:

You probably should modify this a little so you don't get in trouble. I researched each topic I put into this for about an hour so I hope this is what you need. If it isn't, please don't hesitate to tell me what I didn't add or what went wrong.

Have a good day :)

5 0
3 years ago
What is a dropcap as used in a computer word document
shutvik [7]

DROP CAP:-

<u>Drop caps are a specific kind of initial letter, large letters that appear at the beginning of a block of text. ... A drop cap is often used to signify that the reader's moved into a significant new section, or that a new chapter's begun.</u>

<u>Drop caps are a specific kind of initial letter, large letters that appear at the beginning of a block of text. ... A drop cap is often used to signify that the reader's moved into a significant new section, or that a new chapter's begun.A drop cap (dropped capital) is a large capital letter used as a decorative element at the beginning of a paragraph or section. The size of a drop cap is usually two or more lines. The following illustration shows your options for positioning a drop cap.</u>

3 0
3 years ago
We can successfully manage influences in our lives by
Natalija [7]

Answer:

D

Explanation:

8 0
4 years ago
The average and distribution of properties, like orientation or color, over a set of objects or a region in a scene are called t
AnnZ [28]

Answer:

Ensemble statistics, non selective pathway.

Explanation:

Ensemble statistics is the statistical examination of a group of items which are being viewed as one entity and not as a separate item. And at this point we are talking about the average and the distribution of possessions such as the alignment or hue, over a group of objects or a section in a scene, and therefore it is labeled as the ensemble statistics of the scene. And this is calculated by the nonselective pathway, as this is a form of graphic exploration in the scene, and there are non-selective and selective pathways of visual examination. The non-selective pathways are not planned to distinguish the objects or letters. And henceforth, ensemble statistics and the nonselective pathway is the precise answer.

4 0
3 years ago
An automated search feature used by search engines to find results that match your search terms is called spider or
LenKa [72]
The answer is crawler
6 0
4 years ago
Other questions:
  • What of the following google tools support collaboration
    10·1 answer
  • Can somebody help me?
    11·1 answer
  • Which of the following statements are true regarding Steve Jobs and Steve Wozniak? Select 3 options.
    5·2 answers
  • Fred has to write a report on the general opinion of the influence of television on political decision-making. What internet res
    11·2 answers
  • Does anyone know a way to skip the videos on Edgnuity?
    15·1 answer
  • Based on the following passage on construction technology during the Middle Ages, why might a worker not be allowed to join a gu
    15·1 answer
  • Which command is used to copy entire folder structures between volumes or across a network while maintaining all NTFS file permi
    10·1 answer
  • What is the code i need to do
    12·1 answer
  • What do you understand by the term "Artificial Intelligence "?​
    10·1 answer
  • modify hw 02 c.c to use envp instead of environ. be sure that you understand how the code works. provide liberal comments to exp
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!