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

  Horizontal distance between the points

A runs slope a distance of 156.777 m from one point to another point at a rate of +1.5%. What is the corresponding horizontal distance between the points?

  Find how much does the student owe at the interest rate

The compound interest formula is F=P(1+i)n where F is the total amount due, P is the initial cost or amount of money, i is the interest rate, and n is the number of periods interest is computed. 1.A student purchases a $1400 laptop computer for sc..

  Calculate percipitable water in standard atmoshperic column

Calculate the percipitable water (mm) in a 10-km high standard atmoshperic column if the surface conditions are temperature=20 degrees C, pressure=101.3 kPa and the laspe rate is 6.5 degrees C/km.

  What is the concentration of mlvss in the activated sludge

What is the concentration of MLVSS in the activated sludge (mg L-1)

  Find a way to make it look more like the graph of g

make an inline function g(x)= x+ cos(x^5). plot it using vectors x= -5:.1:5; and y= g(x);. what is wrong with this graph. find a way to make it look more like the graph of g(x) should turn in both plots.

  How many cubic meters of water are needed

Establish a grass cover over a 10ha landfill. The root zone of the grass is 40cm deep. Increase the volumetric water content of root zone from 12% to 24%. How many cubic meters of water are needed?

  Effective thermal capacity in climates

For energy conservation, materials with a high thermal capacity are effective in climates in which the heat flow through the building envelope is:

  How sustainability and green engineering can be integrated

Discussion on how sustainability and green engineering can be integrated in the four components of materials science and engineering?

  Find what is the builder capitalized cost to const the plant

A home builder must construct a sewage treatment plant and deposit sufficient money in a perpetual trust fund to pay the $5000 per year operating cost and to replace the treatment plant every 40 years.

  Calculate distance up ramp using the work energy theorem

A 58.3 degree inclined plan has a spring with spring constant 23,400 N/m attached at the bottom.A 1.2 kg block is placed on the plane and compresses the spring a distance of 2.4 cm from equilibrium.

  Thermo-gravimetry of calcium oxalate

Evaluate the percent mass loss for each of the three thermal events indicated on the attached TGA trace

  Calculating sand shear strength

Estimate the effective friction angle for the sand (assume c' = 0). Calculate the sand's shear strength (τf) on a horizontal plane at depths of the 20 ft and 50 ft.

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