Hey Everyone, new to the board, but I'm currently struggling to finish my final code for my C Programming class. First time taking a programming class, and its going alright, some bumps on the way but fairly fine.

Here are the instructions that were given.

DESCRIPTION

You are required to write a C program that will calculate the following:

Perimeter: Square, Rectangle, Triangle, Circle.

Area: Square, Rectangle, Triangle, Circle.

Volume: Cube, Rectangular Prism, Triangular Pyramid, Sphere.

DETAILS

- Your program must allow the user to choose whether they want to calculate the Perimeter, Area orVolume. Provide a menu.

- Once they’ve chosen their calculation from the Perimeter, Area or Volume menu your program mustprovide a menu with the available geometric shapes in the corresponding option. You must provide amenu again.

- Your program must ask the user for the appropriate measurements needed to perform the calculations.Don’t forget to validate the user’s input.

- Make sure that user knows the units in which the calculations are performed and display the units in thefinal result. You are free to use your own measuring units.

- Your program should print the result of the calculations to 2 decimal places. Make sure that yourformulae use the correct data type to give the correct result.

- The user must be able to make as many calculations as he wishes.

-Your program must include at least: one switch statement, repetition structures, and if/elsestatements.- Your source code must be readable and maintainable as possible by including meaningful comments,proper indentation, meaningful variable identifiers, constants, etc.

- Your program must have the following 4 user defined functions:

- void Menu(void); //displays a menu to the user

- double perimeterSquare(float length); //returns the perimeter of a square with a given length

- double areaSquare(float length); //returns the area of a square with a given length

- double volumeSquare(float length); //returns the volume of a square or cube with a given length

- You will add at least 3 more user defined functions.

- Your program must be user friendly, this includes readability of results and prompts.

-- WHAT TO SUBMIT

You must submit the source file (Calculator.c) through the class website.

-- EXAMPLE OF OUTPUT

This program calculates the Perimeter, Area, and Volume of geometrical figures.

Menu

1) Perimeter

2) Area

3) Volume

- What would you like to calculate?

User choice: 1

- What geometrical figure would you like to use for Perimeter?

1) Square

2) Rectangle

3) Triangle

4) Circle

User choice: 2

Please enter the following values in meters.

Length: - 0.25

ERROR: The value of Length must be a positive value. Please try again.

Length: 0.25

Width: 0.50

- The perimeter of the rectangle is: 1.50 m

Would you like to make another Perimeter calculation (1 for Yes, 2 for No)? 1

What geometrical figure would you like to use for Perimeter?

1) Square

2) Rectangle

3) Triangle

4) Circle

User choice: 1

Please enter the following values in meters:

Length: 0.3

The perimeter of the square is: 1.20 mWould you like to make another Perimeter calculation (1 for Yes, 2 for No)? 2

Would you like to go back to the Main PAV menu (1 for Yes, 2 for No)? 1

Menu

1) Perimeter

2) Area

3) Volume

- What would you like to calculate?

User choice: 2

Which geometrical figure would you like to use for Area?

1) Square

2) Rectangle

3) Triangle

5) Circle

User choice: 1

Please enter the following values in meters:

Length: 2.5

The area for the square is 6.25 m^2

Would you like to make another Perimeter calculation (1 for Yes, 2 for No)? 2

Would you like to go back to the Main PAV menu (1 for Yes, 2 for No)? 2

****** Thank you for using this calculator. Goodbye. ******

I've attached my code so far in the attachments. Currently stuck and have no clue what to do. Any corrections or guidance will be greatly appreciative.

The project is due on Monday April 18, 2016 at 11:55pm EST

Please help me finish this class with either an A OR B.

THANK YOU AGAIN

If needed to get in contact with me my email << nobody cares what your email is >>

Thank you