Write a program that reads in the radius and length of a cylinder and computes the area
Question:
Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas:
area = radius * radius * π
volume = area * length
Here is a sample run:
Enter the radius and length of a cylinder: 5.5 12 The area is 95.0331 The volume is 1140.4
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 58% (12 reviews)
import javautilScanner public class Exercise0202 public static void mainString a...View the full answer
Answered By
Branice Buyengo Ajevi
I have been teaching for the last 5 years which has strengthened my interaction with students of different level.
4.30+
1+ Reviews
10+ Question Solved
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
In muscle capillaries, oxygen enters the capillaries at a partial pressure of 0.1 atm. When exercising rigorously, the blood velocity in the capillaries is 0.25 cm/s. In this case, the reaction rate...
-
Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula: futureInvestmentValue =...
-
Write a program that reads in a bar code (with : denoting half bars and | denoting full bars) and prints out the zip code it represents. Print an error message if the bar code is not correct.
-
Scott and Associates, Inc., is an accounting firm that has three new clients. Project leaders will be assigned to the three clients. Based on the different backgrounds and experiences of the leaders,...
-
Construct a Simulink model of the following problem. 10 + sin x = f(t) x(0) = 0 The forcing function is f(t) = sin 2t. The system has the dead-zone nonlinearity shown in Figure 5.6.6.
-
Was having difficulty with this practice problem set. Could you please help? Will be sure to leave a review! Thank you so much! Asset A has an expected return of 18% and a standard deviation of 38%....
-
During the communications process, if the receiver disagrees with the sender, does this always mean that the message has not been properly understood? Or could it mean something else? Explain.
-
The 2012 balance sheet for Guthrie Corporation revealed the following information: Common stock, $10 par, 50,000 shares issued and outstanding Preferred stock, $100 par, 6%, cumulative stock, 1,000...
-
The stockholders equity accounts of Concord Corporation on January 1, 2022, were as follows. Preferred Stock (7%, $100 par noncumulative, 7,000 shares authorized) $420,000 Common Stock ($4 stated...
-
In the given carbon skeleton structure below. identify the carbon atom(s) with sp3 hybradization. H
-
Write a program that reads a Celsius degree in a double value from the console, then converts it to Fahrenheit, and displays the result. The formula for the conversion is as follows: fahrenheit = (9...
-
Write a program that prompts the user to enter the side of a hexagon and displays its area. The formula for computing the area of a hexagon is where s is the length of a side. Here is a sample run:...
-
For an elementary step A + B C + D, g - o is tabulated as 22.819 at 298 K, 0 at 1000 K, and -229.724 MJ/kmol at 3000 K. Starting with a mixture of 1 kmol of A and 1 kmol of B, evaluate what percent...
-
The residents of the town of Stewart are well-known coffee drinkers. Dunkin Donuts and Starbucks stores supply the residents with over 100,000 cups of hot coffee per week. Recently, coffee drinkers...
-
Read through the following case study and analyse it by addressing the question that follows. Case study: Adriana Adriana runs a very busy multi-sports coaching company that provides after-school...
-
Assuming that you were invited to one of your best friends' wedding. Therefore, you decided to purchase a special product or service as a gift for this important event. Based on this scenario, you...
-
The Department of Commerce, through the Economic Development Administration (EDA), is seeking information to inform the planning and design of the Regional Technology and Innovation Hub (Tech Hubs)...
-
In frontline management, it is essential to manage time effectively. In the table below, list 3 time-management principles that are relevant to a frontline manager's own work and provide 3 examples...
-
1. What are the ethical issues? 2. What are the relevant facts? 3. Who are the primary stakeholders ? 4. What alternative actions can be considered? 5. What are the ethics of the alternatives? 6....
-
Don Griffin worked as an accountant at a local accounting firm for five years after graduating from university. Recently, he opened his own accounting practice, which he operates as a corporation....
-
Assume a runner runs 14 kilometers in 45 minutes and 30 seconds. Write a program that displays the average speed in miles per hour.
-
Write a program that displays the area and perimeter of a rectangle with the width of 4.5 and height of 7.9 using the following formula: area = width height
-
Write a program that displays the area and perimeter of a circle that has a radius of 5.5 using the following formula: perimeter = 2 radius area = radius radius
-
Present Value Computations Using the present value tables, solve the following. ( Click here to access the PV and FV tables to use with this problem. ) Round your answers to two decimal places....
-
A company provided the following data: Sales $887,000 Variable costs $546,800 Fixed costs $310,000 Expected production and sales in units 36,000 What is the break-even point in sales dollars? Please...
-
How to solve them..equation and explain ..please.. 1. Selected information from the companys financial records is presented below Equipment, December 31, 2013 $300,000 Equipment, December 31, 2014...
Study smarter with the SolutionInn App