A name is a name

  • 2
  • Locked
At the age of 80, Yurgona Dye fulfilled his dream and learned to program. But he encountered two problems: first, nobody would hire him as a junior developer because of his age; and second, people were afraid to associate with him because of his name. But Yurgona is now a programmer. He can write a method that will assign him any name and birth year. Can you?
You can't complete this task, because you're not signed in.
Comments (22)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Aron
Level 18
4 July 2021, 13:14
Task is asking for a date format of mm/dd/yyyy while I was outputting dd/mm/yyyy 🤦‍♂️
mr.Slugghe
Level 10 , Italy
28 June 2021, 18:29
LUL Yurgona Dye
Lex Icon
Level 17 , Sofia, Bulgaria
30 September 2020, 12:55
SUPPORT: please, correct the expected output in the task, which is: My name is Kevin. I was born on 15/2/1988 The correct output must be: My name is Kevin. I was born on 2/15/1988 I've been spending 5-6 attempts before founding this mistake.
Edddieg
Level 15 , Providence, United States
13 June 2020, 05:23
-guys there is a catch here -the input data is name year month day -you should set your keyboard reader as such
Sean Nigito
Level 7 , Newark, United States
12 August 2020, 16:06
thanks for the tip!
mastere
Level 9 , Rochester, United States
6 November 2020, 14:49
I got it wrong the first time for that reason I had the month and day swapped for input reader.
Hoist
Level 21 , San Diego, United States
8 December 2021, 05:34
Thanks. The input sequence was the issue ?! Please explain why the sequencing of loading up the variables from inputs matters ? I just don't see it ....
ben
Level 8 , Basingstoke, United Kingdom
1 March 2020, 17:52
so why does this fail "The program should display text in accordance with the template specified in the task" criteria?
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
        Scanner scan = new Scanner(System.in);
        String name = scan.nextLine();
        int birthYear = scan.nextInt();
        int birthMonth = scan.nextInt();
        int birthDay = scan.nextInt();


        System.out.println("My name is " + name.substring(0, 1).toUpperCase() + name.substring(1) + ".");
        System.out.println("I was born on " + birthMonth + "/" + birthDay + "/" + birthYear);
    }
}
Manish Sinha
Level 26 , london, United Kingdom
12 March 2020, 14:22
have you solved this task? you are already on level 8 . great work .
stambul
Level 11 , Ukraine
4 October 2019, 13:15
five attempts because I entered "\" and not "/".
Laura
Level 7 , Lübeck, Deutschland
4 September 2020, 13:12
Oh that sucks.
Abu
Level 15 , Irving, United States
11 September 2019, 15:26
Be careful of "." (fullstop) after the name
K SHAKTHI DHAR REDDY
Level 5 , Chennai, India
3 July 2019, 10:24
can someone pls help
K SHAKTHI DHAR REDDY
Level 5 , Chennai, India
3 July 2019, 10:24
I don't understand whats wrong in this typing
Narra Geetha
Level 5 , Hyderabad, India
8 June 2019, 15:04
can anyone please help me with typo error
Zserbo
Level 22 , Budapest, Hungary
8 June 2019, 15:50
There is a dot at the end of the first line. That was my struggle