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

  Discuss the tester and developer relationship

Discuss the tester and developer relationship within spiral development methodology. You may use your personal experiences to support the arguments.

  Compute and return the number of entries in d with key k

Let D be an ordered dictionary with n entries. Compute and return the number of entries in D with key k such that k1 = k = k2.

  Imagine that you run a photography printing store your

explain the life cycle of an information systemsapply the steps of the life cycle to the scenario listed belowimagine

  Explain the dml information statements

For the following situation you need to DEFINE (produce SOR), DESIGN (Produce ERD and LDBD (RDM)), DEVELOP (DDL statements, DML data statements).

  Why every edge of g not in t goes from a vertex in t

Argue why every edge of G not in T goes from a vertex in T to one of its ancestors, that is, it is a back edge.

  Identify information privacy regulations and laws for an

write a 3-4 page paper discussing information privacy issues and laws in an industry. select the industry if possible

  Identify any non-financial reasons to subscribe to a ddos

Outline a quantitative approach for justifying the use of a DDoS mitigation service to protect an e-commerce company such as SpaFinder.

  Discuss body of literature that is used to motivate research

What is the main research problem addressed in the article? Summarize the research questions in a few sentences.

  How using the sequence structure only

As you know, three fundamental control structure are sequence, selection and repetition. Can you write down C program using the sequence structure only.

  List and in brief describe the five-component model of an

list and briefly explain the five-component model of an information system. how can you use them?your response should

  Evaluate the amplitude-modulated pam signal

In a carrier-amplitude-modulated PAM system, the transmitter filter has a squareroot raised-cosine spectral characteristic with rolloff factor ex = 0.5.

  Analyze the monitoring requirements and potential pitfalls

List the activities that will be outsourced, the skills / labor / material required, and the contract type. Analyze the monitoring requirements and potential pitfalls for each selected contract type

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