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

  What is the angle theta required for equilibrium

what is the maximum weight of the crate that the system can support? What is the angle theta required for equilibrium?

  Describe how the surveyor would go about

State the full name of the section of SOLAS that sets out the minimum standards for the training and competence of crew members and describe how the surveyor would go about checking that a vessel had the necessary number of qualified staff.

  What is the soils unit weight when the degree of saturation

A dry quartz sand has a unit weight of 100 pcf. What is the soil's unit weight when the degree of saturation is 75% if Gs = 2.66

  Determine magnitude of force p acting on crate and ground

If the 50 kg crate starts from rest and travels a distance of 6m up the plane in 4s, determine the magnitude of force P acting on the crate. The coefficient of Kinetic friction between the crate and the ground is 0.25

  Explain light-voice controlling system

Light-Voice Controlling System. We are planning to design a new light-voice controlling system. The voices will basically coordinate the crossing of a road by blind people. Suppose the crossing will be operated by two coordinated systems

  What is the design speed of he 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?

  How many cubic feet of seawater

how many cubic feet of seawater, density 60 lb/ft^3, must be processed to recover 1 ton of magnesium, 1,272 ppm?

  Estimate the min do and the critical location in river

After initial mixing, the DO concentration in the river is 9.5mg/L and the temperature is 15ºC. If the ultimate BOD of the mixed river water is 30mg/L,

  What is lowest grade possible for the constant-grade section

A tangent section of highway has a -1.0% grade and ends at station 0+1450and elevation 25m. It must be connected to another section of highway that has a -1% grade and that begins at station 1+345 and elevation 40m.

  Calculate the molar mass of the biomolecule

For carbon tetrachloride, the boiling point constant is 5.03°C · kg/mol, and the boiling point of pure carbon tetrachloride is 76.50°C.

  Magnitude of shaft work obtained from the turbine

If the amount of heat transfer in the HE unit is 2460 kJ per kg of steam, what is the magnitude of shaft work obtained from the turbine in kW?

  Find critical depth in trapezoidal channel with bottom width

Determine the critical depth in a trapezoidal channel with a 20 foot bottom width and 3:1 (H:V) side slopes if the Q = 1000cfs.

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