console application

  1. Polski Arrow

    Resolved Test code with loops not working.

    Hi, I wrote that code below and built and compiled it to console program. That's my test code for strategy game in console. There I have to choose area by typing X and Y coordinates. Areas are int variables which can represent empty area (0) ad area with number of pawn (1-25). How should it...
  2. M

    How to Code User-Typed Console info with SOLID Principles

    I recently completed an small assessment that reads a CSV sheet, then adds to it. This is a C# console app. I'm still learning, and at this point, I can achieve MVP, but it is lacking in SOLID principles or 4 pillars of OOP. Here is a working method for retrieving a first name from a user...
  3. N

    Question Printing text file contents on a console using HTTPClient

    How do you print a Text file on a console application with formatting like below in HTTPClient in C# Language? Here is how my textFile looks like: Hi|Fine! Here is all my code: using System; using System.Net.Http; using System.Threading.Tasks; class Program { static void Main() {...
  4. computer

    get Time

    I try to create app . scenario is i have a folder in that folder there is some files so every file is taking update in every 15 mint check image in image currenlt there is 3 files so every file update in every 5 seconds when this fully update then next file is create so i want when there is no...
  5. J

    Delta X and Delta Y between two points?

    I have written some C# code that is suppose to show the ouput of 'Distance between points: 1.414 degrees' and 'Angle between points: -135.000'. But I keep getting the same output irregardless of the input i.e. if I enter any numbers at the prompt I still get: Distance between points...
  6. J

    exit console application code, also center code?

    I have a few questions regarding a Menu with C# (as below). The first problem is how do I write a line of code that will close the Console Application when prompted, i.e. if I write the message 'Do you want to quit (y/n) ?' - and they press Y - how would I write code that wouldexi the...
  7. Q

    Question Making a program that converts speech to text

    so I got the code from the msdn website: https://msdn.microso...udiostream.aspx , just to check and see if everything is working. and since i do not have the wav file specified in the original code i downloaded my own wav file and inserted the address of it. the program works but it prints out...
  8. RedTurbo

    Question How to control what the user enters and give an error if needed?

    Hello, I am making a C# console application which calculates BTEC grades to UCAS points. Only thing is, this course has 18 units, so I want the user to enter either 'p', 'm' or 'd' and maybe some other inputs if I choose to later. So when the user enters something wrong like 'wefttryh239y' then...
Top Bottom