0% found this document useful (0 votes)
5 views7 pages

VB.NET Programming Assignments Guide

The document outlines practical assignments for a VB.NET programming course, including tasks such as calculating sums of odd and even digits, checking for Armstrong and Harshad numbers, finding prime and twin prime numbers, and creating various applications like a calculator and a digital watch. It also includes form design assignments for user interface elements like text boxes, buttons, and tree views. Additionally, it covers database operations such as adding, viewing, and deleting records in student and loan databases.

Uploaded by

munaxemimosa8
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views7 pages

VB.NET Programming Assignments Guide

The document outlines practical assignments for a VB.NET programming course, including tasks such as calculating sums of odd and even digits, checking for Armstrong and Harshad numbers, finding prime and twin prime numbers, and creating various applications like a calculator and a digital watch. It also includes form design assignments for user interface elements like text boxes, buttons, and tree views. Additionally, it covers database operations such as adding, viewing, and deleting records in student and loan databases.

Uploaded by

munaxemimosa8
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

402 VB.

NET Programming Language (Practical Question) 2011

Assignment : 1
Write following Program using Console Application
1. To find out the total number of an odd digits and even digits within the given number and print the sum
of all odd digits and sum of even digits.
2. Write a program to input a number and check whether the number is Armstrong or not. A number is
Armstrong number if sum of each digit raised to (total digit) is = number.
Example
N= 407 (3 digit)
43+03+73 = 64 + 0 + 343 = 407
3. Write a program to check whether number is Harshad Number or not.
Example: n=1729
Sum of digit = 19
Reverse of sum = 91
19*91 = 1729 (Original number).
4. Write a program to find prime number between range of start number and end number.
Input
Start Number = 1
End Number = 20
Output:
Prime numbers from 1 to 20 are
1 2 3 5 7 11 13 17 19
5. Write a program to find out twin prime numbers between 10 to 1000. Twin primes are defined to be
two consecutive odd numbers, which are prime.
e.g.: 11 and 13, 17 and 19 are twin prime numbers.

6. Enter two positive integers and calculate and print out the sum of the products of each pair of digits
occupying the same position in the two numbers.
Example:
If first number is 45 and second number is 534, then output will be 32.
(0*5 + 4*3 + 5*4 = 32)
If first number is 3445 and second number is 4534, then output will be 64
(3*4 + 4*5 + 4*3 + 5*4 = 64).
7. Write a program to display factorial series up to nth term
1! 2! 3! 4! …… n!
8. Write the program that display Fibonacci series up to nth term.
0 1 1 2 3 5 8 13 ……n

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 1


402 [Link] Programming Language (Practical Question) 2011
9. Write a program to do the following operations:
Read any two positive integer operands (say op1 & op2) and one character type operator (say
opr). Note that opr is any mathematical operator.
Depending upon the operator, do the appropriate operation. e.g. if opr is '+' then the display
the value obtained by evaluating the expression (op1 + op2)

10. Write a program to read month (1-12) and 4digited year and display total days in given month and year.
11. Write a program that display following pattern.

N=4 N=5 N=6


0 E 1
10a ED4 11
210aB EDC43 112
3210aBc EDCB432 1123
43210aBcD EDCBA4321 11235
112358

Input : MOUSE Input = “MANJIL”

m
m m a
m o m a n
m o u m a n J
m o u s m a n j I
m o u s e m a n z i l
m o u s l i j n a m
m o u l i j n a
m o l i j n
m l i j
l i
l

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 2


402 [Link] Programming Language (Practical Question) 2011

Assignment 2
1. Design the form having 1 Text box and buttons like Bold, Italic, Red & Blue, show and hide When
user presses any of this command buttons then the content of text box will be changed to red or
blue or bold or italic and Clicking on the “Show” button it will display a Textbox & when user
clicks on “Hide” button then it will remove the Textbox. (Use Visible Property)
2. Design the form that calculates Sum, Multiplication, Division and Subtraction of two numbers.
3. Design the following form

4. Design a form to create conversion calculator like


 Decimal number to Binary, Octal & Hexadecimal.
 Binary number to Decimal, Octal & Hexadecimal.
 Octal number to hexa, binary ,decimal etc.
5. Design the following form. So when user clicks on Radio Button then slect appropriate checkbox.

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 3


402 [Link] Programming Language (Practical Question) 2011

6.

7. Design one form to create application like Rich text document using 1 Rich Textbox and different
buttons. When user presses any of this command buttons then the selected content of Rich textbox
will be changed accordingly.

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 4


402 [Link] Programming Language (Practical Question) 2011
8. Design a form to create Treeview Editor

9. Design the following Tic-tac-toe game.

10. Design the digital watch using Timer Control.

11. Design the following form using horizontal scrollbar. In this, when user click on particular scroll
bar then back color of shape will be changed to Red, Green & Blue color.

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 5


402 [Link] Programming Language (Practical Question) 2011

12. Design the following form using vertical scrollbar. In this, when user click on particular scroll bar
then back color of shape will be changed to Red, Green & Blue color.

13. Design the following calculator using control array

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 6


402 [Link] Programming Language (Practical Question) 2011
Assignment - 3
1 Create following table
Student(id, name, course, DOB, address)
Write [Link] application to
 Add records
 view all the records
 Delete the particular record
 View all the student who are studying in course BCA
2 Write [Link] application to maintain loan database
Loan(id, cust_num, name, amount, no_of_inst, amt_inst, no_of_inst_over)
 Print all the customer who has to pay only one installment.
 Print the total amount to be repaid by all the customer.
3 Write [Link] application which access the following table.
Product_master ( pdt_no, description, profit_percent ,uni_measure, qty_on_hand, recorder_level,
cost_price, sell_price)
 Perform insert,delete,view and search for items whose cost price is less than sell price.
4 Write a [Link] application that perform insert, update and delete operations on Employee table &
perform a navigation operation on employee records.

< Preeti Bhatt ><Bhoomika Patel> <Dhirendra Tandel> Page 7

You might also like