console application

  1. Gric

    sum of all transactions?

    I'm stuck with Implementing method "TotalProvisionRevenue()" I need sum of all transactions provision . How can I get this data? using BankingSystem.Exceptions; using BankingSystem.Models; using BankingSystem.Repositories; using System; using System.Collections.Generic; using System.Linq...
  2. Programmable Physics

    Question How to remove/delete a string that has been just entered by a user and read by console from Console Interface Screen?

    I want to delete a user input if a condition is not met, and keep the Console interface same and intact without using Console.Clear() or goto menu; I want to delete whatever was entered by the user if a condition is not met. How can I do that? If I use Console.Clear() or goto menu; the same...
  3. Programmable Physics

    How to know if 2 ASCII created lines in a command prompt has the same length?

    Is there a way to know if these 2 lines have the same size in pixels aka length? What code should I use to determine if they have the same length or not? Just because these perpendicular lines created with ASCII, they differ in length size according to whether they were put next to one another...
  4. T

    Extract outlook email attachment files and save in sql

    I'm trying to save the Outlook attachment file email and save in sql. I tried this following code and it only saved a numerical values using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using...
  5. T

    Save Outlook email Information to SQL Server

    I'm trying to save inbound Outlook mail data to sql server however I'm getting in error in System.Runtime.InteropServices.COMException: 'The attempted operation failed. An object could not be found.' What did I missed Note: RetrieveMail is exist in mailbox using System; using...
  6. M

    How to close a Console application

    I have developed a console application that sort of automates the renaming of RT structures in Radiotherapy clinical trials. I would like the console window to be closed from the program when it reaches the end. I tried many ways (please, see attached excerpts) but the window does not disappear...
  7. T

    How to save email reply on sql

    I'm trying to create an email reply on Outlook and save the email details (Sender, To, CC, Subject, Body and Attachment) on Sql Server. Can you please guide me. Thank you! More Details: After receiving an email the user will reply to an email after replying the user data (Sender, To, CC...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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() {...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
Back
Top Bottom