The area of a hexagon can be computed using the following formula (s is the length of
Question:
The area of a hexagon can be computed using the following formula (s is the length of a side):
Write a program that prompts the user to enter the side of a hexagon and displays its area. Here is a sample run:
Transcribed Image Text:
6 x s? Area = 4 x tan 6) Enter the side: 5.5 The area of the hexagon is 78.59 JEnter
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (8 reviews)
Program Plan Create a class called AreaOfHexagon Initialize the main method with variables s ...View the full answer
Answered By
Joemar Canciller
I teach mathematics to students because I love to share what I have in this field.
I also want to see the students to love math and be fearless in this field.
I've been tutoring these past 2 years and I would like to continue what I've been doing.
5.00+
1+ Reviews
10+ Question Solved
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Question Posted:
Students also viewed these Computer science questions
-
The great circle distance is the distance between two points on the surface of a sphere. Let (x 1 , y 1 ) and (x 2 , y 2 ) be the geographical latitude and longitude of two points. The great circle...
-
Write a class named Octagon that extends GeometricObject and implements the Comparable and Cloneable interfaces. Assume that all eight sides of the octagon are of equal size. The area can be computed...
-
(Approximate ?) ? can be computed using the following formula: Write a program that displays the result of 4 ? Use 1.0 instead of 1 in your program. T = 4 x 1 3 11 and 4 x (1 11 11 13
-
Which of the following statements about Visa credit card sales is incorrect? (a) The credit card issuer makes the credit investigation of the customer. (b) The retailer is not involved in the...
-
Show the steps used by the shaker sort to sort the list 3, 5, 1, 4, 6, 2. The shaker sort (or bidirectional bubble sort) successively compares pairs of adjacent elements, exchanging them if they are...
-
Relational databases are very popular in organisations nowadays. What are your experiences of using these databases? How useful do you find them, particularly databases of customer records? Are there...
-
Henry Mellett has the following extracts from his balance sheet as at 31 March 2001. s Current Assets Stock 183243 Debtors 12,407 Cash 1,283 Current Liabilities Creditors 14,836 Long-term Creditors...
-
According to a report, college graduates in 2010 were likely to face better job prospects than 2009 graduates (New York Times, May 24, 2010). Many employers who might have been pessimistic at the...
-
E2-5 (Algo) Calculating Predetermined Overhead Rate and Applied Overhead [LO 2-3] Wheeler's Bike Company manufactures custom racing bicycles. The company uses a job order cost system to determine the...
-
Following high school, James Sinegal worked for discount warehouse Fed Mart unloading mattresses. Then,in the 1970s as an employee of California-based PriceClub, he absorbed every detail of the...
-
A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for...
-
Write a program that prompts the user to enter the length from the center of a pentagon to a vertex and computes the area of the pentagon, as shown in the following figure. The formula for computing...
-
The production processes involved in making maple syrup also can produce maple sugar. Vt. Sugar Enterprises wishes to produce only syrup, but on occasion some sugaring takes place. Production for...
-
What is the formula for calculating return on investment (ROI)?
-
Air enters a 5.5-cm-diameter adiabatic duct with inlet conditions of \(\mathrm{Ma}_{1}=2.2, T_{1}=250 \mathrm{~K}\), and \(P_{1}=60 \mathrm{kPa}\), and exits at a Mach number of...
-
At the various activity levels shown, Taylor Company incurred the following costs. Required: Identify each of these costs as fixed, variable, or mixed. Units sold 20 40 60 80 100 a. Total salary cost...
-
Indicate whether each of the following types of transactions will either (a) increase stockholders' equity or (b) decrease stockholders' equity: 1. expenses 2. revenues 3. stockholders' investments...
-
The following selected transactions were completed by Lindbergh Delivery Service during October: 1. Received cash from issuing capital stock, \($75,000\). 2. Paid rent for October, \($4,200\). 3....
-
Eugene Plante was a general contractor who built a house for Frank and Carol Jacobs for a contract price of $26,765. The buyers paid $20,000 but refused to pay the balance, claiming that the contract...
-
Classify each of the following activities as proper or prohibited under the various consumer statutes you have studied. a. Calling a hospital room to talk to a debtor who is a patient there. b....
-
Write two programs to display the available locales and time zone IDs using buttons, as shown in Figure 36.16. Exercise36_04 America/Phoenix Armerica /Port-au-Prince America/Port_of_Spain...
-
Rewrite Exercise 4.22 using JavaFX, as shown in Figure 36.17. The program allows the user to set the loan amount, loan Exercseso 0s trer Loan Arour, Nunber of rears, and Anua trterest Rate Display...
-
Write a program that converts U.S. dollars to Canadian dollars, German marks, and British pounds, as shown in Figure 36.18. The user enters the U.S. dollar amount and the conversion rate, and clicks...
-
Suppose you sell a fixed asset for $82,950 when its book value is $42,542. If your company's marginal tax rate is 25 percent, what will be the after-tax cash flow of this sale?
-
Imagine you run an airline company. An advisor tells you that Hedging against increases in jet fuel prices can sometimes erode the competitive position of an airline. Provide two examples where you...
-
Delaying the payment of accrued expenses until a later period is a technique that management can use to manipulate the current years cash flow from operating activities. True or False
Study smarter with the SolutionInn App