Compute the volume of a sphere of radius

Assignment Help Computer Engineering
Reference no: EM132198897

Write a full C ++ program that computes the volume of a sphere of radius, r, ( V_sphere = (4/3)*pi*r3) and the Area of a sphere( A_sphere = (4*pi*r^2)/h) where h is some division(a section of) of the area.

It starts by asking the user for a value of r and if r >0 but < 50 cm it computes the spherical volume and outputs that Clearly to the user along with the radius being used (note units of volume here are cm3.

If the value of r obtained from the user of the program is > 100 cm than the program calculates the area of a sphere but it must ask for the h
value or the division(or part of the area) wanted of the sphere in that case.

It outputs the area of the sphere along with the h value. The program continues (it asks for another value of r then returns ) until r=0 which causes it to terminate. If r is out of the range then your program should produce a message to the user stating that fact.

Reference no: EM132198897

Questions Cloud

What is the mission of the nyse : The most famous financial market in the world is the New York Stock Exchange. What is the mission of the NYSE? Firms must pay a fee to list their shares.
Find strategy map for an organization online : Find a strategy map for an organization online and identify the most critical activities for each perspective.
Wearing body cameras could effectively reduce crime : Discuss how police wearing body cameras could effectively reduce crime or improve community relations with the police.
What effect should the given have on interest rates : Monetary growth, as measured by M1, was growing faster in 2004 relative to 2007. What effect should this have on interest rates in the U.S.?
Compute the volume of a sphere of radius : Computes the spherical volume and outputs that Clearly to the user along with the radius being used (note units of volume here are cm3.
Improve the performance current operation : Select an OM technique that you have never used before to improve the performance a current operation which can be job-related or non-job related.
How much money would you receive each year after taxes : In January 2016, the record-shattering Powerball jackpot amounting to $1.5864 billion was won by three ticket holders, John and Lisa Robinson.
What should their order up to quantity be : If following a fixed time inventory system with a review period of 2 weeks, what should their order up to quantity be?
Write a program to read a string and count the vowels : Write a program to read a string and count the vowels. The program should provide a count for each vowel and a total count of vowels.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Questiongenerate a new java project in eclipse and complete

questiongenerate a new java project in eclipse and complete following requirements based on the threads. some threads

  How a synchronous time division multiplexor stay synchronize

How does a synchronous time division multiplexor stay synchronized with the demultiplex or on the receiving end?

  Questiontwo stacks of positive integers are required both

questiontwo stacks of positive integers are required both containing integers with values less than or equal to 1000.

  Assuring the snmp security

Create an argument for modifying to the other version or staying with v1 and forming the essential modifications to assure the SNMP security the v1 requires.

  Find first 20 bytes of the output of the rc4 algorithm

Find the first 20 bytes of the output of the RC4 algorithm when run with the key - explain whether the cipher is a secure pseudorandom permutation

  How to set up or recover cybersecurity

How to set up or recover cybersecurity.

  Describe the advantages and disadvantage of magnetic storage

Describe the advantages and disadvantages of magnetic storage, optical storage, and solid state storage using criteria such as versatility, durability, capacity, access time, and transfer rate.

  To practice more with collections and exceptions

These students do not have an ID, but they do have a phone number. Two students are the same if they have the same name and phone number.

  Minimize the total cost

The problem is to assign the people to the jobs to minimize the total cost of the assignment. Express the assignment problem as a 0-1 linear programming problem

  Benefit of ethical hacking

Describe what you consider is the main benefit of the ethical hacking be sure to involve what is the role of an ethical hacker.

  Describe and explain the relationships among morality

Describe and explain the relationships among morality, ethics, law and crime as they intersect in the case example that you have found

  Summarize two key information security practices

Summarize two key information security practices you recommend the company implement. Provide supporting examples/research/justification

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd