Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with an application in C# using Visual Studio. I have this text file called random.txt that contains 1 0 0 random integers,

I need help with an application in C# using Visual Studio.
I have this text file called random.txt that contains 100 random integers, and I need to make an application that reads the contents of the file into a List. Then, uses List methods to perform the following:
Use the RemoveAll method to remove all the List elements that contain a negative number.
Use the FindAll method to make a second List containing all the values that are within the range of 1 through 10. Display these values in a ListBox.
I can't seem to figure out how to set up my application- how it should look with Listbox(s), labels, etc. I also can't get the functions to work. Any help is appreciated. Thank you.
A copy of the random.txt file that I am using:
88
-62
25
93
93
57
97
19
8
-23
-91
-50
45
61
26
-5
-37
-8
41
88
35
23
-85
-95
-59
23
-89
-19
-1
-70
58
85
17
96
-68
-54
24
-67
-6
78
85
-99
40
-71
72
14
91
86
26
-30
6
39
-59
75
15
-35
-77
19
52
-31
46
15
-81
33
18
-76
32
49
7
-21
70
-70
97
62
-98
34
82
86
-68
26
32
-75
55
-71
24
-81
44
41
-19
67
-77
-96
-19
-75
-68
-30
81
-94
11
2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

Students also viewed these Databases questions

Question

c. Determine the confidence intervals of the linearised parameters.

Answered: 1 week ago