Write a program that uses menu to select a type of figure

Assignment Help Civil Engineering
Reference no: EM13306377

Write a program that uses menu to select a type of figure (triangle, sqaure, pentagon, hexagon, heptagon, octagon), and then use switch-case to determine the value of n. After determining the value of n, the program returns a nicely formatted sentence that includes the name of the figure, the number of sides, and the sum of the interior angles

Reference no: EM13306377

Questions Cloud

Create a new jmenu with the name look and feel : Let's start with the createLookAndFeel() method. This will create the first submenu shown in figure 1. There are three items on this menu, Metal, Motif, and Windows.
What is the waters temperature at the exit of the turbine : A turbine operates at steady state with steam flowing through it at a rate of 36 kg/min. The steam enters the turbine at a temperature of 600C and a pressure of 8 MPa and exits at a pressure 90% lower with a quality of 70%.
Organizational environment steady evolving : With the culture of today's organizational environment steady evolving, a contemporary approach to public management has replaced the historic theories once prevalent before. The purpose of management is to accomplish aims and objectives to ensure th..
Determine the intensity level in decibels at that distance : An outside loudspeaker (considered a small source) emits sound waves with a power output of 120 W. Find the intensity level in decibels at that distance
Write a program that uses menu to select a type of figure : Write a program that uses menu to select a type of figure (triangle, sqaure, pentagon, hexagon, heptagon, octagon), and then use switch-case to determine the value of n.
Find the phasor angle : oscillating voltage applied to an LRC circuit, V=110cos(120Ï€t), R = 1kΩ, L = 10mH, C = 4700 µF. find the phasor angle
Define a class to represent time : Define a class to represent time, in military format. Your class should have three private data members.
Write a regular expression that selects lines : These letters may appear in uppercase as well. For this exercise you must surround your solution with double quotes .
Calculate the isentropic efficiency of the turbine : At steady state air enters a turbine at a pressure of 0.4 MPa and a temperature of 77C. As a result the turbine generates 80 kJ of work per kg of air flowing. The air exits the turbine at a pressure of 1 bar.

Reviews

Write a Review

Civil Engineering Questions & Answers

  Determine the height of capillary rise to smooth glass

Plot the distribution of vertical effective stress and porewater pressure with depth if the void ratio of the sand is 0.6 and the degree of saturation is 90%. Neglect pore air pressure

  What is the design storage and water surface elevation

What is the design storage and water surface elevation at the peak outflow rate and estimate the long-term average reduction (EPA, 1986) in particulates under dynamic conditions.

  Explain how to describe the operation of series rl circuit

The discussion must address phase angle relationships of current and voltage. The answer must include the effect of source frequency on the voltage drops across the resistor and the inductor at very low and very high frequency values.

  Calculate the volume of a cylinder that contains 60 lbm

Calculate the volume of a cylinder that contains 60 lbm of carbon dioxide at 230°F and 23 psig pressure. Assume atmospheric pressure to be 14.7 psia.^4

  Determine undrained shear strength on compacted soil sample

An unconfined compression test was conducted on a compacted soil sample, 50 mm diameter by 100 mm long. The peak axial force recorded was 230 N and the sample shortened by 2 mm.

  Calculate bulk specific gravity nd apparent specific gravity

A sample of coarse aggregate weights 1072 grams when oven-dried, 1091 grams when saturated surface-dried, and 667.6 grams when submerged. Calculate the bulk specific gravity, apparent specific gravity, and percent absorption.

  How many gallons of water per cubic yard should be added

given moisture contents of 5%, 9%, 14%, 22% and 25% with corresponding weights of 3.1, 3.42, 3.78,3.85, 3.77 lbs. of the compacted soil. (specific gravity =2.7)(compaction test using compaction mold of 1/30 ft^3).

  Determine diameter of solid shaft if it is to transmit 50hp

If the allowable shear stress is 15ksi, determine the diameter of a solid shaft if it is to transmit 50hp at a frequency of (a) 900rpm, (b) 1800rpm

  Determine what is the present value of the truck

CPM Construction plans to buy a truck for $150,000 and sell it for $15,000 at the end of 5 years. The annual operating cost of the vehicle is $60,000. What is the present value of the truck

  Equal-tangent crest vertical curve

An equal-tangent crest vertical curve is designed with a PVI at station 110+00 and a PVC at station 107+43.3. if the high point is station 110+75.5 what is the design speed of he curve?

  Determine the contact surface area

Estimate the machines production under these conditions using the travel time curves given in the Caterpillar Performance handbook.

  Calculate the resistance coefficient k for a ball-type

Calculate the resistance coefficient K for a ball-type check valve placed in a 2-in schedule 40 steel pipe carrying 650 gal/min of oil (sg = 0.90)

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