Computers and Technology

For this program you should be able to match the output in Hypergrade, if you are off a space or two it's not the end of the world but if you do match (with a green submission) it you almost guarantees a perfect score (assuming you've followed instructions) where if you don't match (a yellow submission) you can still get perfect but I will look at your code a more closely and I might find errors I wouldn't have otherwise found. The formula to compute the volume of a square based pyramid is:
Volume of Pyramid = A*h/3
where A is the area of the base of the pyramid and h is the height of the pyramid.
Write a C++ program that asks the user to enter the necessary information about the pyramid (note that the user would not know the area of the base of the pyramid, you need to ask them for the length of one of the sides of the base and then calculate the area of the base). Using the information the user input, calculate the volume of the pyramid. Next display the results (rounded to two decimal places).
Example Output (output will change depending on user input):
The area of the base of the pyramid is: 25.00
The height of the pyramid is: 5.00
The volume of the pyramid is: 41.67
*Pseudocode IS required for this program and is worth 1 point.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:40, cutybrain6054
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
image
Computers and Technology, 23.06.2019 05:00, mariahchaparro08
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, savannnab1890
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
image
Computers and Technology, 24.06.2019 03:40, Eylul30
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i. e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
Do you know the correct answer?
For this program you should be able to match the output in Hypergrade, if you are off a space or two...

Questions in other subjects:

Konu
English, 05.05.2021 21:00