Can someone help program this for me?

Can someone help me with this C++ program?

  • I need help with how to set this up, can someone work it out for me so i can look it out and try to figure out how you did it. It's really above my level of programming even though to you or others it may seem easy. 1. Write a C++ program to calculate the surface area,volume, or cross sectional area of a sphere. Use functions to calculate each figure. Formulas are Sphere Volume = 4.0/3.0 PI r^3 Surface area = 4.0 PI r^2 Cross sectional area = PI r^2 2. The input of the program will be a letter. "V" will indicate volume, "A" the surface area, "X" the cross sectional area. The second part of the input will be a single (Float) number representing the radius. For example: A 12.8 means find the surface area of a sphere with radius 12.8 V 15.7 means find the volume of a sphere with radius 15.7 3. For each input, just calculate what is needed for, not all three answers. Use functions for each calculation and Nested decesions to control your actions. The output should have appropriate labels. Use format to control the appearance of your answers. 4. Use a sentinel loop to read the data. When q or Q is entered for the operation, the loop will terminate. The program should work for any data set, not just the data set below. Use regular functions to calculate area, volume, and surface area. Use a void function and call by reference to read the radius. Input: A 15.9 X 12.8 V 34.8 A 23.8 Q (the sentinel) Output: As specified above.

  • Answer:

    Sure! Bit try using the correct variables.

Joshua C at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Sure! Bit try using the correct variables.

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.