subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
You know the right answer?
For this program you should be able to match the output in Hypergrade, if you are off a space or two...
Questions
question
Mathematics, 01.12.2021 05:40
question
Mathematics, 01.12.2021 05:40
question
English, 01.12.2021 05:40
Questions on the website: 13722362