C
C#8mo ago
PANZER234425

Currency Calculator

Hello, I got following problem, Im trying to make a small Currency Calculator, you can find my Code in the .txt. Im currently in the Calculation(string currencyChoice1, string currencyChoice2, double moneyChoice) method, but I dont know how I can efficently get the calculation since there are 10*10 possible calculations, since from USD to EUR or USD to JPY is a different factor. First I thought about a Switch Case, but it cant be right to do a 100 Step big Switch Case. Im at the beginning of C# learning, would appreciate help
5 Replies
Serene Sphinx
Serene Sphinx8mo ago
Why you made this program this much complicated? You can ask for cur1, cur2. then to enter cur1 and cur2. and convert by using simple logic. I don't know why you have added this much methods. I'm giving you my Temprature converter project as a referance
Serene Sphinx
Serene Sphinx8mo ago
GitHub
Oasis-InfoByte/TempratureConverter at main · vishnubhandarge/Oasis-...
Contribute to vishnubhandarge/Oasis-InfoByte development by creating an account on GitHub.
PANZER234425
PANZER234425OP8mo ago
Im still at the beginning, what does the app.UseHttpsRedicrection etc. mean? I wanted to get them and then check both of them in a seperate methode
Serene Sphinx
Serene Sphinx8mo ago
can you upload it on github? It allows you to redirect to other action methods. are you developing using MVC or Console app?
PANZER234425
PANZER234425OP8mo ago
Console App I dont have a Guthub Account
Want results from more Discord servers?
Add your server