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

  Calculate and display the cost for operating home appliance

Validate that the data entered has the correct format and is within a reasonable range. Calculate and display the cost for operating a home appliance as soon as the data is entered.

  Code an application that calculates a customers discount

Code an application that calculates and displays a customer's discount and the total amount the customer owes. Create a Visual Basic Windows application.

  Calculate and display total number of cell phones ordered

The scottsville cellular solution needs to be coded so the calculate order button should calculate and display the total number of cell phones ordered and the total price of the order. Each phone costs $85.

  Write a visual basic program to create an invoice

Write a Visual Basic program to create an invoice form for an order. (See the diagram below.) After the data on the left side of the form are entered, the user can display an invoice in a list box by pressing the Process Order button.

  Create a vb form application that contains two listboxes

Create a VB form application that contains two listboxes and two buttons. The application starts off with both lists empty. Button 1 will clear both lists and then add 25 randomly generated number to the first list. The numbers will vary in value ..

  Prepare a brief summary of the purpose of the organization

Identify the ICT personnel skills required to support the organisational unit as defined in the SLA that you prepared in Assessment. Prepare job descriptions

  To demonstrate completing and delivering a prototype rad

to demonstrate completing and delivering a prototype rad system using oops capabilities of vb.net. prepare a vvb boards

  Prompt the user to store values into the array

Write the Visual Basic code. Declare an array to store five values; they could be decimal numbers. Prompt the user to store values into the array.

  Prepare a toe chart ordered by task

Create a Visual Basic Application- User Interface Design. Prepare a TOE chart ordered by task, and then rearrange the TOE chart so that it is ordered by object.

  Find whether a number entered by user is prime number or not

Find whether a number entered by user is prime number or not using Excel VBA.

  Wage calculator with tax calculations

Wage Calculator with Tax Calculations - Develop an application that calculates an employee's earnings

  Delete their account if they are not registered for class

Create an online account. The registration form should require the student to create a password.

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