I need to write a C# program in Visual Studio that lets a user input a set of positive numbers. The program should display a result that shows the number of valid numbers entered, the largest number and the smallest number.

Your program should be implemented using two classes.

  • The class named Numbers: Implement class as depicted in the class diagram. The method readNumbers should read the numbers repeatedly from the user, until they decide to stop. You have to use a while loop for this part. After the user is done entering numbers, the result should be displayed.
  • Write a test class for that uses class Numbers. Use this class to demonstrate that your program works. This is a sample output for the program: Enter a positive number (or negative number to quit): 54 Enter a positive number (or negative number to quit): 2 Enter a positive number (or negative number to quit): 8 Enter a positive number (or negative number to quit): 3 Enter a positive number (or negative number to quit): 9 Enter a positive number (or negative number to quit): 1 Enter a positive number (or negative number to quit): -1 RESULT Numbers entered: 6 Largest number: 54 Smallest number: 1
Looking for a solution written from scratch with No plagiarism and No AI?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay