Find Jobs
Hire Freelancers

Number Guessing Program.

$10-30 USD

Completed
Posted over 2 years ago

$10-30 USD

Paid on delivery
I am stuck with a program code that is in the book called 'Learn Java the Easy Way' by Bryson Payne. Here it is on an online IDE: [login to view URL] <script src="//[login to view URL]"></script> I am having trouble with line 12 which is saying: [login to view URL]: error: ';' expected int theNumber = (int) [login to view URL] () * 100 + 1) I am also having trouble in Eclipse IDE as well. When the code is ran, it gives me: Error occurred during initialization of boot layer [login to view URL]: Error reading module: Caused by: [login to view URL]: [login to view URL] found in top-level directory (unnamed package not allowed in module) This is this code: import [login to view URL]; public class HiLo { public static void main (String[]args) { Scanner scan = new Scanner ([login to view URL]); String playAgain = ""; do { // Create a random number for the user to guess int theNumber = (int) [login to view URL] () * 100 + 1); // [login to view URL]( theNumber ); int guess = 0; while (guess != theNumber) { [login to view URL] ("Guess a number between 1 and 100:"); guess = [login to view URL] (); if (guess < theNumber) [login to view URL] (guess + " is too low. Try again."); else if (guess > theNumber) [login to view URL] (guess + " is too high. Try again."); else [login to view URL] (guess + " is correct. You win"); } // End of while loop for guessing [login to view URL] ("Would you like to play again (y/n)?"); playAgain = [login to view URL] (); } while ([login to view URL] ("y")); [login to view URL] ("Thank you for playing! Goodbye."); [login to view URL] (); } } Could someone please help explain what these errors mean like I am five and how do I find an fix for them?
Project ID: 32410960

About the project

33 proposals
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I don't want your money. You need to add a ) on line 12. You have 3 '(' but only two ' ) '; so essentially you need to close your paranthesis. Good luck int theNumber = ((int) [login to view URL] () * 100 + 1);
$20 USD in 7 days
5.0 (1 review)
0.6
0.6
33 freelancers are bidding on average $19 USD for this job
User Avatar
Hi I have read all your description. I am professional Java developer and ready to start now. I am sure high quality, good communication. Please contact me and Let's go ahead ! Thanks.
$50 USD in 1 day
5.0 (90 reviews)
6.9
6.9
User Avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 600 projects and over 1000 hours doing java projects. plus i passed freelancer java v3 exam with score 3.75 plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 5+ years experience. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him to anyone looking for an excellent java developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$10 USD in 1 day
4.9 (423 reviews)
6.6
6.6
User Avatar
Hi there, I'm bidding on your project Number Guessing Program. I have read your project description and I'm an expert in html,css,boostrap, Java and Documentation, therefore, I can do this project for you perfectly. I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the project. Thanks.
$10 USD in 1 day
4.9 (79 reviews)
5.7
5.7
User Avatar
hi sir am interested in your project. myself 6 years experienced web and desktop developer. I found myself eligible with my experience for your task. for assurity of work and quality you can go through my profile and reviews. we can discuss more via chat. thanks
$20 USD in 1 day
5.0 (106 reviews)
5.8
5.8
User Avatar
Hi there, I checked your requirements and guarantee you it's gonna be done within the next few hours. Let's contact via chat so that I can start work immediately. Wish you the best. -------------------------------
$20 USD in 7 days
5.0 (49 reviews)
5.1
5.1
User Avatar
Hello Sir/Madam I have development experience in various Programming Languages, OOP, Data Structures, Database Driven applications, APIs, Files handling and Data Transformation, ETL and various frameworks. I assure you an excellent solution of your project within the time frame and exactly according to the requirements. Thanks @CodingHelpLine
$20 USD in 7 days
5.0 (61 reviews)
5.3
5.3
User Avatar
Give me a couple of minutes please Java developer experience over 4 years I can start right now Write to me, we will discuss the details and start
$15 USD in 1 day
4.9 (37 reviews)
4.5
4.5
User Avatar
Hello Sir/ Ma’am A skilled full stack developer, I have rich experience in JAVA,C, C++, C#, Python, .NET , MYSQL, SQL, IONIC , MATLAB,PHP and ARDUINO. I am very confident with my skills and I'd like to help your business by doing my best. I am able to work full time on your time zone and start working right away. Please confirm that I am one of the best fits for you and drop me a message for further discussion. High-quality & Fast-delivery is promised! Thanks and Best Regards
$20 USD in 7 days
4.2 (27 reviews)
5.6
5.6
User Avatar
I can hop on a call with you and fix your code and explain it to you. Let's discuss more details in private. Looking forward to working with you!
$35 USD in 1 day
5.0 (22 reviews)
4.3
4.3
User Avatar
Hello? How are you? Thanks for posting this job. I am a Senior Java developer with 7+ years experience in JavaFX and Java Swing. I have been doing this kind of Java projects many times. Please let me know. Best Regards
$30 USD in 1 day
5.0 (5 reviews)
3.8
3.8
User Avatar
i can do it for you right away.. please come inbox !!! i am waiting for you to start working on your project immediately !!! Thanks
$20 USD in 1 day
5.0 (24 reviews)
4.0
4.0
User Avatar
Hey, I am an expert developer with years of professional experience. I can help with this. Message me and we can discuss it in detail.
$15 USD in 2 days
5.0 (10 reviews)
3.6
3.6
User Avatar
Hi I have seen your job description and interested in work of java project. Please provide more details about the work. Best
$20 USD in 7 days
5.0 (17 reviews)
3.6
3.6
User Avatar
Hello, According to the errors you provided I think I know what is causing the error, lets talk about it. I have more than 11 years of experience and I think I can provide you with a fast solution to your problems. Best regards.
$10 USD in 1 day
5.0 (3 reviews)
3.4
3.4
User Avatar
Dear Client! I have read your project description. I have a rich experiences for projects like yours. If you hire me, then I will do my best and finish it in time. We can discuss in more detail in private chat. Thanks for reading my bid.
$20 USD in 7 days
3.5 (3 reviews)
3.7
3.7
User Avatar
Hi, I have read your program, I know the fix also. Let's connect and quickly fix the problem. Thanks
$12 USD in 1 day
5.0 (2 reviews)
2.7
2.7
User Avatar
Dear client. Thanks for this wonderful opportunity. I can fix it within a few minutes!!! Hope for your kind contact.
$20 USD in 1 day
5.0 (4 reviews)
2.4
2.4
User Avatar
Hi there Sir/Madam. I am Java Developer. I managed to fix your code. You made 2 errors. Kindly contact me if you are interested.
$10 USD in 1 day
5.0 (3 reviews)
2.4
2.4
User Avatar
====Java Develop Expert==== Hi, I am a senior Full Stack Developer from Serbia.. I have already checked your requirement, and I 'll help you to fix your trouble. If you want me, I will do my best to help you. Please Contact with me. Thanks.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
HELLO DEAR EMPLOYER, First receive warm greetings, and hoping you are good, i welcome you to the home of Amazing services and quality. I kindly take this chance to inform you that i have checked your project (Number Guessing Program.); I'M AN EXPERT IN NAMED SKILLS, OVER 18 YEARS OF EXPERIENCE, After KEENLY reading your description and being in possession of all CLEARLY STATED REQUIRED SKILLS (Java) as this is my area of PROFESSIONAL SPECIALISATION having the above QUALIFICATIONS, i hereby humbly request you to consider my bid for QUALITY and PROFESSIONAL work. ###No Upfront payment// No timeline & Quality Excuses// Unlimited Revisions// Milestone payment STRICTLY after 100% Client Satisfaction### Message Me We Discuss More About The Project. THANK-YOU & WELCOME.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Toledo, United States
0.0
0
Payment method verified
Member since Dec 20, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.