undefined

Enter a number

Java Syntax
Level 3 , Lesson 8
Available
Enter a number - 1

"Hi, Amigo. You're doing great. Here is a new exercise for you: write a program that accepts some data from the keyboard and displays text that uses that data:"

undefined
6
Task
Java Syntax, level 3, lesson 8
Locked
Plan to conquer the world
"First, I'll complete the tasks, then I'm going to make a lot of money. Then I'll take over the world". We found this written in a modest young man's personal journal. Let's imagine he knows exactly when this will happen: we'll use the keyboard to enter a number (the number of years it will take to achieve his goal) and the name of the hopeful conqueror. Then we'll display an interesting phrase.
undefined
3
Task
Java Syntax, level 3, lesson 8
Locked
Predictions
Some predictions are quite logical. For example, if you become a real programmer, then you'll have a high salary after a while. You don't have to be Nostradamus to come up with that. Let's code up a program where we indicate a name and two numbers (a salary and a number of years). Then we'll display a phrase: " will receive in years".
undefined
1
Task
Java Syntax, level 3, lesson 8
Locked
The humble programmer
Dreams about employment as a programmer can't be contained! This is no surprise: The more tasks you finish, the closer you are to achieving your dreams. Let's take another step forward by tackling a task involving humility. Use the keyboard to enter the name of a person, and then display his or her salary. The details are in the task conditions.
undefined
1
Task
Java Syntax, level 3, lesson 8
Locked
Deep and pure love
Among humans, lovers usually form couples. But on some planets, triads are common (For example, Isaac Asimov wrote about them in his novel "The Gods Themselves"). Let's use a program to create a triad. We'll use the keyboard to enter the names of three lovers and then display their intense feelings for each other.
undefined
1
Task
Java Syntax, level 3, lesson 8
Locked
More conversions
Let's calculate the number of full feet in a certain number of inches. We'll create a special method (getFeetFromInches) to do this. Any remainder should be rounded. Thus, if we pass 243 inches to our method, then we will get only 20 feet, not 20.25.
undefined
3
Task
Java Syntax, level 3, lesson 8
Locked
Don't think about seconds…
If you stare at the second hand for a long time, you can feel how quickly and irretrievably time is slipping away.. Enough gawking at the second hand. Instead, let's figure out a task involving seconds.
Comments (129)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
EugeneEmory Level 8 San Antonio United States
10 February 2021
The only thing I don't like about the feet to inches task is that in reality it should be using double not integer for the variables. I know this is really basic but a double type variable would be more accurate, especially if you're dividing into a number that will have a remainder.
Ron R Level 18 Washington United States
23 November 2020
Is there any way to see the input data in the IDE similar to how the input data is indicated on the codegym web IDE?
Kelly Pepper Level 7 Orlando United States
11 October 2020
In task 3 I made the mistake of making "number1" and "number2" type int. It wouldn't compile unless I changed them to type String.
Mihai Bone Level 8 Bucharest Romania
28 September 2020
My hands are working but my brain...........
sergio Level 7 Colorado United States
20 September 2020
Can anyone please tell me why Intellij IDEA keeps running the wrong solution? i have tried RUN, Shft + F10, and Alt + Shft + F10. it keeps running a problem i skipped and i dont know how to run the one i am working on. It gives me credit but it doesn't display the current solution for the problem i am working on.
Ryan Vibbert Level 18 Columbus United States
5 August 2020
Plan to conquer the world task validation needs to be fixed. Like others have said below, it only accepts the code if the age comes before the name, when in reality it should not matter as long as the keyboard input prompts the correct variable.
HollyTi Level 16 Brno Czech Republic
10 July 2020
Plan to conquer the world: IDEA plug-in doesn't show the expected input (8 and then Kevin), so it's not clear what the task is about. IDEA runs the program OK with data being input in any order, and then the verification fails XD And I had no idea why till I looked at this task on this web page.
Brad Reed Level 19 Hartford United States
18 June 2020
Hey all, just dropping in to make sure you capitolize letters where needed...I just failed a task twice because I did not.... This has been a PSA from your freindly neighborhood newbie.
Stephen Haokip Level 8 imphal India
25 May 2020
level 3 lesson 8 task. i m stuck here plis help
Stephen Haokip Level 8 imphal India
25 May 2020
plan to conquer the world task is not runnable in mobile phones