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

  Develop computerized pot hole tracking and repair system

Department of public works for city has decided to develop computerized pot hole tracking and repair system. As pot holes are reported to customer service.

  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 project to compute checking account balance

Create a project to compute your checking account balance. Form: Include radio buttons to indicate the type of transaction: deposit, check, or service charge.

  Function to retrieve each of the private data members

Write a class called "Date" with month, day and year as private members. Have constructor that sets default date to 1st January 2000. Have accessor function which retrieves each of the private data members.

  Benefits of programming with objects and classes

How is it different from programming with functions alone? Write down benefits of programming with objects and classes in Web applications?

  Write program for user to perform arithmetic operations

Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0.

  Create logic for program-continously prompts for numeric

Create the logic for a program that continously prompts the user for two numeric values that represent the sides of a rectangle.

  Program to calculate area of two-dimensional shape

Implement the Shape hierarchy shown in following figure. Each TwoDimensionalShape should contain method getArea to calculate the area of the two-dimensional shape.

  Design application that reads arbitary number of integers

Design and implement an application that reads an arbitary number of integers that are in the range of 0 to 50 inclusive and counts how many occurences of each are entered.

  Design application to allow user to input a price

Design an application that allows a user to input a price until an appropriate sentinel value is entered.Output is the price of each item on each day,one through seven.

  Write temperature conversion program

You will write a temperature conversion program. GUI and event handling setup must be done in the constructor of the class that implements the GUI.

  Program-inputting data from files-writing-calling functions

This program will give you practice inputting data from files, writing and calling functions, using linked lists and outputting data to a file. You should only use one linked list of structs.

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