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

  Provide training or education in the internal audit

You are asked by your audit supervisor to identify national colleges or universities that provide training or education in internal audit or IT auditing area.

  How can you make sure that the proper indexes have been put

As an analyst, how can you make sure that the proper indexes have been put in place so that users are not waiting for weeks to receive the answers to their questions?

  What could be done to minimize such effects

What are some of the limitations or dangers you see in the use of AI technologies such as expert systems, virtual reality, and intelligent agents? What can be done to minimize such effects.

  Create an app that displays a digital clock on the screen

For this sixth Critical Thinking Assignment you will create an app that displays a digital clock on the screen. The app should include alarm clock functionality

  Tcp connections experience data segment loss

TCP connections experience data segment loss

  Design a pulse-mode circuit

Design a pulse-mode circuit using the following state table.

  List the time for the worm finishes infecting all computers

List the time for the worm finishes infecting all vulnerable computers in each run; so you need to provide 3 time values.

  What are the ip fragment offsets and more flags

Given an IP packet of 540 bytes and a maximum packet size of 200 bytes, what are the IP Fragment Offsets and More Flags for the appropriate packet fragments?

  How many bits of entropy does this string contain

Suppose you have a 50-bit string that contains exactly 37 ones at random positions. How many bits of entropy does this string contain?

  Compare the use package clause and the use type clause

Explain what the with and use clauses do. Compare the use package clause and the use type clause. Why should Ada programmers avoid the use package clause?

  Draw a design of a cloud based system for storing

SIT113 - Cloud Computing and Virtualisation Trimester Assignment. Draw a design of a cloud based system for storing, accessing, updating, processing, securing, sharing, and publishing S-mart data and information

  Create naming conventions for each entity and attributes

Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable.

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