Displays the number of days in a month

Assignment Help JAVA Programming
Reference no: EM13166081

Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month (use 28 for the number of days in February). Code the program so that it displays the number of days in the month corresponding to the number entered by the user. For example, when the user enters the number 1, the program displays "There are 31 days in the month of January". The program should display an error message if the user enters an invalid number. Put a loop in the program so that the user can input multiple months. Use a sentinel of -1 to exit the program. 

Reference no: EM13166081

Questions Cloud

State a battery charger use to recharge nimh batteries : A battery charger use to recharge NiMH batteries can deliever as much as 0.30 A of current to each battery.
Ieee 754 32-bit floating point values : Convert the following numbers to IEEE 754 32-bit floating point values (display results in hexadecimal)
Definition and origins of rehabilitation in prison : Definition and origins of rehabilitation in prison.  Definition of parole and how it differs from mandatory release.  Definition of probation and how it compares to other forms of sentencing.  Definition and options of community corrections.
State the specific heat capacity : calculate the heat absorbed or lost by the aqueous solution qaq in joules assuming that the specific heat capacity
Displays the number of days in a month : Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month (use 28 for the number of days in February).
Compute the actual molarity of the sulfuric acid : Use this mass and the dilution volumes to calculate the ACTUAL molarity of the sulfuric acid in the INITIAL solution.
16-bit 2''s complement numbers : Convert the following numbers to 16-bit 2's complement numbers (display results in hexadecimal)
Research on the development of gender identity : Research on the development of gender identity has shown that
16-bit 1''s complement numbe : Convert the following numbers to 16-bit 1's complement numbers (display results in hexadecimal)

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create the html form and call the servlet to print out

1. write a calculator Servlet that adds, subtract, multiples and divides. Create the html form and call the servlet to print out the answer

  Determine the visual resolution of resulting image

Drawing in 8.5 by 11 inch sheet is digitized by means of 300 dpi (dots per inch) scanner. Determine the visual resolution of resulting image (number of dots in each dimension)?

  Technical community blog

Write a blog article for a coding and technical community blog.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Program that prompts the user to enter the year and display

Write a program that prompts the user to enter the the year and first day of the year and displays the calendar table for the year on the console. For example , if the user entered the year 2013, and 2 for tuesday, January 1, 2013, your program shoul..

  Write down the java code for the bank

Write down the java code for the bank of Fraud. User is presented with menu which looks something like this: 1. Deposit 2. Withdrawal 3. Check Balance 4. Exit.

  Presell a limited number of cinema tickets

Write an application to presell a limited number of cinema tickets. each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold. Implement a program called TicketSeller that prompts the user for the desired number of tickets and the..

  Reverse the array, and find the largest element

find the max block of an array by splitting it into three parts: left, middle, right. And then reverse the array, and find the largest element.

  Create an abstract class named element

Part 1: Create an abstract class named Element that holds properties of elements, including their symbol, atomic number, and atomic weight. Include a constructor that requires values for all three properties and a get method for each value.

  Implement/update specific methods for the dfs of a graph

show the DFS order of vertices in the graph, and for each node, specify its parent node in the search (the node from which the currect node was reached). Moreover, display for each node the discovery and finishing time, to check that the Parenthesis ..

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

  What is server-side and client-side scripting?

1. What is Server-side and Client-side scripting? Explain the differences between server-side and client - side scripting languages. Please provide 3 advantages and disadvantages of each. Please provide applicable references in APA style

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