Question 1 - Multiplication
Develop a program with following functionality.
- Input from the user will be five numbers separated by comma e.g. 56,80,123,3,2
- On selection of Go command button you have to populate list boxes by separating
- Even Numbers
- Odd Numbers
- Multiples Of 5
- Multiples Of 10
Note: Same number can go in more than 1 list boxes e.g.80 will appear in three list boxes i.e.Even Numbers, Multiples Of 5 and Multiples Of 10.
Question 2 - Multiplication
Imagine the * symbol does not exists in Visual Basic. Now implement multiplication of two integers using just addition and For Loops. It is up to you how you design your interface. Your program should work for any combination of positive and/or negative integers.
Extend your program so as it takes three instead of two integers and multiplies them together.
Submit separate programs for the basic version and extended tasks in folders named “Question 1a” and “Question 1b” respectively.
Question 3 - Fibonacci Series
The Fibonacci Series is a sequence of numbers first created by Leonardo Fibonacci (fi-bo-na-chee) in 1202. It is a deceptively simple series, but its ramifications and applications are nearly limitless.
The first two numbers in the series are one and one. To obtain each number of the series, you simply add the two numbers that came before it. In other words, each number of the series is the sum of the two numbers preceding it. (1, 1, 2, 3, 5, 8…)
Your task is to generate the first ‘n’ numbers of the Fibonacci series where ‘n’ is taken as input from the user. The entire series should be printed in a Picture Box.
All interface design issues again left up to you.
Question 4 - Prime Numbers
Write a program that takes as input an integer and determines whether it is prime or not. The input to the program would be any integer and the output would be a statement specifying whether the number input is a prime number or not.
Question 4 - Formatted Output
Write a program that will read a string from a message box and write this string on ‘n’ lines in a picture box, where ‘n’ is a number read from a text box. For n =7 and the string “CS101” we get the following output.
CS101
CS101
CS101
CS101
CS101
CS101
CS101