68 471
Assignments Done
98,8%
Successfully Done
In December 2018

Answer to Question #1059 in Visual Basic for Adnan

Question #1059
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
Expert's answer
Just submit your assignment to the control panel and our experts will assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions