Calculate and display height and cost of container

Assignment Help Basic Computer Science
Reference no: EM1364874

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: EM1364874

Questions Cloud

Show the types of risk for a project manager : Explain what are the types of risk that a project manager should take into account when planning an initiative and structuring teams?
Money market fund for cash investments : I have received an inheritance for which I require to make good investment decisions. I have received a $100,000 inheritance and would like to invest.
Define the term economic value added (eva) : How do managers supplement the NPV analysis of a project to gain a better understanding of a project?    Define the term economic value added (EVA).
Health service-health organisation : Consider a health service or a health organisation. What are the main components of the wider system within which this service or organisation operates?
Calculate and display height and cost of container : 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.
Organization to minimize the identified weaknesses : Provide at least 2 suggestions for each organization to minimize the identified weaknesses.
Explain synchronous time division multiplexing : Synchronous time division multiplexing is used, along with the standard analog-to-digital sampling rate, and each sample is converted into an 8-bit value?
Define what level of influence do you think each stakeholder : Explain What level of influence do you think each stakeholder has in maintaining the ethical behavior of the organization
List possible ways to interconnect three computers : List as many ways as possible to interconnect the three computers so that they could operate on one local area network.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  First two training iterations of backpropagation algorithm

Consider a two-layer feedforward ANN with two inputs a and b, one hidden unit c, and one output unit d. This network has five weights (w,, web, wd, wdc, wdO), where w,o represents threshold weight for unit x

  Verify local police department-s findings on current case

Your computer investigation firm has been hired to verify local police department's findings on current case. Tension over the case is running high in the city.

  Effective method to find attack on computer network

Find the most effective method to find out if attack has been made on computer network?

  Methods-majority of target audience can play applications

What are some methods that we can guarantee that majority of target audience can play applications?

  Drawing decision table for type of treatment of customer

Draw a decision table to represent the type of treatment to be given to a customer of the EyeTunes Music Club.

  How many units of each component ordered from each supplier

If the Edwards production plan for the next period includes 1000 units of component 1 and 800 units of component 2, how many units of each component (C1, C2) should be ordered from each supplier (S1, S2, S3)?

  Explaining mismatched file headers to extensions

What procedures would you require to follow to retrieve evidence? Identify mismatched file headers to extensions.

  Explaining final results in cell to a percentage

Second quarter revenue total has increased from first quarter revenue total by 60.16%. Make sure to change cell format for final results in the cell to a percentage.

  Ways to avoid communication pitfalls

Based on the section on "Watch out for communication pitfalls" in the Bateman and Snell text, describe some ways that Lei could have avoided this situation.

  Fundamental text retrieval tasks using hash-based indexing

In this paper three fundamental text retrieval tasks where hash-based indexing. Which task is more appropriate for a text based search retrieval? Provide reasons to support your answer.

  Tools to perform project management processes

Describe in scholarly detail the tools and techniques that are used for prforming project management processes.

  Computing new computer cost at the end of year

Assume that 5 years from now you would like to trade in the computer and purchase a new one. You expect at 5 % increase in price each year. What would the new computer cost at the end of year 5?

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