You are on page 1of 58

Computer Application - I lab file

dfQueas-1) write a program for addition, subtraction,


multiplication, division.
Design View:-
Coding:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Output:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2) Program to generate the first 20 Fibonacci
numbers, use a counter to control the number of
iterations.
Design View:-
Coding:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Output:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-) write a program to generate factorial of number
! also displa" the table of that number.
Design View:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-#) create an application after accepting a string
from the user and displa"ing whether or not it is a
palindrome.
DESIGN VIEW:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
CODING:-
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-$) %rite a program that automaticall" computes
e&amination grades based on mar's that a student has
obtained.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-() %rite a program to calculate simple interest
after accepting principal, date and time from the user.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-)) %rite a program to input a number from the
user. Find and displa" the factorial and whether the
number input is odd or even
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
,0N 1I-E VA20E:-
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-*) %rite a program to input a number less than 10
and generate a series from +n-1), +n-2), to 1.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas--) %rite a program to accept a number ! store the
value in .. .ow displa" the .th term of the Fibonacci
series
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-10) %rite a program to accept a string from the
user and displa" the string bac'wards. /lso displa" the
number of times character 0a1 appeared in that string.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-12) %rite a program to accept a string from the
user and print the number of vowels and number of
spaces in the string.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1) %rite a program to generate prime number.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
,0N 1I-E:-
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1#) %rite a program to add two matri&.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1$) %rite a program to multipl" two matri&.
DESIGN VIEW:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
CODING:-
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1() %rite a program to store the ten numbers in
an arra" and then find average of these numbers
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1)) %rite a loop that declares a two-dimensional
arra". 2he loop should fill the elements of the arra" with an
integer that represents the multiplication of its two inde&es.
For e&ample, the element +,$) should contain the value 3
$ 4 1$.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1*) %rite a program that accepts a number from the
user and displa"s the sum of the digits of the number input.
For e&ample5 2he number input is 1,2,,#. now the sum is 1
62 6 6 # i.e. 10.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-1-) %rite a program to enter "our name and displa"
with different font and different color.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-20) %rite a program displa"ing 7ndian states with
respective capitals, area +s8.'ms) and languages using
combo bo& control.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-21) %rite a program to demonstrate the
9rivelistbo&, dirlistbo& and filelistbo& controls.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-22) %rite a program to input a line after entering
the width and st"le using line control.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2) %rite a program to draw different shapes li'e
rectangles, s8uare, oval etc. using shape control.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2#) create an application in :; which will
combine the messages of three te&tbo&es.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2$) %rite a program to print three labels in
different colors.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2() %rite a program to print the class teachers
name according to the class which is selected from a list
bo&.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2)) %rite a program to print bus fair according to
the bus services which is selected from a combo bo&.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2*) %rite a program to demonstrate the image control
using different images with chec' bo& control.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-2-) %rite a program to design a form containing
list bo& and combo bo&. /dd different te&t to both list
bo& and combo bo& through a te&tbo&. /lso provide
three command buttons for clearing the te&tbo&, list bo&
and combo bo&. %hen "ou add the items into the list bo&
and combo bo&, see the drop-down list bo& and combo
bo& for verif"ing list of item.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
Queas-0) <reate an application in :; having 2
te&tbo&es on the window. =n clic'ing show full name.
2he name should be printed in the following format 0>r.
first name 6 last name1. .ote5 <reate option button for
>r., >iss. , >rs.
DESIGN VIEW:-
CODING:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/
Computer Application - I lab file
,0N 1I-E:-
O01P01:-
PAGENO
!AVINA"
#$%#&'(#)(&
**A-+
,D
!E--.*/

You might also like