This is using Visual Basic Forms The file for this program is called: points.txt
ID: 3821626 • Letter: T
Question
This is using Visual Basic Forms
The file for this program is called: points.txt
Down load the file to C; emp folder for testing
Here is the contents in the points.txt file you can create it yourself to test before answering
and here is whats required
File FORMATS Input file format: ID number, Name, points Output file (Valid) format: ID number, name points, Grade Output file (invalid): ID Number, name, point, error message Validation Point range for grade: 900 to 1000 A 800 to 899 SB 700 to 799 C Note: no 600 to 699 D extra credit 0 to 599 F PROCESSING l. Startup and design time a. Add Splash screen b. All buttons except Open button should be set to disable Hint: properties c. All textboxes should be set to read only 2. Op the points file ening a. Get file name from screen. b. Select the OPEN Button to open file. c. Change text on button from OPEN to CLOSE. d. Display "File is open in message box. e. Use Try... Catch for IO error processing f If open is good, set all button properties to enable 3. Record Processing a. Upon selecting the FIRST button (and Next button) b. Get record, validate points (see above) c. Points must be between 0 and 1000. d. If points are good, issue grade and write to valid file. e. If points are invalid. i. display message on screen and write to invalid file. ii. Grade box f Change text of button from FIRST to NEXT. g. Keep selecting the NEXT button until EOF (end of file). Page 1 of 2Explanation / Answer
Private Sub cmdUpload_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles cmdUpload.Click 'check that the file has been selected and it's a valid file If (Not File1.PostedFile Is Nothing) _ And (File1.PostedFile.ContentLength > 0) Then 'determine file name Dim sFileName As String = _ System.IO.Path.GetFileName(File1.PostedFile.FileName) Try If File1.PostedFile.ContentLengthRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.