Visual Basic 2017: Create a program to do the following:
Fill a string array with the grades from a file with the statement: (note the grades.txt is on moodle and must be placed in the project’s bin/Debug folder for proper execution) Dim GradeStr() As String = IO.File.ReadAllLines(“grades.txt”)
Then do the following steps:
• Dim another array called Grades() of type double to the same size as the string array
• Convert and copy each element from the string array GradeStr() to the array Grades() of type double
• Display the average grade in the Grades() array, formatted for 1 number after the decimal
• Display how many grades are 90 and above in the Grades() array
Application Name :VB_Grades_Application
Type of Application :Console Application
Language Used :VB
Module1.vb :
Module Module1
Sub Main()
Dim GradeStr() As String = IO.File.ReadAllLines("grades.txt")
Dim Grades(GradeStr.Length) As Double
'using for loop
For i = 0 To GradeStr.Length - 1
'convert each element from GradeStr to double
'and store it in the Grades array
Grades(i) = Double.Parse(GradeStr(i))
Next
'display average of grades array
Console.WriteLine("Average of Scores : " &
Grades.Average().ToString("0.0"))
Dim count As Integer 'variable used to store count
'checking how many grades are 90 and above
'using for loop
For i = 0 To GradeStr.Length - 1
If Grades(i) >= 90 Then
'increment count
count = count + 1
End If
Next
'print number of scores grades are 90 and above
Console.WriteLine("Number of Grades greater than or equal to 90 : "
& count)
End Sub
End Module
===============================================
Output :
Screen 1:grades.txt

Screen 2:

Visual Basic 2017: Create a program to do the following: Fill a string array with the...
I need help regarding my Visual Basic code
ISC/ITE 285 Homework Due: Monday, January 28 by 11:55 pm Create a text file named "Grades.txt" which will contain a list of numeric grades. Save the file in the projects Bin/Debug folder. A sample of the file contents is shown below: 80 96 95 86 54 97 Create a string array that will be populated from the file "Grades.txt" when the array is created (Class-level array). Also create a numeric array that...
Microsoft Excel VBA (Visual Basic for Applications) Programming
Language
Objectives: Create an array and redim it to a size equal to an
assigned value of a variable, populate the array with a series of
random numbers, output the array to a message box and to a
worksheet.
Instructions:
- Review the variables already declared. You won't need
others.
- See comments in the code that will act as your guide. Add new
code directly after each comment.
- Assign a...
ASSIGNMENT: Create a program to do the following: BONUS: A bonus of 20 points if you create the program in such a way that there is no limit on the number of names to be handled. 1) Read in names to sort until the user types the “enter” key as the first character of a “C-type” string (the maximum number of names is 20, there is not a maximum length to a name), using a two dimensional array of characters....
Solve using visual basic, c#, or c++
1. Write a program to do the Gauss Elimination procedure for a set of simultaneous linear equations. The input is a comma separated file of numbers. Write the program in the following phases. Ensure each phase runs correctly before you proceed to the next phase. a. Write a computer program to open a.csv file, and read the contents an augmented matrix of n columns and n +1 rows. The program should display the...
VISUAL BASIC- create a program for managing a "To Do" list. The program will need to read and update a text file named ToDoList.txt. The record structure of the file must be: 1) sort order, 2) task name and 3) desired completion date. When the program starts, it should read the contents file into a structure. The information should then be displayed in a data grid view. The data should be initially sorted by the sort order value. Afterwards, the...
I am trying to build a program in Visual Basic that allows user
to enter an objects mass and velocity and to display the Kinetic
energy. The application should have a function KineticEnergy that
accepts a moving objects mass and velocity as arguments. The
function should return the objects KE.
i get these three errors when trying to run the program I need
help how would I fix this so it runs successfully? Thanks in
advance!
Start 16 ml.vb* +...
C++ Question
Question 3 [43] The Question: You are required to write a program for an Online Tutoring Centre to determine the weekly rate depending on the number of sessions the students attend and then to calculate total revenue for the center. The Online Tutoring Centre charges varying weekly rates depending on the on grade of the student and number of sessions per week the student attends as shown in Table 1 below. Grade 8 9 Session 1 75 80...
Zander Inc. stores employee IDs and salaries in a sequential
access file named Employees.txt. Open the VB2015\Chap10\Zander
Solution\Zander Solution (Zander Solution.sln) file. Open the
Employees.txt file, which is contained in the project’s bin\Debug
folder. The ID and salary information appear on separate lines in
the file. Close the Employees.txt window. a. Define a structure
named Employee. The structure should contain two member
variables:
a String variable to store the ID and a Double variable to store
the salary.
b. Declare...
Lab Topics • The basics of Array object Use the following Coding Guidelines • When declaring a variable, you usually want to initialize it. Remember you cannot initialize a number with a string. Remember variable names are case sensitive. Use tabs or spaces to indent code within blocks (code surrounded by braces). Use white space to make your program more readable. Use comments after the ending brace of classes, methods, and blocks to identify to which block it belongs. Problem...
Visual Basic: Create an application that simulates a tic tac toe game. The form uses 9 large labels to display the x's and o's. The application should use a two dimensional integer array to simulate the game board in memory. When the user clicks the "New Game" button the application should step throguh the array storing a random number of 0 to 1 in each element. The numer 0 represent the letter o and the number 1 reprsents the letter...