Search results for query: *

  1. Paradoxz1

    Question BMI Calculator

    Umm ye thanks, that fixed it for me. I moved ReadHeight and ReadWeight from the textbox to the Button click, makes sense I'm sorry if I've made myself sound stupid in this conversation but Ill take a look at the validation code you sent me as I understand how it would be more logical and...
  2. Paradoxz1

    Question BMI Calculator

    Thank you jmcilhinney, this was all new to me ill go through the code and try to understand it so thanks for the comments and the explanations. It was very different from how I was thinking it could work. I have only done C++ coding in Arduino before. I'm sorry if my explanation was not...
  3. Paradoxz1

    Question BMI Calculator

    I did some work on it and managed to get it to print correct values it was as you said I never did pull the values which I now have fixed but upon fixing that I now have another issue which I cant seam to fix, Since I'm using the TryParse method to only parse numbers and if not show a messagebox...
  4. Paradoxz1

    Question BMI Calculator

    Edited: I'm sorry if anyone had enough time to read this before I edited it out working on a solution will update If you did see this post before edit please disregard
  5. Paradoxz1

    Question BMI Calculator

    Hi, I have been trying for the past 6 days to get this BMI calculator working to my requirements but to no success. I am not even able to get a value out from it. I don't know where to start looking for the issue as I have been looking at this code for hours now and been looking at different...
  6. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    Thank you Skydiver this was a lot better :) Thanks for all your help ill mark this as answered!
  7. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    Thank you Skydiver. I just have one question regarding line 5, I'm not quite sure I have 100% understood, I changed the code to be suited for my second part where I increase the weeks every 5 instead of the previous 3. for (int i = 6; i <=52; i += 5) { var...
  8. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    Thanks, it was never my intention to get anyone to do the work for me, I'm just having issues getting it in the format I want. I did try using Write instead of WriteLine but I'm not getting the results I want. I have been looking around and from what I can tell I need to add an integer for...
  9. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    Thank you that did help me align the numbers corresponding to single-digit and double digits, I have however since your post been trying to get them sorted in an order of 4-week displays per line but I honestly can not get it to work. I find it very hard to find tutorials and or help regarding...
  10. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    I edited my previous post but ill put it in again, its not much but ye this is it: int weekNumber = 1; while (weekNumber <= 52) { var weekString = String.Format("{0,10}{0,20}{0,30}{0,40}\n","Week "+ weekNumber)...
  11. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    I think the code provided will suffice, the only issue I find now, is not really related to the same is but is more of a formatting issue. But I thought id ask since I have you on the post. When I now Write my code to the console I get it displayed as following: Week 1 Week 1 Week 1 Week 1 Week...
  12. Paradoxz1

    Resolved Create list of numbers to be displayed as string

    Hey guys, I have been looking around for a while now but I can't find anything to help me with my issue. I'm trying to create a list that has weeks of the year in it 1-52 weeks in 1 year and then display the weeks in a formated string. So that every 3 weeks are displayed (Week 1 Week 4 Week 7...
  13. Paradoxz1

    Resolved Do while loop until Enter key

    Thank you so much, such a small thing can make such difference
  14. Paradoxz1

    Resolved Do while loop until Enter key

    Hello! I'm new to programming in C# and I'm trying an exercise where I have to write a console application that loops until the enter key is pressed. My issue is that I don't know how to do a "Do While" loop to keep looping until the Enter key has been pressed since I need to press enter key to...
Back
Top Bottom