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

  Determine the fatigue strength at 5 x 105 cycles what is

the fatigue data for a brass alloy are given as followsstress amplitude mpa -----------------cycles to failure310

  Plot the cost versus r for 2 le r le 10 m and determine the

a water tank consists of a cylindrical part of radius r and height h and a hemispherical top. the tank is to be

  One gallon is a volume measure of 231 in3 determine the

1. convert 8720 gallons per minute to ft3sec.2. one gallon is a volume measure of 231 in3. determine the velocity in a

  A fixed quantity of air at t1 57oc and p1 222 kpa is

a fixed quantity of air at t1 57oc and p1 222 kpa is heated at constant temperature in a piston-cylinder assembly

  Estimate the maximum length of an internal crack in mm that

a large plate of a titanium-aluminum-vanadium alloy ti-6al-4v is at room temperature. estimate the maximum length of an

  A 30 cm a diameter copper sphere having a diameter

a 3.0 cm a diameter copper sphere having a diameter initially at a uniform temperature of 50degc is suddenly exposed to

  The inlet area of the nozzle is 90cm2 determine a the mass

air enters an adiabatic nozzle steadily at 300 kpa 200degcand 28 ms and leaves at 100 kpa and 168 ms. the inlet area of

  Find out the open circuit voltage v of the cell assume a

consider a 6 cm2 dye sensitised solar cell with reverse saturation current jr10-10acm2. when the solar irradiance is

  Estimate the mass of ozone inhaled into the lungs by a

estimate the mass of ozone inhaled into the lungs by a moderately exercising individual over an eight hour period at a

  Determine the tension in each cable

The rigid L-shaped member ABC is supported by a ball and socket at A and by three cables. Determine the tension in each cable and the reaction at A caused by the 242 kg load applied at G.

  Knowing that r250mm when theta0 and that the collar reaches

the collar p slides outward at a constant relative speed u along rod ab which rotates counterclockwise with a constant

  Argon is compressed in a polytropic process with n 12

argon is compressed in a polytropic process with n 1.2 from 120 kpa and 30ordmc to 1200 kpa in a piston-cylinder

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