Question#1
write vb6 program that takes n numbers as input. it outputs the frequency of positive and negative numbers.a sample input and output are given as follows:
Input
n=12
the 12 numbers are as follows:
40 0 -1 59 -37 283 -91 -103 341 523
output:
Frequency of positive numbers:8
Frequency of positive numbers:4
Question#2
write a program that that reads n values in a list and prints the product of the value and the position at which it resides in the list i.e product=L[1]*,product=L[2]*2,and so on.
Note:the list does not change
Example
position: 1 2 3 4 5
value: 5 3 7 1 4
output: 5 6 21 4 20
1
Expert's answer
2010-11-22T12:28:08-0500
Just submit your assignment to the control panel and our experts will assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment