subject

Create a C function called torus_volume which will have two input parameters-inner (a) and outer (b) radius. The function will calculate the volume of the torus which is given by the following equation:
V = pi pi'(a + b)(a - b)' (a - b)

Now, write a main program which will ask the user to enter the inner radius. The outer radius is calculated as two times larger than the inner radius. This program then will call the torus volume function from the main function to calculate the volume of the torus and print the result inside the main program.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Pthe price of tickets in a group when a purchased in bulk can be found with the equation c=px+24 were c is the cost, p is the number of people,and x is the price per ticket. what is price of of each ticket if it costs $189 to buy tickets for 15 people ? a $8 b $24c $9d $11 show work
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Other - a written response, no less than arial 12-point font, to the following: of the following, which would you consider is most important to customer service goals? choose one and explain why. (1) accuracy (2) punctuality and attendance (3) courtesy (4) productivity (5) organization
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
You know the right answer?
Create a C function called torus_volume which will have two input parameters-inner (a) and outer (b)...
Questions
question
Mathematics, 22.07.2019 00:32
question
Social Studies, 22.07.2019 00:32
Questions on the website: 13722367