please help me how i would write these two programs. im learning c++ and am having difficulties, if anyone can help i will greatly appreciate it.

Write a C++ program that displays the results of the expressions 3.0 *5.0, 7.1 * 8.3 – 2.2, and 3.2 / (6.1 * 5). Display the results of each calculation right aligned rounded to two decimal places similar to what is shown below. Calculate the value of each expression manually to verify that the displayed values are correct. An example of how to display output for the first problem is shown below (note there are three math problems to do – you don’t need to use variables just use literals and expressions):

3.0

* 5.0

------

15.00

.... please dont say we dont want to do your homework. thats not the issue. im not going to learn by not doing anything.

the next one is....

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). When you display the results you should display the area of the base of the pyramid, the height of the pyramid, and finally the volume of the pyramid. Make sure and format your output in a reasonable way.

^ i have the coding for this, but it calculates the volume, but it needs to calculate the area first, then the volume. i dont know what to do, my head is going to explode.. have been trying to work on these for over a week, nothing.