[go: up one dir, main page]

0% found this document useful (0 votes)
8 views1 page

Assignment 2

This document is an assignment for the subject 'Application Development Using VB.NET' at Shree Swaminarayan College of Computer Science. It includes a series of programming tasks that require students to write code for various applications, such as determining if a number is positive or negative, calculating grades based on marks, and converting days into years, months, and days. The assignment aims to enhance students' programming skills using VB.NET through practical exercises.

Uploaded by

yashpavasiya892
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)
8 views1 page

Assignment 2

This document is an assignment for the subject 'Application Development Using VB.NET' at Shree Swaminarayan College of Computer Science. It includes a series of programming tasks that require students to write code for various applications, such as determining if a number is positive or negative, calculating grades based on marks, and converting days into years, months, and days. The assignment aims to enhance students' programming skills using VB.NET through practical exercises.

Uploaded by

yashpavasiya892
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
You are on page 1/ 1

Shree Swaminarayan College of Computer Science

BCA-CC-404, Subject Code: 22699, Subject Name: Application Development Using VB.NET
ASSIGNMENT – 2

1. WAP to enter number and find out the number is positive or negative.
2. WAP to enter any no, if no is greater than equal to 40 then display message PASS
otherwise display message FAIL.
3. WAP to enter any no and check whether it is odd or even. (use both if and
select…case)
4. WAP to enter any three no and find out maximum no and minimum no.
5. WAP to enter any 6 subject marks and find out total, percentage and class.

a. percentage >=70 than DIST


b. percentage >=60 than FIRST
c. percentage >=48 than SECOND
d. percentage >=40 than PASS
e. percentage <40 than FAIL

6. WAP to enter any no between 1 to 99 and display message as per following


condition using select … case.

a. If no between 1 to 9 then message 1 to 9


b. If no between 10 to 19 then message 10 to 19
c. If no between 20 to 29 then message 20 to 29
d. If no between 30 to 39 then message 30 to 39
e. If no between 40 to 49 then message 40 to 49
f. If no between 50 to 59 then message 50 to 59
g. If no between 60 to 69 then message 60 to 69
h. If no between 70 to 79 then message 70 to 79
i. If no between 80 to 89 then message 80 to 89
j. If no between 90 to 99 then message 90 to 99

7. WAP to enter any no and check whether it is divisible by 3 or divisible by 5 or


divisible by 3 and 5 both.
8. Write a Program to enter any operator and check whether it is arithmetic operator or
not. (use Select ….. case)
9. WAP to enter any two digits no and display total of two digit no.(Input is 85 then
output is 8+5 = 13 )
10. A marketing company decide to declare a bonus on salary. if staff member is female
than 10% and if Male then 15% of basic salary.
11. write a console application to input number in days and convert it into the
year,months and days ( Consider 1 month = 30 Days, 1 Year = 12 Months)

PREPARED BY: NIRAV K. SHAH Page 1 of 1

You might also like