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
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
https://github.com/vishnubhandarge/Oasis-InfoByte/tree/main/TempratureConverter
Use this as referance
GitHub
Oasis-InfoByte/TempratureConverter at main · vishnubhandarge/Oasis-...
Contribute to vishnubhandarge/Oasis-InfoByte development by creating an account on GitHub.
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
can you upload it on github?
It allows you to redirect to other action methods.
are you developing using MVC or Console app?
Console App
I dont have a Guthub Account