Write a program to compute the diameter of a steel rod

Assignment Help Programming Languages
Reference no: EM13809314

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and copper rod, which can withstand a particular compression load. The allowable compression stress of steel, aluminum, and copper is 25,000lbs/m^2, 15,000lbs/m^2, and 20,000lbs/m^2, respectively.

compression load

area of rod = ---------------------------------------

allowable compression stress

area = 3.1415r^2 where diameter d = 2r

Input the compression load. Print the type of material, load, allowable stress, and diameter. Use formatted output with field width specifications that align the output.

Reference no: EM13809314

Questions Cloud

Explains the steps you will take in developing the new syste : Essay on the following: You have just graduated from Herzing University. As a result of having such wonderful credentials, you have subsequently landed a great new job in a large organization. Your new position is "Director of Knowledge Management". ..
Write a method insert at that takes an array of integers : Write a method, insertAt, that takes four parameters: an array of integers; the length of the array; an integer, say, insertItem; and an integer, say, index
Write a paper about animals do have rights : Write a paper about Animals do have rights.
Write an essay about being pray surviving a crocodile attack : Write an essay about "Being Pray: Surviving a Crocodile Attack" by Val Plumwood.
Write a program to compute the diameter of a steel rod : Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and copper rod, which can withstand a particular compression load
Discuss how the no-growth movement influences : Discuss the key components and players involved in effective city planning and innovative planning practices. In your discussion, include issues that arrive concerning eminent domain. Discuss how the no-growth movement influences city growth.
Evaluate the role of ethical decision-making in business org : Ethics, Compliance Auditing, and Emerging Issues Imagine that you have been tasked with creating a proposal for the new CEO of your organization for establishing an ethics program and for conducting training and compliance auditing. For this assignme..
Determine the output displayed when the button is clicked : Determine the output displayed when the button is clicked. Replace each phrase containing "Until" with an equivalent phrase containing "While", and vice versa. For instance, the phrase (Until sum = 100) would be replaced by (While sum 100)
Discuss the public policies that issue presidential powers : President Obama's use of presidential powers in the last 18 months. Identify and discuss the public policies that have been at issue using these presidential powers.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write progam which uses two-dimensional array

Write the progam which uses two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low,

  Calculate and display total fees and discount

Write a program to select type of student using an option button and capture total credit hours using a text box. Calculate and display total fees, discount (if any) and net total fees (after discount).

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Write down a program which asks the user for an angle

write a program that asks the user for an angle entered in radians. the program should then display the sine cosine and

  Write a function that accepts an array a as input and

write a function that accepts an array a as input and searches the contents of the array for elements in three

  Assembly language program

Write a program called A2P1 to run in the LC-3 simulator. The program asks for the user to type in his or her UPI.

  Write program to simulate bank transaction

Write a program to simulate a bank transaction. There are two bank accounts: checking and savings. First, ask for the initial balances of the bank accounts.

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

  Write down a function middlereverse which takes a lowercase

write a function middlereverse that takes a lowercase string as an argument and returns a lowercase string that is the

  Design main driver class to instantiate-compute sum-objects

Design a main driver class to instantiate and calculate sum of several MonetaryCoin objects. Demonstrate that monetary coin inherits its parent's ability to be flipped.

  Create program which asks for number of fat grams

Create a program which asks for number of fat grams and calories in a food item. Validate input as follows: Make sure number of fat grams and calories are not less than 0.

  Create a program that asks the user for the values of x and

in engineering thermodynamics it is sometimes necessary to balance chemical reaction equations specifically for the

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