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

  Mr kindly do this estimate with your designing excel visual

kindly do this estimate with your designing excel visual basic software that shows diagram of holes and angle of

  What are the rules for charging the various rates

pen the figurethisout solution. Open the code editor window and study the btnDisplay_click procedure. What task does the procedure preform? What are the rules for charging the various rates?

  Permit a user to manipulate database using vb

Use VB to permit a user to manipulate database according to following: Permit the user to scroll through list of students while showing student ID, student name, advisor name, and department.

  Add two classes to the Inventory Maintenance application

Use inheritance with the Inventory Maintenance application - add two classes to the Inventory Maintenance application that inherit the InvItem class

  Create a window application form on visual basic

Create a window application form on Visual basic 2012., that verifiers a customers personal identification number (PIN). A valid PIN is a seven-digit number that meets the follow specifications

  Create project to display flags of four different countries

Create a project to display flags of 4 different countries depending on the setting of a radio button, into a single display box. In addition, display the name of the country under the flag display box.

  Send a printout of interface to the printer

write a visual basic instruction to specify that of printform1 control should send a printout of interface to the printer.

  Create a level-0 dfd and a level-1 dfd

CIS 130 System Analysis - The following data contain the four core functions the system must perform and the description of entities within Petrie's Customer Loyalty System.Create a Level-0 DFD, a Level-1 DFD, and an ERD based on the description w..

  Implement mortage calulator

Please update with todays date within file!I need to know the process to open my own Visual Basic 2003 and select a file to open to view all entities of VB2003.

  Write an application that will allow user to input a string

You need to provide a way to exit the program gracefully.

  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)

  Create a sub procedure that calculates and displays the next

A national Digital service provider would like you to create a Windows application that will display the global growth of smartphones. As of 2013, there 913 million smartphones worldwide.

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