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

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Creating class savingsaccount using static variable

Create class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders.

  Program to track which user is logged onto which computer

Write a computer program that could be used to track, by lab, which user is logged onto which computer.

  Deisgn class contains data fields for height and surfacearea

Deisgn a class named Rectangle that contains data fields for height width and surfaceArea and a method named computeSurfaceArea?

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

  Explaining class with no constructors

How many constructors can a class have? Can you have a class with no constructors? If a class has more than one constructor, which of them gets called?

  Recursive method to search a string for a byrd

Write a recursive method that searches a string for a Byrd. A Byrd has the following properties. Its first character is an 'A'. If it is a two character Byrd then its second and last character is an 'H'.

  Write program to read integers and finds largest of them

Write a program that reads integer, finds the largest of them, and counts its occurrences. Assume thant the input ends with number 0. suppose that you entered 3 5 3 5 5 5 0.

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Program has function named presentvalue for calculations

Write a program that has a function named presentValue that performs this calculation. The function should accept the future value, annual interest rate, and number of years as arguments.

  Determine total cost of order-display it in alert dialog box

After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.

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