Calculate and display optimal cost for cylindrical container

Assignment Help Programming Languages
Reference no: EM1367513

The company wants to know the optimal cost for a cylindrical container that holds a specified volume. Write a fragment of code that uses an ask-before-iterating loop. During each iteration of the loop, your code will ask the user to enter the volume and the radius of the cylinder. Compute and display the height and cost of the container. Use the following formulas, where V is the volume, r is the radius, h is the height, and C is the cost.

h = (V)/(pi)r^2

C = 2(pi)r(r+h)

Reference no: EM1367513

Questions Cloud

What is their mass final speed : A vertical scale on a spring balance reads from 0 to 225. The scale has the length of 11.5 from the 0 to 225 reading. A fish hanging from the bottom of the spring oscillates perpendicularly at a frequency of 3. Ignore the mass of the spring, what ..
Calculate exchange value of the pound : Assume that under the Bretton Woods system, dollar is pegged to gold at a rate of $35 a ounce and pound sterling is pegged to the dollar at a rate of $2 = £1.
Illustrate what was real interest rate that sally earned : She put her savings into mutual fund that paid a nominal interest rate of 7 percent a year. CPI was 165 at beginning of year and 177 at end of year. Illustrate what was real interest rate that Sally earned.
Nursing research course : This solution is for a graduate level nursing research course in which I require your guidance in understanding the given question:
Calculate and display optimal cost for cylindrical container : Compute and display the height and cost of container. Use the following formulas, where V is volume, r is radius, h is the height, and C is the cost.
Estimate current value of bond when interest rate : Write down equation that can be solved for yield to maturity of this bond: that is, equation that equates Current value of bond payments to cost of bond. Estimate Current value of bond when interest rate is 8%.
Assessing the generalisability of quantitative research : The criteria used to evaluate the generalisability of quantitative research studies are validity and reliability
Determine purchasing power parity : If the average price of goods in Europe increase from 100 in year 2000 to 130 in year 2010. If the average price of goods in the U.S. rises from 120 in year 2000 to 140 in year 2010.
Interrelationship between four financial statements : What is the interrelationship between the four financial statements? Why is it important to make comparisons using ratio analysis? What are the different ways you can make comparisons?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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