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: 54% (11 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.
-
Anna Williams, CPA, was recently hired as assistant controller of GroChem Inc., which processes chemicals for use in fertilizers. Williams was selected for this position because of her past...
-
Refer to Googles financial statements in Appendix A to compute its equity ratio as of December 31, 2015, and December 31, 2014. Data From Google Financial Statement Appendix A Google Inc....
-
Upton Company was started on January 1, 2011, when the owners invested $160,000 cash in the business. During 2011, the company earned cash revenues of $120,000 and incurred cash expenses of $82,000....
-
8. A marine biologist measures the presence of a pollutant in an ocean and concludes that the concentration, C, in parts per million (ppm), as a function of the population, P, of the people who visit...
-
Eventuallyand this may come sooner than most thinkthere will no longer be any choice locations anywhere in the world for new hamburger outlets. As a McDonalds stockholder, Im getting worried. Discuss.
-
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:...
-
The following figure shows the revenue and cost curves for a typical monopolistically competitive firm in the short run. a. Note that the firm's demand curve is shown to be quite flat. Explain which...
-
Talent Acquisition and Interviews: Include appropriate citations and at least 3 references to support your response. Narrowing a pool of candidates can be difficult. The hiring manager must evaluate...
-
Prior to working on this discussion forum, read the article Organizational Life Cycles and Shifting Criteria of Effectiveness: Some Preliminary Evidence Download Organizational Life Cycles and...
-
1. Why has "Emotional Intelligence" transformed into a trending topic in project management? Please provide a holistic analysis to shed light on key factors that have contributed to the formation of...
-
In strategy development, once the vision, mission, values, and objectives are set, the next step is to identify strategic options. Once a strategic approach is determined, it is time to set up...
-
A firm's global operations function is focused on managing the development, production planning, sourcing, and distribution of the company's products. Consider an international firm with which you...
-
A letter on a page of the compact edition of the Oxford English Dictionary is 0.60 mm tall. A magnifying glass (a single thin lens) held 4.5 cm above the page forms an image of the letter that is 2.4...
-
1. Which of the four major types of information systems do you think is the most valuable to an organization? 2. How do you critically associate the ideas of business agility and business efficiency...
-
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
-
Find the recurrence relation used to find a series solution centered at 0 to the following differential equation. You do NOT need to find the entire solution. 2ry"-4xy+y=0
-
Complete the attached Precedence Diagram in the spreadsheet to calculate the project Early Start, Early Finish, Late Start, Late Finish, Activity Float, and identify the critical path. ES DUR EF...
-
In what ways can the application of the Job Characteristics Model enhance employee motivation and job satisfaction in a repetitive task environment? Explain
Study smarter with the SolutionInn App