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

Lab Assignments: Console Application: Day 1&2 Assignment

The document provides instructions for 10 programming assignments involving console applications in C#. The assignments include: 1) A program to display greetings based on student marks using a switch statement. 2) A program to check if a number is prime. 3) A program to display the first Armstrong numbers. 4) A program to calculate the factorial of a given number. 5) A program to check if an input character is a vowel. 6) A program to calculate a total bill amount by accepting bill details from the user. 7) A program to calculate PF and CPF based on salary. 8) A program to validate a username and password entered by the user. 9) A program to check if a string is a palindrome. 10

Uploaded by

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

Lab Assignments: Console Application: Day 1&2 Assignment

The document provides instructions for 10 programming assignments involving console applications in C#. The assignments include: 1) A program to display greetings based on student marks using a switch statement. 2) A program to check if a number is prime. 3) A program to display the first Armstrong numbers. 4) A program to calculate the factorial of a given number. 5) A program to check if an input character is a vowel. 6) A program to calculate a total bill amount by accepting bill details from the user. 7) A program to calculate PF and CPF based on salary. 8) A program to validate a username and password entered by the user. 9) A program to check if a string is a palindrome. 10

Uploaded by

Johny Rawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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