ITSD322U2IP

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:

Ask the user to input a number between 5 and 45. Tell the user to enter 1 if they wish to exit the program.
Store the user’s input in a variable with the integer data type.
Use a while loop to repeat the program, checking the user’s entry in case they entered a 1 to exit the program.
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).
(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().
Display the result of checkEntry’s evaluation on the screen.
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.
Please submit your assignment.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 30% with the discount code HAPPY