Allows the user to enter number that represent month of year

Assignment Help Mechanical Engineering
Reference no: EM13710335

Write a program that allows the user to enter a number that represent the month of a year (1 to 12) and uses a switch construct to convert the month number to its corresponding number of days, where January is considered the 1st month of a year and December is considered 12th month of a year. Print out the resulting days of that particular month. If user inputs the number "2", it should ask back to the user the year and you should calculate if the user input year is leap year or not and print the days of the month of February accordingly. Mat lab

Reference no: EM13710335

Questions Cloud

Neglect kinetic-potential energy changes-compressor power : Air is compressed at steady state from 100 kPa, 300 K, to 600 kPa, 440 K with a mass flow rate of 4 kg/s. Heat transfer occurs at a rate of 42.3 kJ/kg of air flowing to cooling water circulating in a water jacket enclosing the compressor.
What is the mass flow rate of gaseous oxygen : Liquid oxygen (LOX) is used as rocket fuel to launch satellites into space. However, it is easier (and less dangerous) to transport oxygen in gaseous form. What is the mass flow rate of gaseous oxygen that flows at 25 m/s through a 0.5-meter diameter..
Neglecting heat transfer and potential energy : Steam enters a nozzle at steady state at 20 bar and 280°C, with a velocity of 80 m/s. The exit pressure and temperature are 7 bar and 180°C. Mass flow rate is 1.5 kg/s. Neglecting heat transfer and potential energy. Sketch the process on a T-v diagra..
Calculate product temperature at the center : A cooked mashed potato is cooled on trays in a chilling unit with refrigerated air at 2 C blown over the product surface at high velocity. The depth pf the product is 30mm and the initial temperature is 95 C. The product has a thermal conductivity of..
Allows the user to enter number that represent month of year : Write a program that allows the user to enter a number that represent the month of a year (1 to 12) and uses a switch construct to convert the month number to its corresponding number of days, where January is considered the 1st month of a year and D..
What is the amount of the equal monthly payment : Suppose you take out a car loan of $10,000 with an interest rate of 12% compounded monthly. You will pay off the loan in 48 months with equal monthly payments. What is the monthly interest rate? What is the amount of the equal monthly payment?
Take for the buyer to completely pay for the building : A building is priced at $255,000. If a buyer makes a down payment of $55,000 and a payment of $2,000 every month thereafter, how many months will it take for the buyer to completely pay for the building? Interest is charged at a rate of 9% compounded..
What is the displacement of the spring : The cable segment attached to the spring is at an angle of ?=50.0 from the ground. The spring has a spring constant of k=14.5 kN/m. The pulley is attached to the ceiling by rod BD that forms an angle ?=70.0? with the ceiling. The hanging mass causes ..
Energy was dumped into lake erie instantaneously : Assuming 4,686,400,000 MWh of energy was “dumped” into lake Erie instantaneously, what would be the increase in the water temperature of the lake. Assuming all of that energy was dumped to the earth’s atmosphere instantaneously. How thick (i.e. altit..

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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