You are on page 1of 1

Day 1&2 Assignment

Lab Assignments: Console Application


1.Write a program to display a greet message according to the marks obtained by the student. Make use of switch statement. 2.Write a program to check if a gi en no. is prime. !.Write a program to display first " Armstrong nos. #.Write a program to find factorial of a gi en no. ".Write a program to accept a character from the user. $f the letter input is any %owel then display a message &'ou ha e input(%owel) else display &*his is not a %owel). +.Write a program to store bill number( name( ,uantity and price of item .*ake alues from the user and display the total bill amount. -..nter basic salary from the user. Write a program to calculate /A and 01A on the following conditions: 2alary 342555 72555 88 34"555 7"555 88 3415555 715555 /A 156 256 !56 "56 01A 256 !56 #56 "56

9.Write a program that will accept :ser$/ ;robert< and =assword ;hello< from user and if :ser$/ and =assword matches display the information about 1obert and if :ser$/ and =assword does not matches it should display message &$n alid $/ or =assword). >.Write an application that reads a string and determines whether it is a palindrome. Day2 1.Create a property and set their alues ;integer< on condition that they should not be Also Create read only property and write only property also.

negati e.

2.WA= that create a structure as person with three fields ?irst name( Last name ( age and a parametric constructor to accept the alues from users. /isplay the output.

You might also like