Chat with us, powered by LiveChat Assignment Details In this assignment you will use a loop and a custom method (or 'function'), as well as bu - Writeedu

Assignment Details In this assignment you will use a loop and a custom method (or ‘function’), as well as bu

Assignment Details

In this assignment you will use a loop and a custom method (or "function"), as well as built-in Java classes. Create a Java program that meets the following requirements:

  1. Ask the user to input a number between 5 and 45. Tell the user to enter 1 if they wish to exit the program.
  2. Store the user's input in a variable with the integer data type.
  3. Use a while loop to repeat the program, checking the user's entry in case they entered a 1 to exit the program.
  4. Create a separate method (in the same Java file) called "checkEntry". This method must use a single parameter of the integer data type. When the user enters a number, pass that number to checkEntry for evaluation (described below).
  5. (In the checkEntry method.) If the user enters a value of less than 35, the checkEntry method must multiply that value by 5 and return the result to main(). If the user enters a value greater than or equal to 35, the program must add 10 to that value and return the result to main().
  6. Display the result of checkEntry's evaluation on the screen.
  7. Document your code using appropriate in-line comments. This includes variable declarations, input and output methods, and logic. Your comments must explain how the program works to a programmer who is familiar with Java and NetBeans but has not seen this program before.

Your deliverable for this assignment is the NetBeans project you created using the steps above (ZIP the whole folder that contains the project). (No screenshot.)

Note: It is fine if the program evaluates 1 (multiplying it by 5) and displays the success message before terminating. This is the expected behavior for the simplest solution to the program.

Note: This program does not check to see if the user failed to enter a number in the required range. That topic will be examined later in this course.

Tip: As with Unit 1, remember to import the Scanner class by adding the line "import java.util.Scanner" below the "package" declaration.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Do you need help with this question?

Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.

WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.

With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.

Chat with us today! We are always waiting to answer all your questions.

Click here to Place your Order Now