Repository navigation
Expand file tree
/
Copy pathQuestions.txt
More file actions
112 lines (81 loc) · 3.68 KB
/
Copy pathQuestions.txt
File metadata and controls
112 lines (81 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Day 1 :
1) Create a new repository and try conflicting and resolve it(Understanding)
2) Lets work on some logics
2.1)https://leetcode.com/problems/two-sum/description/
2.3)https://leetcode.com/problems/palindrome-number/description/
Day 2 :
1) Advance Git - Commands
Day 3 :
1) Create a application that take 2 numbers and find its sum, product and divide the first by second, also supract the second from the first.
Include another method to find the remainder when the first number is divided by second
2) create an application that will find the greatest of the given numbers. Take input until the user enters a negative number
3) Find the avearage of all the numbers that are divisible by 7. Take input until the user enters a negative number
4) Find the length of the given user's name
5) Create a application that will take username and password from user. check if username is "ABC" and passwod is "123".
Print error message if username or password is wrong
Allow user 3 attemts.
After 3rd attempt if user enters invalid credentials then print msg to intimate user taht he/she has exceeded the number of attempts and stop
7) Take a string from user the words seperated by comma(","). Seperate the words and find the words with the least number of repeating vowels. print the count and the word. If there is a tie then print all the words that tie for the least
8) Learn datatypes in C#
Ref: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/built-in-types
9) Operators
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/
Day 4 :
1) Create a Doctor class with details
Id, Name, Age, Exp, Qualification, Speciality
2) Create an array of doctors
3) Print the array
4) Given a speciality print the doctor details in it
5) 4477468343113002
2003113438647744 - Reverse number
2+ 0*2 +0+ 3*2 +1+ 1*2 +3+ 4*2 +3+ 8*2 +6+ 4*2 +7+ 7*2 +4+ 4*2 - Even position number *2
2+ 0 +0+ 6 +1+ 2 +3+ 8 +3+ 16 +6+ 8 +7+ 14 +4+ 8 - 2 digits sum
2+ 0 +0+ 6 +1+ 2 +3+ 8 +3+ 7 +6+ 8 +7+ 5 +4+ 8 - total
70%10 ==0 then valid
Day 5 :
Create an application that will allow the user to play cow an bull(only for 4 char word)
Same char same position - cow
Same char diff position - bull
Example - If the word is - golf
Start the guess
heap
cows - 0, bulls - 0
kite
cows - 0, bulls -0
girl
cows - 1, bulls -1
like
cows -0, bulls 1
milk
cows -1, bull -0
goat
cows -2, bulls - 0
gold
cows -3, bulls-0
golf
cows -4, bulls -0
Congrats!!! you won!!!!!
has context menu
https://leetcode.com/problems/bulls-and-cows/description/
Day 6 :
Implement the interface in classes like ABC,XYZ
All classes should have datamembers like empid,name,dept,desg and basic salary
All values should be assigned through parameterized constructor
and data should be displayed using properties.
l̥
If class is ABC , 12% of basic salary of empddkoloyee should go for PF and 8.33% of basic salary should go for PF as employer contribution and 3.67% of Basic Amount should go for Pension Fund from employer contribution.
Leave Details for CTS is
1 day of Casual Leave per month
12 days of Sick Leave per year
10 days of Privilege Leave per year
Gratuity amount: if the no of service year completed in the same company is > 5 , 1month basic salary will be deposited in gratuity amount
if >10 years service , 2*basic salary=gratuity amount
if >20 years service , 3* basic salary=gratuity amount
if < 5 no gratuity.
If class is Accenture ,
12% of basic salary of employee should go for PF and 12% of employer contribution should go to PFfrom employer contribution.
Leave Details for Accenture is
2 day of Casual Leave per month
5 days of Sick Leave per year
5 days of Previlage Leave per year
Gratuity amount : Not applicable