Calculate the volume of the pyramid

Assignment Help C/C++ Programming
Reference no: EM132106345

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 guarantees a perfect score .

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.

Reference no: EM132106345

Questions Cloud

Why is continuious assessment of a client : What are the considerations in comparison to a person only diagnosed with an Alcohol Use Disorder and Why is continuious assessment of a client
Discussing the negative side effects of biomass utilization : Gordon and Gloria are discussing the negative side effects of biomass utilization. Gordon maintains that the worst problem occurs when
Generate a game board with three randomly placed symbols : One player designates their move with an X whereas the other player designates their move with an O.
Relationship between ptsd and child development : What is the relationship between PTSD and Child Development is a good area, but too broad for a research topic
Calculate the volume of the pyramid : Write a C++ program that asks the user to enter the necessary information about the pyramid.
Extreme moodiness fluctuating between depression : Nick is an adolescent boy who has been very difficult for his parents. He experiences extreme moodiness fluctuating between depression and intense feeling
Does having a mental problem and being addicted : Does having a mental problem and being addicted make you a higher relapse risk?
If faced with a values conflict with a client : If faced with a values conflict with a client, how would you go about trying to resolve it? and which conflicting values might you find most difficult
Chemical dependency counselor : What values would be important to have as a human service worker or chemical dependency counselor? and why?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd