subject
Engineering, 14.02.2020 17:12 taylor5384

Write a program that determines if a given year is a leap year. Leap years are those years that are divisible by four, except that century years not divisible by 400 are not leap years. For example, 1960, 1996, and 2000 are leap years, while 1961, 1995, and 1900 are not. Your program should ask the user to enter a year and then determine whether that year is a leap year. Repeat until the user enters 0 for the year. The following is an example program run (the user’s input is underlined).Enter a year: 1960 1960 is a leap year. Hint: Leap year alg. from wiki: if (year is not divisible by 4) then (it is a common year)else if (year is not divisible by 100) then (it is a leap year)else if (year is not divisible by 400) then (it is a common year)else (it is a leap year).

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 03.07.2019 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
You know the right answer?
Write a program that determines if a given year is a leap year. Leap years are those years that are...
Questions
question
Mathematics, 12.03.2020 00:34
question
History, 12.03.2020 00:34
Questions on the website: 13722363