Your goal is to write a simple program to compute the area and perimeter of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Your goal is to write a simple program to compute the area and perimeter of a kite. You should prompt the user to input the lengths of the four sides of the kite. The user should also input the height of the kite (Q) and the width of the kite (P). Then you should perform both of the requested calculation. Once the calculations have been performed, you should output the results to the screen. Please be sure to provide good output messages so the user knows what the numbers they are seeing say. Area = PQ/2 Perimeter = a +b+c+d Running: DevC++: Click on the compile button, then Run. Visual Studio: Select Debug -> Start without debugging or hit the f5 key. You should run this program twice. The first run, please use the following values: b = 10 c = 4 d = 10 Q = 13 a = 4 a P = 6 b Activate Win Go to Settings to Your goal is to write a simple program to compute the area and perimeter of a kite. You should prompt the user to input the lengths of the four sides of the kite. The user should also input the height of the kite (Q) and the width of the kite (P). Then you should perform both of the requested calculation. Once the calculations have been performed, you should output the results to the screen. Please be sure to provide good output messages so the user knows what the numbers they are seeing say. Area = PQ/2 Perimeter = a +b+c+d Running: DevC++: Click on the compile button, then Run. Visual Studio: Select Debug -> Start without debugging or hit the f5 key. You should run this program twice. The first run, please use the following values: b = 10 c = 4 d = 10 Q = 13 a = 4 a P = 6 b Activate Win Go to Settings to
Expert Answer:
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these computer network questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Research updates on the business environment. Pick a company you are familiar with and do a SWOT analysis for considering entering the Cuban market.
-
Columbia Corp's required ROI is 10% Its West Division has revenues of $6,000,000, asset turnover, of 1, and ROI of 10%. Calculate the West Division's operating income Required answer format: 30000...
-
Isothermal compression efficiency can be achieved by running the compressor: (a) At a very high speed (b) At a very slow speed (c) At an average speed (d) At zero speed
-
Figure \(\mathrm{P} 27. 33\) shows the arrangement we looked at in Example 27. 2: a metal bar \(0.20 \mathrm{~m}\) long suspended from two springs, cach having a spring constant \(k=0.10 \mathrm{~N}...
-
Unique Interiors reported the following transactions in July: Jul 2 Sold merchandise on account to Erin Bailey, $800, terms 2/10, n/30. 10 Sold merchandise on account to Alise OBrien, $1,500, terms...
-
Exercise 1 Motion on a Ramp In this exercise you will roll a marble down a ramp and calculate its linear acceleration and velocity. You will then create graphs to illustrate the motion of the marble.
-
You are mapping metamorphic rocks and you notice a lineation within the rocks. At five different outcrops you measure the pitch of the lineation on an exposed planar rock surface (not necessarily the...
-
3. Draw the logic diagram of the SOP minimized circuit 4. Use De Morgan's theorems to express the simplest SOP in terms of NAND operators. 5. Use the Karnaugh map method to find the simplest...
-
Ethan 35 and Evangeline 30, are both currently working full time and take home a total of $13,500 per month. They have been married for six (6) years and purchased their first home five years ago....
-
Millennium Limited is in the process of expanding and require capital for the expansion the issue of preference shares. planned. The board therefore approved Preference shares On 1 July 2020, the...
-
A soil has a volume of 0.25 ft^3 and weighs 27.50 lbs. The specific gravity (Gs) of the soil sample is 2.65 and the moisture content (w) is 10.5%. Determine the moist unit weight, dry unit weight,...
-
Shares buybacks/repurchases and dividends payouts tend to peak around the start of the recessions and run elevated through the early stages of these downturns. This is especially pronounced when we...
-
Research and evaluate the following four insurance companies: AIG. Travelers. Saint Paul. Hartford. Determine which company you consider the most financially sound and develop a brief report...
-
2x+4=0 Find x
-
Tarick Toys Company manufactures video game consoles and accounts for product costs using process costing. The following information is available regarding its June inventories. The following...
-
Repeat Exercise 5 in Chapter 7, but use an instance of ArrayList instead of an array. Exercise 5 in Chapter 7 Write a program in a class CharacterFrequency that counts the number of times a digit...
-
Write a recursive method that will compute cumulative sums in an array. To find the cumulative sums, add to each value in the array the sum of the values that precede it in the array. For example, if...
-
Text messaging is a popular means of communication. Many abbreviations are in common use but are not appropriate for formal communication. Suppose the abbreviations are stored, one to a line, in a...
-
How does one choose between communication methods and handle barriers to effective communication?
-
What are the types of interpersonal communication?
-
What are the various forms of virtual communication used in modern organizations?
Study smarter with the SolutionInn App