Write an Ada program that calculates and prints the diameter, the circumference, or the area of a…

Write an Ada program that calculates and prints the diameter, the circumference, or the area of a…


Write an Ada program that calculates and prints the diameter, the circumference, or the area of a…

Write an Ada program that calculates and prints the diameter, the circumference, or the area of a circle, given the radius. The program should prompt for what type of calculation is requested, read an appropriate enumeration literal, prompt for a radius, read a float number, and, finally, display the result of the desired circle calculation. The program should echo print the input data. The output should be appropriately labeled and formatted to two decimal places. Your output might look like this:

Write an Ada program that calculates and prints the diameter, the circumference, or the area of a…