Which library should be imported to access a txt file

Assignment Help Visual Basic Programming
Reference no: EM132342486

Visual Programming Assignment -

Question 1 - Download the VB project from Moodle (i.e. Ass2-grades). Un-Compress the project and rename it as follow: Ass2-grades-Your ID.

Follow the following instructions:

1. Add a Module named GradeReport.vb to the VB project.

2. Add the following methods to GradeReport.vb module:

a. CountPassedStudents function that accepts an array of grades (i.e. double), count students who passed the course (i.e. grades >=60).

b. DisplayPass subroutine that accepts an array of grades (i.e. double) and displays the grades of all the students who passed the course by listing them in lstResult.

c. DisplayFail subroutine that accepts an array of grades (i.e. double) and displays the grades of all the students who fail in the course by listing them in lstResult.

d. ComputeAvgGrade function that accepts an array of grades (i.e. double), computes and returns the average.

e. CountAbove_BelowAvg function that accepts an array of grades (i.e. double),counts the number of grades that are above the average, counts the number of grades that are below the average, and return the counts.

f. FindMaxGradefunction that accepts an array of grades (i.e. double) and returns the maximum grades.

g. FindMinGrade function that accepts an array of grades (i.e. double) and returns the minimum grade.

3. Generate a report by:

a. Counting students who passed the course.

b. Listing grades for students who passed the course.

c. Counting students who fail in the course.

d. Listing grades for students who fail in the course.

e. Computing and displaying the average grade.

f. Counting grades above and below the average.

g. Finding and displaying the maximum grade.

h. Finding and displaying the minimum grade.

Hint: You need to declare an array to hold the input (10 grades).

Question 2 - Choose the correct answer:

1. Which library should be imported to access a txt file?

a) System.IO

b) System.InputOutput

c) System.File

d) System.txtFile

2. Which statement will overwrite data in "Graders.txt"?

a) fileWriter = new StreamWriter ("Grades.txt", True)

b) fileWriter = new StreamWriter ("Grades.txt", False)

c) fileWriter = new StreamWriter ("Grades.txt", Append)

d) fileWriter = new StreamWriter ("Grades.txt", Overwrite)

3. A text file could be accessed randomly and not sequentially?

a) True

b) False

4. readLine is a function in StreamWriter class?

c) True

d) False

Attachment:- VISUAL PROGRAMMING Assignment Files.rar

Reference no: EM132342486

Questions Cloud

Productivity of a company is an example of a positive : The effect of a well-educated labor force on the productivity of a company is an example of a positive externality
What would her indifference curve of hamburgers : If Sally is a vegetarian, what would her indifference curve of hamburgers and vegetarian pasta look like? Please explain and draw the graph.
Securities from the non-bank public : If the Federal Reserve buys $40,000 worth of securities from the non-bank public, and the non-bank public then deposits the payment in their bank account
Need a response post for two different classmates : Need a response post for two different classmates - The key is to be specific and detailed. If you agree with your classmate be very specific
Which library should be imported to access a txt file : ITCS 222: Visual Programming Assignment, Ahlia University - College Of Information Technology, Bahrain. Which library should be imported to access a txt file
Organization tasks and general environment : What is Apple's organization's tasks and general environment. Describe. Why? Explain
Computing the monthly loan payments : Set up the formula for computing the monthly loan payments for a 15 year mortgage of $100000 taken out at 6%?
Recycled back in to purchases of domestically produced : Suppose that out of the original 320 increase in government spending, 224 will be recycled back in to purchases of domestically produced goods and services.
How much do the exports exceed the imports : Gross domestic product equals $1700 billion. If consumption equals $640 billion, investment equals $180 billion, and government spending equals $330 billion.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Problem involving option buttons and radio buttons.

The Solution cannot be opened with Visual Basic 2010.

  Write visual logic program to accept number til negative

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

  Write a program to create an invoice form for an order.

Write a program to create an invoice form for an order. After the data on the left side of Fig. 5.27 is entered, the user can display an invoice in a list box by pressing the Process Order button. The user can click on the Clear Order Form button to ..

  Modify the program by creating a separate class

Modify the program by creating a separate class called ProcessShipping to calculate the shipping charge for each package

  Table of decimal octal hexadecimal and binary equivalents

write a program that displays in a textbox a table of the binary octal amd hexadecimal equivalents of the decimal

  How you could use this in data entry portion of your code

Visual Studio has a feature called IntelliSense. Examine how you could use this in the data entry portion of your code. Explain whether or not you would use IntelliSense in writing your program

  Add a form that includes the richtextbox control

Add a form that includes the RichTextBox control and several predefined template letters

  Make a httpwebrequest get request using a proxy

Make a HttpWebRequest GET request using a proxy, the proxy should be loaded from a file whatever.txt the proxy format is 0.0.0.0:00 ( $IP:PORT)

  Develop calendar screens for windows

Develop calendar screens for Windows and imagine you need to present IT troubleshooting best practices to junior systems administrators at an IT department meeting to ensure departmental efficiency with solving issues.

  Create windows form that prompts user survey responses

Write a GUI program that reads a five-letter word from the user and produces all possible three letter combinations that can be derived from the letters of the five-letter word.

  How do i delete an item based on its first letter?

Delete every item beginning with the letter M. The code should do the job even if additional items were added to the list.

  Program to convert nfas into dfas

Write a program that can do one of the functions - Program to convert NFAs into DFAs. and Program to convert RGinto an NFA.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd