Write the c++ program that will take the following arguments:a.Name (figure type): diamond, trapeze, circle, rectangle
b.Subsequent parameters required to calculate fields and perimeters of the particular figures (for each one they are different!)and will print on the screen results of calculations. For each figure the separate function should be created.
It should be selected based on the name of the figure (with the switch..case structure)