Create a sub called total to calculate sum for all number

Assignment Help Programming Languages
Reference no: EM131320878

Assignment

Instructions:

For Form_Load display, use a textbox and check its "multiline" checkbox. To display data on Form_Load, use a txtOutput. AppendText() method (i.e. NOT a listbox control).

1. Declare a global array "temp()" and populate it with data from a "Data" file (in bin/Debug)

2. Declare a global array "numbers1()" and set its upperbound to temp()

3. In Form_Load:

a) Convert temp() as String to numbers1() as Double: Use For Next loop

b) Create numbers2() and populate it with numbers1(): Use For Next loop

c) Create numbers3() and populate it with numbers2(): Use For Next loop

d) Sort numbers2() in ascending order. USE ARRAY SORT METHOD

e) Sort numbers3() in descending order. USE ARRAY REVERSE METHOD

f) Display column headers: "ArrayIndex" "fromFile" "Ascending" "Descending"

g) Display the results

4. Create a Sub called Total to calculate the sum for all numbers in Data file.

5. Inside btnTotal_Click, call the Total Sub

6. Create a Sub called MinMax to determine the largest and smallest numbers in Data file. USE FOR EACH Loop!!

7. Inside btnMinMax_Click, call the MinMax Sub

8. Create a Sub called Average to calculate the average of the numbers in Data file. USE THE "AVERAGE" BUILT-IN SYSTEM METHOD

9. Inside btnAverage_Click, call the Average Sub.

Reference no: EM131320878

Questions Cloud

Suppose electricom marketing manager : Suppose Electricom's marketing manager learned that actual sales of his firm's electric widgets to NAICS industry #335312 amounted to about 20 percent of its national market potential for that industry
Is definition of conductivity limited to thermal equilibrium : Describe the conditions at which the conductivity is an equilibrium parameter and hence a fundamental property of a solid.
What is the biblical basis for your philosophy : How can you use, teach, and equip others to participate in multicultural ministry? Use at least 2 relevant academic references to support your ideas. What is the biblical basis for your philosophy
Topic-indo-chinese restaurant : (a) SWOT Analysis - Identifies strengths, weaknesses, opportunities, and threats to provide a solid foundation, which is the springboard to identify subsequent actions the marketing plan.
Create a sub called total to calculate sum for all number : Create a Sub called Total to calculate the sum for all numbers in Data file. Create a Sub called MinMax to determine the largest and smallest numbers in Data file. USE FOR EACH Loop!!
Cash flow amount to use initial investment in fixed assets : Kenny, Inc., is looking at setting up a new manufacturing plant in South Park. The company bought some land six years ago for $8.5 million in anticipation of using it as a warehouse and distribution site, but the company has since decided to rent fac..
What is the drift velocity of the electrons : A current of 1 A/cm2 is forced through an n-type Si bar with a resistivity of 1 ohm-cm at 300K. What is the drift velocity of the electrons? How long does it take for an electron to drift through an Si bar of 1mm long?
How would you expect the performance metrics to change : How would you expect the performance metrics to change? Inventory level or capital cost.Do you believe that a lean philosophy will work for CVS (based on the company, the industry, etc.)?Make at least one recommendation to help make the lean initiati..
Analyze the financial health of the firm : Of course he needs also your recommendation based on the calculation the initial investment, the incremental operating cash flow, the terminal cash flow, and the relevant cash flow associated with each of the alternatives - As a Future Business Le..

Reviews

Write a Review

Programming Languages Questions & Answers

  What is rss? why and who should use rss?

What is RSS? Why and who should use RSS?

  Write program that prompts the user to enter a phone number

Write a test program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (upper- or lowercase) to a digit and leaves all other characters intact.

  Write a program to compute the volume flow rate in cubic

write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter

  Identify and discuss the four different dom nodes

Identify and discuss the four different DOM nodes. The properties to be stored should include Make, Model, Year, and Color. Write code that will display these properties using a single alert statement.

  Calculate the amount of profit and loss

Calculate the amount of profit and loss. Also if Profit then display the smiley face, if loss then display sad face and if break even then confused face.

  Write program which bounces blue ball inside jpanel

Write a program which bounces blue ball inside a JPanel. The ball must begin moving with a mousePressed event. When the ball hits the edge of the JPanel.

  Write functions to implement split-mergesort for files

Write functions to implement the split, merge, and mergesort algorithms for files. Also, write driver programs to test the given functions.

  Project code in visual studio console application

Project code in visual Studio Console application and class library and the PADI project aims at implementing a simpli ed distributed software transactional system.

  Calculates and displays the property tax

Write a java application that calculates and displays the property tax for N property owners. N should be declared as a constant and it should be equal to the largest digit of your student ID number

  Application that calculates the cost of all the supplies

Write an application that calculates the cost of all the supplies added to the user's shopping list (Fig. 22.18). The application should contain two Li stBoxes. The first contains all the supplies offered and their respective prices. Users should ..

  Create a third subclass called phone that also extends book

Then create a third subclass called Phone that also extends the Book class. The Phone class should keep track of the number of yellow pages and the number of white pages in each phone book.

  Write a program to find minimum and maximum values

Write a program to find minimum and maximum values for third-degree polynomials of the form:

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