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

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

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.

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