So Currently I am trying to make a calculator in c# that lets me calculate ohm values of resisitors based on the color bands.
assuming, the user inputs the color bands bandA,bandB,bandC,and bandD input is converted into an array. array is converted to string string converted to result
algorithm bandAColor + bandBColor + bandCColor(number of zeros) = q = q~=k(ohms)
yellow purple black orange = 470 k(ohms)
(str(4) + str(7) + str(0)) * 1 = 470 k(ohms)
My Question in short how do i access the table data correctly and less messy ? Do I need to add a second model with a different table called ohmscalculator and gather the data into that?
https://stackoverflow.com/questions/71303378/how-to-calculate-ohms-in-c-sharp-mvc-asp-net-using-sql-table-data
the above link is a better version of this project description. The link below is a link to my problems repository.
https://github.com/danammeansbear/ohms
So Currently I am trying to make a calculator in c# that lets me calculate ohm values of resisitors based on the color bands.
assuming, the user inputs the color bands bandA,bandB,bandC,and bandD input is converted into an array. array is converted to string string converted to result
algorithm bandAColor + bandBColor + bandCColor(number of zeros) = q = q~=k(ohms)
yellow purple black orange = 470 k(ohms)
(str(4) + str(7) + str(0)) * 1 = 470 k(ohms)
My Question in short how do i access the table data correctly and less messy ? Do I need to add a second model with a different table called ohmscalculator and gather the data into that?
https://stackoverflow.com/questions/71303378/how-to-calculate-ohms-in-c-sharp-mvc-asp-net-using-sql-table-data
the above link is a better version of this project description. The link below is a link to my problems repository.
https://github.com/danammeansbear/ohms