Your user would like to hang a chandelier. Write a script that asks the user the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Your user would like to hang a chandelier. Write a script that asks the user the weight of the chandelier to be hung and advises a cable material suitable for the weight. use the following recommendations, <1lb paper, 1<w<5 plastic, 5<w<15 steel. if the chandelier is greater than 15 lbs. instruct the user to reconsider their choice. if the chandelier is less than 0 lbs. tell the user their chandelier floats. a. This code should consist of a single user input. b. This code should instruct the user on how specifically to input the weight of their chandelier. c. This code should use if, elseif, and else statements to logically determine the output. Your user would like to hang a chandelier. Write a script that asks the user the weight of the chandelier to be hung and advises a cable material suitable for the weight. use the following recommendations, <1lb paper, 1<w<5 plastic, 5<w<15 steel. if the chandelier is greater than 15 lbs. instruct the user to reconsider their choice. if the chandelier is less than 0 lbs. tell the user their chandelier floats. a. This code should consist of a single user input. b. This code should instruct the user on how specifically to input the weight of their chandelier. c. This code should use if, elseif, and else statements to logically determine the output.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these accounting questions
-
The chandelier of weight W is supported by three wires as shown. Determine the force in each wire for equilibrium. Given: W = 80 lb r = 1 ft h = 2.4 ft 135 90 135
-
A cable of weight per unit length w is suspended between two points at the same elevation that are a distance L apart. Determine (a) The sag-to-span ratio for which the maximum tension Tmax in the...
-
A block of weight W is hung from member AB as shown. Neglecting the weight of AB and knowing that the spring is unstretched when θ = 20°, determine the value of θ corresponding to...
-
There are three general methods of allocating overhead costs: plantwide rates, rates for each expense category, and departmental rates. Describe when each is the most useful.
-
What do you think explains the fact that the role of project manager continues to grow in importance?
-
Wallace Company sold equipment originally costing $650,000 for $320,000 cash. The accumulated depreciation as of the date of the sale was $300,000. What would be the journal entry for this...
-
Regional Support for Same Sex Marriage The website http://www.pewresearch.org/ fact-tank/2014/10/15/gay - marriage - arrives - in -the - south-where-the-public-is-less-enthused shows the changing...
-
Streams of methane and air (79 mole % N 2 , the balance O 2 ) are combined at the inlet of a combustion furnace pre-heater. The pressures of each stream are measured with open-end mercury manometers,...
-
Arthur has a capital balance of $80,000 and E . Joseph has a capital balance of $100,000 in their partnership as of June 30 . On July 1 , the two partners agree to accept M. Alice as a partner in...
-
Using the Public MACRO BITCOIN scorecard spreadsheet (linked in its associated masterclass lesson - Long Term 32), create a COPY of it and perform a complete analysis for the date 22/2/2022....
-
Table below shows information on the level of individual concern for animal welfare by age group. Please answer questions a to e. Level of concern Age group 20-29 30-39 40-49 Low 3,225 3,668 3,525...
-
Rawls was not writing his Theory of Justice and Justice as Fairness for executives working in corporations but rather for government institutions forming public policy. Explain how the equal liberty...
-
A long straight wire carries a current of magnitude \(I\), and this current creates a magnetic field \(\vec{B}\). Derive an expression for the magnitude of the magnetic field a radial distance \(r\)...
-
What is an illegal market? Under what circumstances do illegal markets arise?
-
Many state laws against price gouging apply only during emergencies. a. Why might state governments decide that the laws should apply only during emergencies rather than at all times? b. What...
-
An article on bloomberg.com observes that persistently high prices for a certain good lead to less demand for that good. Is the author correct that if the price of a product increases, the demand for...
-
Krishna's company earns a rate of 12% on its total investment of Rs, 600000 in assets. There have been 600000 outstanding common Shares at RS, 10 per share. Discount rate of the firm share is 10% and...
-
Why is it necessary to study the diffusion of molecules in biological systems?
-
The value of 1t can be estimated from the expression: 2/ = 2/2 . 2 + 2/2 . 2/ + 2 + 2/2, .. Write a MATLAB program in a script file that determine 1t for any number of terms. The program asks the...
-
For the function y = (x + 74/(x + 1) x, calculate the value of y for the following values of x using element-by-element operations: 1.5, 2.5, 3.5, 4.5, 5.5, 6.6.
-
Determine the solution of the equation 2 cosx - 0.5x = 1.
-
Show that the group \(D_{3}\) has two 1D irreps in addition to the 2D irrep found in Problem 5.6 , and construct the character table. Derive the two-dimensional matrix representation Data from...
-
The matrix representation of \(\mathrm{C}_{3 \mathrm{v}}\) given in Eq. (5.14) was constructed with respect to the particular coordinate system defined by the unit vectors \(\boldsymbol{e}_{1}\) and...
-
Prove that the action of the symmetry operations \(\sigma_{b}\) and \(\sigma_{c}\) on the basis vectors \(\boldsymbol{e}_{1}\) and \(\boldsymbol{e}_{2}\) in Fig. 5.10 are given by the matrix...
Study smarter with the SolutionInn App