Write a program that allows the user to enter the name of a


1. Write a program that allows the user to enter the name of a planet, and then prints a message stating that planet's number when counted outward from the sun. If the user enters a datum that is not a planet, your program should print a message to that effect. 
You will probably want to begin your program by declaring an array of string literals, as shown below. You can then refer to the name of planet i with planets[i]. 
char* planets[8] = {"Mercury", "Venus", "Earth", "Mars",
"Jupiter", "Saturn", "Uranus", "Neptune"};
An example run might look like the following: 
Enter a planet name: Earth
Earth is planet 3, counting outward from the Sun.

2. Write a program to find the area and circumference of circle,rectangle, based on the given choice. The input should be accepted until user stops entering the input for various circles and rectangles.(Hint :Use switch statement inside while loop ) 
The above pgm should be implemented using the following functions.
1.float * areaCircle(float );
2.float * circumCircle(float );
3.float * areaRect(float ,float );
4.float *circumRect(float ,float );
5.float *NewShapeArea(float outputof 1,float outputof 3) [The NewShapeArea is given by Area Of Circle + Area Of Rectangle ]

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that allows the user to enter the name of a
Reference No:- TGS0146563

Expected delivery within 24 Hours