console application

  1. Kevin91

    Question Converting Celsius degrees to Fahrenheit degrees using switch

    I'm a beginner c# programmer trying to program a simple app that shows a menu to the user. When option 1 is selected by the user at run-time, the program lists values from 0 to 100 Celsius degrees converted to Fahrenheit degrees. When option 2 is chosen, the program calculates and displays a...
  2. Kevin91

    Resolved method to sum up numbers between two numbers

    I am a beginner in C# programming and trying to code a function that sums up all numbers from the start to the end and If the start number is greater than the end number, the function swap the values so that the start number becomes the end number and the end number gets the value of...
  3. 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...
  4. 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...
  5. 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...
  6. 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() {...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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