Exercises On Array Exercise 1: TH TH
Exercises On Array Exercise 1: TH TH
Exercise 1
Write a program that will declare an array, print the number, squares and cubes table as shown below
using list box(es) and then compute the following with appropriate message description:
Exercise 2
Write a VB.net program that will accept an integer value n and declare an array of nth term. The
program will then randomly generate integer number value to the nth term of the array.
Exercise 3
A retail store has just received a new supply if shirts. The market preliminary market research
indicates the market profit obtainable a given price x is given by:
Profit = x(100 – 3x) Write a program to compute the following tabular profit output for the integer
sales of price ranging from R10 – R30
Price Profit
10 700
11 737
: :
: :
30 300
Write a VB.net program to accept an n th integer value. Thereafter, generate an array of Fibonacci
number to the nth value. Compute the values of the queries that follow:
1. Display the set of data in an array form in GUI
2. Display same data in a reverse order
3. Display the square array of the fibo series
4. Compute and display the sum of the values in the fibo array
5. Compute and display the mean of the fibo array
6. Compute and display the median of the fibo array
7. Compute and display the difference of the fibo array
8. Computer and display assumed mean array of fibo series
9. Computer and display cumulative array of fibo series