Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Information Technology Assignment: Creating a Java program

Information Technology Assignment: Creating a Java program

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.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Homework Free Org

Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.

© 2020 Homework Free Org