Question Projects Questions!

George Mlagara

New member
Joined
May 7, 2012
Messages
1
Programming Experience
1-3
Qn2:
Write a program in the VB.NET language to input a sentence from the user and then output the sentence in reverse. For example, if the user types in “The Rain in Spain”, then the output should be “Spain in Rain The”.

Qn3:
If we list all the natural (integer) numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Write a program in VB.NET language to calculate the sum of all the multiples of 3 or 5 below 1000. Include the source code and the calculated value in your answer.

Qn4:
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.

Write a program in the VB.NET language to output the 10001st prime number. . Include the source code and the value in your answer.

Qn5:
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

Write a program in the VB.NET language to consider the terms in the Fibonacci sequence whose values do not exceed four million and find the sum of the even-valued terms. Include the source code and the calculated value in your answer.
 
Back
Top