Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Programming Question (40 points) Write a program that reads in the text file names.txt provided in the assignment folder in blackboard. You MUST use individually

image text in transcribed
image text in transcribed
Programming Question (40 points) Write a program that reads in the text file "names.txt" provided in the assignment folder in blackboard. You MUST use individually in a loop checking for the end-of-file condition. You are allowed to use a fixed size array for this project. Assume a maximum file size of 100 entries. Make sure you count how many you retrieve from the file! the OpenTextFileReader approach and read each line Your program should then display all of the names, in the provided order, in a list box on the left hand side of the form You should then create two buttons on your form. One button will sort the list into ascending order, the other descending order. You may use any sort algorithm that you want though I would suggest the Bubble Sort is easiest to code. You must write your own version of the sort algorithm. The result of the sort should then be displayed in a separate list box on the right hand side of the form. Something similar to the following: NOTE: You must write your own SORT routine. You are not allowed to use the internal Visual Basic Sort

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions