Currency exchange

  • 3
  • Locked
Loan sharking, sales, banking: do you have a backup plan if programming doesn't work out? No? In that case, let's help traders and financiers with our top-notch programs. First, we'll organize a currency exchange: write a program that converts euros to dollars at a given exchange rate.
You can't complete this task, because you're not signed in.
Comments (26)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Cz Ferencz
Level 9 , Bucharest, Romania
28 September 2021, 12:42
A little bit of an advice to anyone looking at codegym's answer. Simplify, you can, lose the extra variables. just the println command and call the method and give it some correct parameters (int and double). Good luck!
ImDevin
Level 15 , Old Town, United States
25 March 2021, 20:59
Never mind. It was just that I didn't Capitalize the S of System.out.println. Wow, nothing like a silly little mistake to make you feel Stupid!!
ImDevin
Level 15 , Old Town, United States
25 March 2021, 20:42
I got the following error msg after running the code in the IntelliJ. Is this something the sysAdmin have to fix? com/codegym/task/task03/task0303/Solution.java:11: error: package system does not exist system.out.println(convertEurToUsd(10, 1.5));
Christina Fazekas
Level 3 , Liti, Greece
15 January 2021, 02:20
When I run my programs in IDEA, I cannot see what it prints. I just get the window pop up that tells me I have passed. Is there a way for me to see what my program is displaying in IDEA?
Roman
Level 41
15 January 2021, 06:59
Please try to post your question with the attached screenshot(s) in the section Help.
Syed Umar
Level 1 , Gothenburg , Sweden
28 December 2020, 17:43
This CODEGYM Plugin on the Computer is such an awesome feature!! It makes me feel it's all worth it!
MP
Level 8 , Wietzendorf, Germany
27 November 2020, 13:16
Okay so I started learning Java a while ago. Haven't been coding at all and wanted to start over again. But I can't complete the tasks I already finished :(
Indranil Chakraborty
Level 3 , United Kingdom
2 September 2021, 14:44
Me to
Indranil Chakraborty
Level 3 , United Kingdom
2 September 2021, 14:44
Me three
Stefan Maric
Level 22 , Frankfurt , Germany
7 February 2020, 19:47
Guys I need help. After all tasks are done and after correct result that Im getting system prints me this message: "Be sure that the program doesn't display anything superfluous." What is the problem in my code?
Alex Vypirailenko Java Developer at Toshiba Global Comme
8 February 2020, 09:36
No one can help if we can't see your code. Please submit a question in the Help section via the task itself.
theCalculator
Level 3 , Warren, United States
20 September 2019, 02:44
I have followed the instructions fetting correct answer, any hints
Prasanthi
Level 3 , Chennai, India
13 August 2019, 10:08
Awesome. Thanks finally I was able to do it.
Brandon Nicolle
Level 5 , Edmonton, Canada
11 August 2019, 00:14
So when I put return eur*exchangeRate; in our static double class what does that do exactly? Why can't it print out convertEurToUsd(int, double) without that return value?
Brandon Leirer
Level 7 , Keller, United States
12 May 2020, 16:50
As I understand it, calling the method sends the two values (eur and exchange rate) to the method. Then, by using "return" the value that the formula comes up with is substituted with the method call.