CodeGym /Courses /New Java Syntax /Concluding a contract

Concluding a contract

New Java Syntax
Level 2 , Lesson 6
Available

"It's me again! I think you already know enough to start making important decisions. It's high time that you concluded a contract with your new employer. You need to fill out an application. Here's the standard form. Just display its text on the screen, and that's it. Sign without reading it. That's what I always do."

Exercise: display the following text on the screen
My name is Amigo.

I agree to wages of $10/month in the first year.
I agree to wages of $20/month in the second year.
I agree to wages of $30/month in the third year.
I agree to wages of $40/month in the fourth year.
I agree to wages of $50/month in the fifth year.

Thank you, my friend Rishi, for your generosity!

Amigo thought for a minute:

"It doesn't look very generous to me. I remember this one phrase that Diego taught me…"

New exercise: write a program that displays the following text on the screen:
My name is Amigo.

I agree to wages of $5000/month in the first year.
I agree to wages of $5500/month in the second year.
I agree to wages of $7000/month in the third year.
I agree to wages of $8000/month in the fourth year.
I agree to wages of $10000/month in the fifth year.

Kiss my shiny metal rear actuator!

2
Task
New Java Syntax, level 2, lesson 6
Locked
Contract
The rule "Always read the terms of the contract!" seems simple enough, but so many people get burned because they don't follow it! But programmers are not like that. They always carefully study project conditions/specifications and only then do they draw conclusions, make plans, and start working. Let's practice a useful skill: we'll change the terms of the contract to be more favorable.

Rishi returned.

"Well, how are you doing?"

"It's ready. I've signed it."

"Brilliant! I'll also sign without looking. Here on the Galactic Rush, we never cheat each other."

" Ha-ha. Thank you, my friend Rishi, for your generosity!"

Comments (80)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Jimmy Level 4, Lausanne, Switzerland
7 November 2024
stay hard, keep going
Steven Level 3, Augsburg/Munich, Germany
5 November 2024
LOL

package com.codegym.task.task01.task0121;

/* 
Contract

*/

public class Solution {
    public static void main(String[] args) {
        System.out.println("My name is Amigo.\n\nI agree to wages of $5000/month in the first year.\nI agree to wages of $5500/month in the second year.\nI agree to wages of $7000/month in the third year.\nI agree to wages of $8000/month in the fourth year.\nI agree to wages of $10000/month in the fifth year.\n\nKiss my shiny metal rear actuator!");
        //write your code here
    }
}
Rohan Carvalho Level 3, CodeGym University in India, India
19 August 2023
I know! That is so annoying!
Crispr Level 2, Herndon, United States
2 August 2023
Why are all the tasks restricted to premium
John Squirrels Level 40, San Francisco, Poland
3 August 2023
We have only the first level available for free and the Games section.
Michaela Hrbková Level 3, Czech Republic
12 August 2022
com/codegym/task/task01/task0121/Solution.java:12: error: cannot find symbol: it is strange becouse the solution looks exactly the same but my text doesn´t work :(
abhishe_kira Level 18, India Expert
27 May 2023
i can understand i also had some problems with this package com.codegym.task.task01.task0121; /* Contract */ public class Solution { public static void main(String[] args) { //write your code here String a = "My name is Amigo."; String b = "I agree to wages of $5000/month in the first year."; String c = "I agree to wages of $5500/month in the second year."; String d = "I agree to wages of $7000/month in the third year."; String f = "I agree to wages of $8000/month in the fourth year."; String g = "I agree to wages of $10000/month in the fifth year."; String kiss = "Kiss my shiny metal rear actuator!"; System.out.println(a); System.out.println(); System.out.println(b); System.out.println(c); System.out.println(d); System.out.println(f); System.out.println(g); System.out.println(); System.out.println(kiss); } }
what??? Level 20, Taiwan, Province of China
16 May 2022
ha-ha. thank you, my friend Rishi, for your generosity.
Alexander Level 14, Köln Expert
7 February 2022
Love this lection for the Brat 2 reference
roymansoor Level 3, San Francisco, United States
8 December 2021
sometimes I make spelling mistakes and can't find it in my code I use https://www.diffchecker.com/ to check the difference.
TinCanSailor Level 3, Albuquerque, United States
17 December 2021
Thank you for this. It helped me locate a typo that I could not find.
Bhawesh Pandey Level 2, India, India
24 September 2021
Is premium subscription worth buying, what you say mates. I am not that rich so need your opinions atleast
Ehsan Ghajari Level 1, United Arab Emirates
27 September 2021
I have the same question, lol. Would anyone please tell us if its really worth it or not? thanks guys
16 October 2021
No, it is not. You still have to go through this ridiculous amount of simple exercise to get something more useful.
svetlanamar Level 7, Hungary
27 October 2021
On discount it is, today's the sale and probably on Black Friday and before Christmas
Travis McKinstry Level 9, United States of America, United States
28 October 2021
I'm not sure yet. It's like someone else has already mentioned: starts out with these really basic coding challenges which I guess is good for an absolute beginner.
4 August 2021
goddamn i forgot the final dot on "my name is amigo.", I needed 10 minutes to notice that lol.