├── 1. First_Semester ├── Assignment1 │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── HAQ4.java │ ├── HAQ5_Approach1.java │ ├── HAQ5_Approach2.java │ ├── ICPLabAssignment1.pdf │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ ├── Q7.java │ ├── Q8.java │ └── Q9.java ├── Assignment2 │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── ICPLabAssignment2.pdf │ ├── Q1.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ └── Q7.java ├── Assignment2_CLA(Command Line Argument) │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── ICPLabAssignment2.pdf │ ├── Q1.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ └── Q7.java ├── Assignment3 │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── HAQ4.java │ ├── HAQ5.java │ ├── ICPLabAssignment3.pdf │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ ├── Q7.java │ ├── Q8.java │ └── Q9.java ├── Assignment4 │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── HAQ4.java │ ├── HAQ5.java │ ├── ICPLabAssignment4.pdf │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ ├── Q7.java │ ├── Q8.java │ └── Q9.java ├── Assignment5 │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── HAQ4.java │ ├── HAQ5.java │ ├── ICPLabAssignment5.pdf │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6A.java │ ├── Q6B.java │ ├── Q6C.java │ ├── Q6D.java │ ├── Q7A.java │ ├── Q7B.java │ ├── Q7C.java │ ├── Q8.java │ └── Q9.java └── Assignment6 │ ├── HAQ1.java │ ├── HAQ2.java │ ├── HAQ3.java │ ├── HAQ4.java │ ├── HAQ5.java │ ├── ICPLabAssignment6.pdf │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ ├── Q7.java │ ├── Q8.java │ └── Q9.java ├── 2. Second_Semester ├── Assignment1 │ ├── Assignment1.pdf │ ├── Home Assignment │ │ ├── Q1.java │ │ ├── Q2.java │ │ ├── Q3.java │ │ ├── Q4.java │ │ └── Q5.java │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ ├── Q7.java │ ├── Q8.java │ └── Q9.java ├── Assignment2 │ ├── Complex.java │ ├── DSA Assignment-2.pdf │ ├── Deposit.java │ ├── Home Assignment │ │ └── he │ ├── Phone.java │ ├── Product.java │ ├── Q7.java │ ├── Q8.java │ ├── Q9.java │ ├── Ques10 │ │ ├── Main.java │ │ ├── Sports.java │ │ ├── Student.java │ │ └── Test.java │ ├── Shape.java │ └── Student.java ├── Assignment3 │ ├── DSA Assignment-3.pdf │ ├── Home Assignment │ │ ├── Q1.java │ │ ├── Q2.java │ │ ├── Q3.java │ │ ├── Q4.java │ │ └── Q5.java │ ├── Q1.java │ ├── Q10.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ ├── Q6.java │ ├── Q7.java │ ├── Q8.java │ └── Q9.java ├── Assignment4 │ ├── DSA-Programming Assignment-IV.pdf │ └── LinkedList.java ├── Assignment6 │ ├── DSA-Programming Assignment-VI.pdf │ ├── StackDemo1.java │ └── StackDemo2.java └── Assignment7 │ ├── DSA-Programming Assignment-VII.pdf │ ├── QueueDemo1.java │ └── QueueDemo2.java ├── 3. Third_Semester ├── Algorithm-Design-1(AD1) │ ├── LAB-01(Abstract data type Array - Iterative Implementation) │ │ ├── Q1.java │ │ ├── Q2.java │ │ ├── Q3.java │ │ ├── Q4.java │ │ ├── Q5.java │ │ ├── Q6.java │ │ ├── Q7.java │ │ └── Q8.java │ ├── LAB-02(Abstract data type Array - Recursive Implementation) │ │ ├── Q1.java │ │ ├── Q2.java │ │ ├── Q3.java │ │ ├── Q4.java │ │ ├── Q5.java │ │ ├── Q6.java │ │ ├── Q7.java │ │ └── Q8.java │ ├── LAB-03(Sorting[Bubble, Insertion, Selection]) │ │ ├── Q1.java │ │ ├── Q2.java │ │ └── Q3.java │ ├── LAB-04(Sorting) │ │ ├── Q1.java │ │ ├── Q2.java │ │ └── Q3.java │ ├── LAB-05(Searching) │ │ ├── Q1.java │ │ ├── Q2.java │ │ ├── Q3.java │ │ └── Q4.java │ ├── LAB-06(Searching[Linear, Binarym Hashing and Symbol tables]) │ │ ├── Q1.java │ │ ├── Q2.java │ │ ├── Q3.java │ │ ├── Q4.java │ │ └── Q5.java │ ├── LAB-07(LinkedList) │ │ └── LinkedList.java │ ├── LAB-08(Stack) │ │ └── StackUsingArray.java │ └── LAB-09(Queue) │ │ ├── QueueUsingArray.java │ │ └── QueueUsingLinkedList.java └── Computer-Science-Workshop-1(CSW1) │ ├── Assignment-01-HTML │ ├── Google.png │ ├── Q1.html │ ├── Q10 │ │ ├── 1st.html │ │ └── 2nd.html │ ├── Q2.html │ ├── Q3.html │ ├── Q4.html │ ├── Q5.html │ ├── Q6.html │ ├── Q7.html │ ├── Q8.html │ ├── Q9 │ │ ├── 1st.html │ │ └── 2nd.html │ ├── SOA.png │ ├── SSLogo.png │ ├── Tiger.jpg │ ├── cat.jpeg │ └── dog.jpg │ ├── Assignment-02-CSS │ ├── Outputs │ │ ├── Q1.png │ │ ├── Q10.png │ │ ├── Q2.png │ │ ├── Q3-1.png │ │ ├── Q3.png │ │ ├── Q4-1.png │ │ ├── Q4.png │ │ ├── Q5.png │ │ ├── Q6.png │ │ ├── Q7-1.png │ │ ├── Q7.png │ │ ├── Q8.png │ │ ├── Q9-1.png │ │ └── Q9.png │ ├── Q1.html │ ├── Q10.html │ ├── Q2.html │ ├── Q3.html │ ├── Q4.html │ ├── Q5.html │ ├── Q6.html │ ├── Q7.html │ ├── Q8.html │ ├── Q9.html │ ├── SOA.png │ ├── TajHotel.jpg │ └── TajM.png │ ├── Assignment-03-jQuery │ ├── Outputs │ │ ├── Q1.png │ │ ├── Q10-1.png │ │ ├── Q10-2.png │ │ ├── Q10-3.png │ │ ├── Q10-4.png │ │ ├── Q2.png │ │ ├── Q3.png │ │ ├── Q4.png │ │ ├── Q5-Effects.png │ │ ├── Q5-NoEffects.png │ │ ├── Q6.png │ │ ├── Q7.png │ │ ├── Q8-Effects.png │ │ ├── Q8-NoEffects.png │ │ └── Q9.png │ ├── Q01.html │ ├── Q02.html │ ├── Q03.html │ ├── Q04.html │ ├── Q05.html │ ├── Q06.html │ ├── Q07.html │ ├── Q08.html │ ├── Q09.html │ ├── Q10.html │ ├── Q10_about.html │ ├── Q10_contact.html │ ├── Q10_index.html │ ├── SOA-PNG.png │ └── rabdom.html │ ├── Assignment-04-Bootstrap │ ├── Q01.html │ ├── Q02.html │ ├── Q03.html │ ├── Q04.html │ ├── Q05.html │ ├── Q06.html │ ├── Q07.html │ ├── Q08.html │ ├── Q09.html │ ├── Q10.html │ └── assets │ │ ├── Apple.png │ │ ├── BabyAnimal.jpeg │ │ ├── Bird.jpeg │ │ ├── Elephant.jpeg │ │ ├── Happy New Year │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ └── 7.jpg │ │ ├── Image.png │ │ ├── Monkey.jpeg │ │ ├── Panda.jpeg │ │ ├── Peacock.jpeg │ │ ├── Rabbit.jpeg │ │ ├── Tiger.jpeg │ │ ├── Zebra.avif │ │ └── checkoutLogo.png │ ├── Assignment-05-Datatype and BitWise Operator │ ├── CSW1_Assignment_BitwiseOperators.pdf │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q10.java │ ├── Q11.java │ ├── Q12.java │ ├── Q13.java │ ├── Q14.java │ ├── Q15.java │ ├── Q16.java │ └── Q17.java │ └── Assignment-06-Wrapper Class │ ├── CSW1_Assignment_WrapperClass.pdf │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q10.java │ ├── Q11.java │ └── Q12.java ├── 4. Fourth_Semester ├── Algorithms-Design-2(AD-2) │ ├── Lab Class 01 │ │ ├── BFS_Graph.java │ │ └── DFS_Graph.java │ ├── Lab Class 02 │ │ ├── Dijkstras_Algorithm.java │ │ ├── Kruskals_Algorithm.java │ │ └── Prims_Algorithm.java │ ├── Lab Class 03 │ │ ├── BruteForceSearch.java │ │ └── RobinKarpAlgorithm.java │ ├── Lab Class 04 │ │ └── BinarySearchTree.java │ ├── Lab Class 05 │ │ └── HashTable.java │ ├── Lab Class 06 │ │ └── Q1.java │ ├── Lab Class 07 │ │ ├── FractionalKnapsack.java │ │ └── HuffmanCoding.java │ ├── Lab Class 08 │ │ ├── Q1_MergeSort.java │ │ └── Q2_QuickSort.java │ ├── Lab Class 09 │ │ └── Ques.java │ ├── Lab Class 10 │ │ ├── LongestCommonSubsequence.java │ │ └── WeightedIntervalScheduling.java │ └── Lab Class 11 │ │ ├── CoinExchange.java │ │ └── MatrixChainMultiplication.java ├── Computer-Organisation-Architecture(COA) │ ├── LAB-ProgramsInKeilSoftware │ │ └── Somnath │ │ │ └── Somnath │ │ │ ├── LAB.uvproj │ │ │ ├── Listings │ │ │ ├── LAB.map │ │ │ ├── prog1.lst │ │ │ └── prog2.lst │ │ │ ├── Objects │ │ │ ├── LAB.axf │ │ │ ├── LAB.build_log.htm │ │ │ ├── LAB.htm │ │ │ ├── LAB.lnp │ │ │ ├── LAB_Target 1.dep │ │ │ ├── prog1.d │ │ │ ├── prog1.o │ │ │ ├── prog2.d │ │ │ └── prog2.o │ │ │ ├── PROG2(Screenshot).png │ │ │ ├── Prog1.asm │ │ │ ├── Prog2.ASM │ │ │ └── Startup.s │ ├── LAB1 │ │ ├── Codes │ │ │ ├── Ques1_lab1.asm │ │ │ ├── Ques2_lab1.asm │ │ │ ├── Ques3_lab1.asm │ │ │ └── Ques4_lab1.asm │ │ └── OutputScreenshots │ │ │ ├── Ques1_lab1.jpg │ │ │ ├── Ques2_lab1.jpg │ │ │ ├── Ques3_lab1.jpg │ │ │ └── Ques4_lab1.jpg │ ├── LAB2 │ │ ├── Codes │ │ │ ├── OBJ1.asm │ │ │ ├── OBJ2.asm │ │ │ ├── OBJ3.asm │ │ │ └── OBJ4.asm │ │ └── OutputScreenshots │ │ │ ├── OBJ1.png │ │ │ ├── OBJ2.png │ │ │ ├── OBJ3.png │ │ │ └── OBJ4.png │ ├── LAB3 │ │ ├── Codes │ │ │ ├── OBJ1(Largest).asm │ │ │ ├── OBJ1(Smallest).asm │ │ │ ├── OBJ2(Ascending).asm │ │ │ └── OBJ2(Descending).asm │ │ └── OutputScreenshots │ │ │ ├── OBJ1(Largest).png │ │ │ ├── OBJ1(Smallest).png │ │ │ ├── OBJ2(Ascending).png │ │ │ └── OBJ2(Descending).png │ ├── LAB4 │ │ ├── Codes │ │ │ ├── OBJ1.s │ │ │ ├── OBJ2.s │ │ │ └── OBJ3.s │ │ └── OutputScreenshots │ │ │ ├── OBJ1.png │ │ │ ├── OBJ2.png │ │ │ ├── OBJ3_I1.jpg │ │ │ └── OBJ3_I2.jpg │ └── LAB5 │ │ ├── Codes │ │ ├── OBJ1.s │ │ └── OBJ2.s │ │ └── OutputScreenshots │ │ ├── LARGESTNO (By Changing BLT to BGT).jpg │ │ ├── OBJ1(Image1).jpg │ │ ├── OBJ1(Image2).jpg │ │ ├── OBJ2(Image1).jpg │ │ └── OBJ2(Image2).jpg └── Computer-Science-Workshop-2(CSW-2) │ ├── 01. Assignment 1 │ ├── CSW2_Assignment1.pdf │ ├── Q1.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4_Q1.java │ └── Q4_Q2.java │ ├── 02. Ch12_Assignment │ ├── BankingApplication.java │ ├── CarTester.java │ ├── Chapter12_Assignment.pdf │ ├── LibrarySystem.java │ ├── Point.java │ ├── Q4.java │ ├── Q5.java │ ├── Q8.java │ ├── Q9.java │ └── Rectangle.java │ ├── 03. Generics & Collections (Part1) │ ├── Q1.java │ ├── Q2.java │ ├── Q3.java │ ├── Q4.java │ ├── Q5.java │ └── Q6.java │ ├── 04. Generics & Collections (Part2) │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q10.java │ ├── Q11.java │ └── Q12.java │ ├── 05. Error Handling in Java │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q10.java │ ├── Q11.java │ ├── Q12.java │ ├── Q13.java │ ├── Q14.java │ ├── Q15.java │ ├── Q16.java │ ├── Q17.java │ ├── Q18.java │ ├── Q19.java │ ├── Q20.java │ ├── Q21.java │ ├── Q22.java │ ├── Q23.java │ ├── Q24.java │ ├── Q25.java │ ├── Q26.java │ ├── Q27.java │ └── Q28.java │ ├── 06. Garbage Collection │ ├── Garbage Collection Assignment.pdf │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ └── Q07.java │ ├── 07. File Management │ ├── File Management Assignment.docx │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ └── Q10.java │ ├── 08. Strings │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q10.java │ └── Strings Assignment.docx │ ├── 09. Data Structure │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ └── Q10.java │ ├── 10. Lambdas and Functional Programming │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q10.java │ └── Q11.java │ └── 11. Multithreading and Reactive Programming │ ├── Q01.java │ ├── Q02.java │ ├── Q03.java │ ├── Q04.java │ ├── Q05.java │ ├── Q06.java │ ├── Q07.java │ ├── Q08.java │ ├── Q09.java │ ├── Q09_File.txt │ └── Q10.java ├── 5. Fifth_Semester ├── C LANGUAGE (PPWC) │ ├── .vscode │ │ ├── c_cpp_properties.json │ │ └── settings.json │ ├── Minor Assignment 01 │ │ ├── Q1.txt │ │ ├── Q2.txt │ │ ├── Q3.txt │ │ ├── Q4.txt │ │ ├── Q5a.c │ │ ├── Q5b.c │ │ ├── Q5c.c │ │ ├── Q5d.c │ │ ├── Q5e.c │ │ ├── Q5f.c │ │ ├── Q5g.c │ │ ├── Q5h.c │ │ ├── Q5i.c │ │ ├── Q5j.c │ │ ├── Q5k.c │ │ ├── Q6.c │ │ ├── Q7.c │ │ ├── Q8.c │ │ └── a.exe │ ├── Minor Assignment 02 │ │ ├── Q05A.c │ │ ├── Q05B.c │ │ ├── Q05C.c │ │ ├── Q05D.c │ │ ├── Q05E.c │ │ ├── Q05F.c │ │ ├── Q05G.c │ │ ├── Q05H.c │ │ ├── Q05I.c │ │ ├── Q05J.c │ │ ├── Q06.c │ │ ├── Q07.c │ │ ├── Q08.c │ │ ├── Q09.c │ │ ├── Q10.c │ │ └── a.exe │ ├── Minor Assignment 03 │ │ ├── Q01.c │ │ ├── Q02.c │ │ ├── Q03.c │ │ ├── Q04.c │ │ ├── Q05.c │ │ ├── Q06.c │ │ ├── Q07.c │ │ ├── Q08.c │ │ ├── Q09.c │ │ ├── Q10.c │ │ └── a.exe │ ├── Minor Assignment 04 │ │ ├── Q01.c │ │ ├── Q02.c │ │ ├── Q03.c │ │ ├── Q04.c │ │ ├── Q05.c │ │ ├── Q06.c │ │ ├── Q07.c │ │ ├── Q08.c │ │ ├── Q09.c │ │ ├── Q10.c │ │ ├── Q11.c │ │ ├── Q12.c │ │ ├── Q13.c │ │ ├── Q14.c │ │ ├── Q15.c │ │ ├── Q16.c │ │ ├── Q17.c │ │ ├── Q18.c │ │ ├── Q19.c │ │ ├── Q20.c │ │ ├── Q21.c │ │ ├── Q22.c │ │ ├── Q23.c │ │ ├── Q24.c │ │ ├── Q25.c │ │ └── Q26.c │ ├── Minor Assignment 05 │ │ ├── Q01.txt │ │ ├── Q02.txt │ │ ├── Q03.txt │ │ ├── Q04.txt │ │ ├── Q05.txt │ │ ├── Q06.txt │ │ ├── Q07.txt │ │ ├── Q08.txt │ │ ├── Q09.txt │ │ ├── Q10.txt │ │ ├── Q11.txt │ │ ├── Q12.txt │ │ ├── Q13.txt │ │ ├── Q14.txt │ │ ├── Q15.txt │ │ ├── Q16.txt │ │ ├── Q17.txt │ │ ├── Q18.txt │ │ ├── Q19.txt │ │ ├── Q20.txt │ │ ├── Q21.txt │ │ ├── Q22.txt │ │ ├── Q23.txt │ │ ├── Q24.txt │ │ ├── Q25.txt │ │ ├── Q26.txt │ │ ├── Q27.txt │ │ ├── Q28.txt │ │ ├── Q29.txt │ │ └── a.exe │ ├── Minor Assignment 06 │ │ ├── Q01.txt │ │ ├── Q02.txt │ │ ├── Q03.txt │ │ ├── Q04.txt │ │ ├── Q05.txt │ │ ├── Q06.txt │ │ ├── Q07.txt │ │ ├── Q08.txt │ │ ├── Q09.txt │ │ ├── Q10.txt │ │ ├── Q11.txt │ │ ├── Q12.c │ │ ├── Q13.c │ │ └── a.exe │ ├── Minor Assignment 07 │ │ ├── Q19.c │ │ ├── Q20.c │ │ └── a.exe │ ├── Minor Assignment 08 │ │ ├── Q25.c │ │ ├── Q26a.c │ │ ├── Q26b.c │ │ ├── Q28.c │ │ ├── Q29 │ │ │ ├── MulThree.c │ │ │ ├── PracticeExecl.c │ │ │ └── a.exe │ │ ├── Q30.c │ │ ├── Q31_execle.c │ │ └── Q31_execlp.c │ ├── Minor Assignment 09 │ │ ├── Q10.c │ │ ├── Q11.c │ │ └── Q12.c │ ├── Minor Assignment 10 │ │ ├── Q1.c │ │ ├── Q2.c │ │ ├── Q3.c │ │ ├── Q4.c │ │ ├── Q5.c │ │ └── Q6.c │ └── Minor Assignment 11 │ │ ├── Q1.c │ │ ├── Q2.c │ │ ├── Q3.c │ │ ├── Q4.c │ │ ├── Q5.c │ │ └── Q6.c ├── COMPUTER NETWORKING (CN) │ ├── AllCommands.txt │ ├── Nat.pkt │ ├── lab2.pkt │ ├── lab3q1hub.pkt │ ├── lab3q1switch.pkt │ ├── lab3q2hub.pkt │ ├── lab3q2switch.pkt │ ├── lab3q3hub.pkt │ ├── lab3q3switch.pkt │ ├── lab3q4hub.pkt │ ├── lab3q4switch.pkt │ ├── lab4.pkt │ ├── lab4q3.pkt │ ├── lab5.pkt │ ├── lab6.pkt │ ├── lab62.pkt │ ├── lab6q2.pkt │ ├── lab7.pkt │ ├── lab72.pkt │ └── nat_routing.pkt ├── DESIGN OF OPERATING SYSTEM (DOS) │ ├── Assignment1 - Screenshots │ │ ├── Q01.png │ │ ├── Q02.png │ │ ├── Q03.png │ │ ├── Q04.png │ │ ├── Q05.png │ │ ├── Q06.png │ │ ├── Q07.png │ │ ├── Q08.png │ │ ├── Q09.png │ │ ├── Q10.png │ │ ├── Q11.png │ │ ├── Q12.png │ │ ├── Q13.png │ │ ├── Q14.png │ │ ├── Q15.png │ │ ├── Q16.png │ │ ├── Q17.png │ │ ├── Q18.png │ │ ├── Q19.png │ │ ├── Q20.png │ │ └── Q21.png │ ├── Assignment2 - Screenshots │ │ ├── Q01-1.png │ │ ├── Q01.png │ │ ├── Q02.png │ │ ├── Q03.png │ │ ├── Q04-1.png │ │ ├── Q04.png │ │ ├── Q05.png │ │ ├── Q06-1.png │ │ ├── Q06.png │ │ ├── Q07-1.png │ │ └── Q07.png │ └── Assignment3 - Screenshots │ │ ├── Q01.png │ │ ├── Q02.png │ │ ├── Q03.png │ │ ├── Q04.png │ │ ├── Q05.png │ │ ├── Q06.png │ │ ├── Q07.png │ │ ├── Q08.png │ │ ├── Q09-1.png │ │ ├── Q09-2.png │ │ ├── Q10-1.png │ │ ├── Q10-2.png │ │ ├── Q11-1.png │ │ ├── Q11-2.png │ │ ├── Q12-1.png │ │ └── Q12-2.png └── PYTHON │ ├── Major Assignment 1 │ └── 2241019426_CSE_2241027 │ │ ├── Outputs.docx │ │ ├── Question1.py │ │ ├── Question2.py │ │ ├── Question3.py │ │ ├── Question4.py │ │ ├── Question5.py │ │ └── __pycache__ │ │ ├── Question1.cpython-312.pyc │ │ ├── Question2.cpython-312.pyc │ │ ├── Question3.cpython-312.pyc │ │ └── Question4.cpython-312.pyc │ ├── Major Assignment 2 │ ├── Mission1.py │ ├── Mission2.py │ ├── Mission3.py │ ├── Mission4.py │ └── Output.docx │ ├── Minor Assignment 1 │ ├── Q01-Q06.txt │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── Q21.py │ ├── Q22.py │ ├── Q23.py │ ├── Q24.py │ └── Q25.py │ ├── Minor Assignment 2 │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16A.py │ ├── Q16B.py │ ├── Q16C.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── Q21.py │ ├── Q22.py │ ├── Q23.py │ ├── Q24.py │ ├── Q25A.py │ ├── Q25B.py │ ├── Q25C.py │ ├── Q25D.py │ ├── Q25E.py │ ├── Q25F.py │ ├── Q25G.py │ ├── Q25H.py │ ├── Q25I.py │ ├── Q25J.py │ ├── Q25K.py │ ├── Q25L.py │ ├── Q25M.py │ ├── Q25N.py │ └── Q25O.py │ ├── Minor Assignment 3 │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── Q21.py │ ├── Q22.py │ ├── Q23.py │ ├── Q24.py │ ├── Q25.py │ ├── Q26.py │ ├── Q27.py │ ├── Q28.py │ ├── Q29.py │ └── Q30.py │ ├── Minor Assignment 4 │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── Q21.py │ ├── Q22.py │ ├── Q23.py │ └── Q24.py │ ├── Minor Assignment 5 │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ └── Q20.py │ ├── Minor Assignment 6 │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── Q21.py │ ├── Q22.py │ └── Q23.py │ ├── Minor Assignment 7 │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── Q21.py │ ├── Q22.py │ ├── Q23.py │ ├── Q24.py │ └── Q25.py │ └── Minor Assignment 8 │ ├── Output.txt │ ├── Q01.py │ ├── Q02.py │ ├── Q03.py │ ├── Q04.py │ ├── Q05.py │ ├── Q06.py │ ├── Q07.py │ ├── Q08.py │ ├── Q09.py │ ├── Q10.py │ ├── Q11.py │ ├── Q12.py │ ├── Q13.py │ ├── Q14.py │ ├── Q15.py │ ├── Q16.py │ ├── Q17.py │ ├── Q18.py │ ├── Q19.py │ ├── Q20.py │ ├── data.json │ ├── demo.txt │ ├── emails.txt │ ├── file1.txt │ ├── grades.csv │ ├── grades.txt │ ├── outputs.txt │ ├── price_per_unit.txt │ ├── prices.txt │ ├── sample.csv │ ├── sample.txt │ ├── test.py │ ├── titanic.csv │ ├── titanic1.csv │ ├── titanic2.csv │ └── weights.txt ├── 6. Sixth_Semester └── PYTHON │ └── Major Assignment 01 │ ├── Output.docx │ ├── Task1.py │ ├── Task2.py │ └── Task3.py ├── CODE_OF_CONDUCT.md ├── LICENSE └── README.md /1. First_Semester/Assignment1/HAQ1.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class HAQ1 { 4 | public static void main(String[] args) { 5 | System.out.println(2+"bc"); 6 | System.out.println(2+3+"bc"); 7 | System.out.println((2+3)+"bc"); 8 | System.out.println("bc"+(2+3)); 9 | System.out.println("bc"+2+3); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/HAQ2.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class HAQ2 { 4 | public static void main(String[] args) { 5 | System.out.println('b'); 6 | System.out.println('b'+'c'); 7 | System.out.println((char)('a'+4)); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/HAQ3.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class HAQ3 { 4 | public static void main(String[] args) { 5 | int a = 2147483647; 6 | System.out.println(a); 7 | System.out.println(a+1); 8 | System.out.println(2-a); 9 | System.out.println(-2-a); 10 | System.out.println(2*a); 11 | System.out.println(4*a); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/HAQ4.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class HAQ4 { 4 | public static void main(String[] args) { 5 | double a = 3.14159; 6 | System.out.println(a); 7 | System.out.println(a+1); 8 | System.out.println(8/(int)a); 9 | System.out.println(8/a); 10 | System.out.println((int)(8/a)); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/ICPLabAssignment1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment1/ICPLabAssignment1.pdf -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q1.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q1 { 4 | 5 | public static void main(String[] args) { 6 | // TODO Auto-generated method stub 7 | System.out.print("Hello \"ITERIAN\" "); 8 | System.out.println("Welcome to Siksha 'O' Anusandhan Family"); 9 | System.out.print("Hello World"); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q10.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q10 { 4 | public static void main(String[] args) { 5 | String ruler1 = "1"; 6 | System.out.println(ruler1); 7 | System.out.println(ruler1 +" 2 " +ruler1); 8 | System.out.println(ruler1 +" 2 " +ruler1 +" 3 " +ruler1 +" 2 " +ruler1 ); 9 | System.out.println(ruler1 +" 2 " +ruler1 +" 3 " +ruler1 +" 2 " +ruler1 +" 4 " +ruler1 +" 2 " +ruler1 +" 3 " +ruler1 +" 2 " +ruler1); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q2.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q2 { 4 | public static void main(String[] args) { 5 | System.out.println("******* *******"); 6 | System.out.println(" * * *"); 7 | System.out.println(" ******* ******* "); 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q4.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q4 { 4 | public static void main(String[] args) { 5 | System.out.print("My First Name is : Somnath \nMiddle Name: \nLast Name : Shaw"); 6 | } 7 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q5.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q5 { 4 | 5 | public static void main(String[] args) { 6 | String var1 ="Hey Rishi, "; 7 | String var2 ="Good Noon ! "; 8 | String var3 ="How Are You ? "; 9 | String var4 ="I Am Fine. "; 10 | String var5 ="What About You ..."; 11 | System.out.println(var1 + var2 + var3 + var4 + var5); 12 | 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q6.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q6 { 4 | public static void main(String[] args) { 5 | String name = "Somnath Shaw"; 6 | int acnumber = 22419426 ; 7 | String balance = "7654.98\""; 8 | System.out.println("\"My Name is "+name+ " bearing account number "+acnumber+" having Balance " +balance); 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q7.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q7 { 4 | public static void main(String[] args) { 5 | int x=5; 6 | System.out.println("The value of x:"+x); 7 | int y=7; 8 | System.out.println("The value of y:"+y); 9 | int z; 10 | z=x; 11 | x=y; 12 | y=z; 13 | System.out.println("After Swapping X and Y "); 14 | System.out.println("The value of x:"+x); 15 | System.out.println("The value of y:"+y); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q8.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q8 { 4 | public static void main(String[] args) { 5 | int x=4; 6 | int y=5; 7 | 8 | System.out.println("Before Swapping x:- "+x); 9 | System.out.println("Before Bwapping y:- "+y); 10 | System.out.println(); 11 | 12 | x=x+y; 13 | y=x-y; 14 | x=x-y; 15 | 16 | System.out.println("After Swapping x:- "+x); 17 | System.out.println("After Swapping y:- "+y); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment1/Q9.java: -------------------------------------------------------------------------------- 1 | package Assignment1; 2 | 3 | public class Q9 { 4 | public static void main(String[] args) { 5 | System.out.println('5'); 6 | System.out.println((float)25/6); 7 | System.out.println(5+'6'); 8 | System.out.println(5+7+'9'); 9 | System.out.println("92"+7+5); 10 | System.out.println(2+"9"); 11 | } 12 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment2/HAQ1.java: -------------------------------------------------------------------------------- 1 | package Assignment2; 2 | 3 | import java.util.Scanner; 4 | 5 | public class HAQ1 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.println("Enter the no of minutes : "); 9 | int day1 = 24*60; 10 | int year1 = day1*365; 11 | int min = sc.nextInt(); 12 | int year = min/year1; 13 | int days = (min-(year1*year))/day1; 14 | System.out.println(min+" minutes is approximately "+year+" years and "+days+" days"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2/ICPLabAssignment2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment2/ICPLabAssignment2.pdf -------------------------------------------------------------------------------- /1. First_Semester/Assignment2/Q1.java: -------------------------------------------------------------------------------- 1 | package Assignment2; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q1 { 6 | public static void main(String[] args) { 7 | System.out.println("Enter a value of temperature in Farenheit:"); 8 | Scanner sc = new Scanner(System.in); 9 | float temp = sc.nextFloat(); 10 | double temp2; 11 | temp2 = (temp-32)*(5.0/9); 12 | System.out.println("The value of temperature in celsius is:"+temp2); 13 | } 14 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment2/Q6.java: -------------------------------------------------------------------------------- 1 | package Assignment2; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q6 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.println("Enter the number of Seconds :"); 9 | double sec = sc.nextDouble(); 10 | double dist_travelled = (1.0/2) * 32.174 * sec * sec; 11 | System.out.println("Distace travelled will be :" +dist_travelled); 12 | } 13 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/HAQ1.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class HAQ1 { 4 | public static void main(String[] args) { 5 | double p = Double.parseDouble(args[0]); 6 | double r = Double.parseDouble(args[1]); 7 | double t = Double.parseDouble(args[2]); 8 | double SI = (p*r*t)/100; 9 | System.out.println("The Principal is : "+p+" rate is : "+r+" time is : "+t+" So, The Simple Interest is : "+SI); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/HAQ2.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class HAQ2 { 4 | public static void main(String[] args) { 5 | double r = Double.parseDouble(args[0]); 6 | double h = Double.parseDouble(args[1]); 7 | double Surface_Area = ((Math.PI*Math.pow(r,2)) + (2*Math.PI*r*h)); 8 | System.out.println("The Radius is : "+r+" and the height is : "+h+" So, The Surface Area of Cylinder is : "+Surface_Area); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/HAQ3.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class HAQ3 { 4 | public static void main(String[] args) { 5 | int n = Integer.parseInt(args[0]); 6 | int first_no = n/1000; 7 | int last_no = n%10; 8 | int sum = first_no + last_no; 9 | System.out.println("Your four-digit number is : "+n+" and the Sum of the first and last digit of the number is : "+sum); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/ICPLabAssignment2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment2_CLA(Command Line Argument)/ICPLabAssignment2.pdf -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/Q2.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class Q2 { 4 | public static void main(String[] args) { 5 | int a = Integer.parseInt(args[0]); 6 | int b = Integer.parseInt(args[1]); 7 | int c = (int) Math.pow(a,b); 8 | System.out.println(a+" to the power "+b+" is : "+c); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/Q4.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class Q4 { 4 | public static void main(String[] args) { 5 | double t = Double.parseDouble(args[0]); 6 | double t1 = Math.toRadians(t); 7 | double result1 = Math.cos(5*t1); 8 | double result2 = Math.sin(7*t1); 9 | double result = result1 + result2; 10 | System.out.println("The value of cos(5t) and sin(7t) is : "+result); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/Q6.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class Q6 { 4 | public static void main(String[] args) { 5 | char c = args[0].charAt(0); 6 | System.out.println((int)c); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment2_CLA(Command Line Argument)/Q7.java: -------------------------------------------------------------------------------- 1 | package Assignment2_CommandLineArgument; 2 | 3 | public class Q7 { 4 | public static void main(String[] args) { 5 | int a = Integer.parseInt(args[0]); 6 | int b = Integer.parseInt(args[1]); 7 | int c = Integer.parseInt(args[2]); 8 | boolean d = (a <= (b*c)) || (b <= (a*c)) || (c <= (a*b)); 9 | System.out.println(d); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment3/ICPLabAssignment3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment3/ICPLabAssignment3.pdf -------------------------------------------------------------------------------- /1. First_Semester/Assignment3/Q1.java: -------------------------------------------------------------------------------- 1 | package Assignment3; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q1 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.println("Enter your age :"); 9 | int age = sc.nextInt(); 10 | if (age>=18) { 11 | System.out.println("You are eligible to cast your vote"); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment3/Q2.java: -------------------------------------------------------------------------------- 1 | package Assignment3; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q2 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the amount of water in ml :"); 9 | int water = sc.nextInt(); 10 | if(water >= 5000) { 11 | System.out.println("Yes, Alice is foloowing doctor's advice"); 12 | } 13 | else { 14 | System.out.println("No, Alice is not foloowing doctor's advice"); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment4/HAQ2.java: -------------------------------------------------------------------------------- 1 | package Assignment4; 2 | 3 | public class HAQ2 { 4 | public static void main(String[] args) { 5 | int num = 1000, sum = 0; 6 | for(int i = 1; i < num; i++) { 7 | if(i%3 == 0 || i%5 == 0) { 8 | sum += i; 9 | } 10 | } 11 | System.out.println("The Sum of the multiples of 3 or 5 below "+num+" is : "+sum); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment4/HAQ3.java: -------------------------------------------------------------------------------- 1 | package Assignment4; 2 | 3 | public class HAQ3 { 4 | public static void main(String[] args) { 5 | System.out.println("Integers from 1000 to 2000 with Five Integers per line is : "); 6 | for(int i = 1000; i <= 2000; i++) { 7 | System.out.print(i+" "); 8 | if((i+1)%5 == 0) { 9 | System.out.println(); 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment4/HAQ5.java: -------------------------------------------------------------------------------- 1 | package Assignment4; 2 | 3 | import java.util.Scanner; 4 | 5 | public class HAQ5 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.println("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | String str = " "; 11 | for(int i = 1; i <= n; i++) { 12 | str = str + i + str; 13 | System.out.println(str); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment4/ICPLabAssignment4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment4/ICPLabAssignment4.pdf -------------------------------------------------------------------------------- /1. First_Semester/Assignment4/Q10.java: -------------------------------------------------------------------------------- 1 | package Assignment4; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q10 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.println("Enter the Number : "); 9 | int num = sc.nextInt(); 10 | int pow = 1; 11 | while(3*pow <= num) { 12 | pow = pow*3; 13 | } 14 | if(num < 3) { 15 | pow = 0; 16 | } 17 | System.out.println("The value obtained by largest power of 3 less than or equal to "+num+" is : "+pow); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/HAQ2.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class HAQ2 { 6 | } 7 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/HAQ3.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | public class HAQ3 { 4 | } 5 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/ICPLabAssignment5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment5/ICPLabAssignment5.pdf -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q6A.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q6A { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | for(int i = 1; i <= n; i++) { 11 | for(int j = 1; j <= i; j++) { 12 | System.out.print("*"+" "); 13 | } 14 | System.out.println(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q6B.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q6B { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | for(int i = 1; i <= n; i++) { 11 | for(int j = 1; j <= i; j++) { 12 | System.out.print(i+" "); 13 | } 14 | System.out.println(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q6C.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q6C { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | int k = 1; 11 | for(int i = 1; i <= n; i++) { 12 | for (int j = 1; j <= i; j++) { 13 | System.out.print(k + " "); 14 | k++; 15 | } 16 | System.out.println(); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q6D.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q6D { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | for(int i = 1; i <= n; i++) { 11 | for(int j = 1; j <= i; j++) { 12 | System.out.print(j+ " "); 13 | } 14 | System.out.println(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q7A.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q7A { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | for(int i = 1; i <= n; i++) { 11 | for(int j = 65; j < 65+i; j++) { 12 | System.out.print((char) j +" "); 13 | } 14 | System.out.println(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q7B.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q7B { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter the number of rows : "); 9 | int n = sc.nextInt(); 10 | for (int i = n; i >= 1; i--) { 11 | for (int j = 1; j <= i; j++) { 12 | System.out.print("$" + " "); 13 | } 14 | System.out.println(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /1. First_Semester/Assignment5/Q9.java: -------------------------------------------------------------------------------- 1 | package Assignment5; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q9 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.println("Enter the value of n : "); 9 | int n = sc.nextInt(); 10 | double sum = 0; 11 | for(int i = 1; i <= n; i++) { 12 | sum = sum+1.0/(i*i); 13 | } 14 | System.out.println("The Sum of the Series is : "+sum); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /1. First_Semester/Assignment6/ICPLabAssignment6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/1. First_Semester/Assignment6/ICPLabAssignment6.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment1/Assignment1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/2. Second_Semester/Assignment1/Assignment1.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment1/Q1.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Q1 { 4 | public static void main(String[] args){ 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the Number : "); 7 | int n = sc.nextInt(); 8 | int count = 0; 9 | while(n > 2) { 10 | n = n / 2; 11 | count++; 12 | } 13 | System.out.println("The number of times one must repeatedly divide this number by 2 before getting a value less than 2 is : "+count); 14 | } 15 | } -------------------------------------------------------------------------------- /2. Second_Semester/Assignment1/Q6.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Q6 { 4 | 5 | public static boolean isOdd(int n) { 6 | int a = n & 1; 7 | if(a == 0) 8 | return false; 9 | return true; 10 | 11 | } 12 | 13 | public static void main(String[] args) { 14 | 15 | Scanner sc = new Scanner(System.in); 16 | System.out.println("Enter a Number : "); 17 | int n = sc.nextInt(); 18 | System.out.println(n+" is a Odd Number : "+isOdd(n)); 19 | 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /2. Second_Semester/Assignment2/DSA Assignment-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/2. Second_Semester/Assignment2/DSA Assignment-2.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment2/Home Assignment/he: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /2. Second_Semester/Assignment3/DSA Assignment-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/2. Second_Semester/Assignment3/DSA Assignment-3.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment3/Home Assignment/Q5.java: -------------------------------------------------------------------------------- 1 | package HomeAssignment; 2 | 3 | public class Q5 { 4 | public static void towerOfHanoi(int n, char fisrtRod, char lastRod, char middleRod) { 5 | if(n == 0) return; 6 | towerOfHanoi(n-1, fisrtRod, middleRod, lastRod); 7 | System.out.println("Move Disk "+n+" from Rod "+fisrtRod+" to Rod "+lastRod); 8 | towerOfHanoi(n-1, middleRod, lastRod, fisrtRod); 9 | } 10 | 11 | public static void main(String[] args) { 12 | int N = 4; 13 | towerOfHanoi(N, 'A', 'C', 'B'); 14 | } 15 | } -------------------------------------------------------------------------------- /2. Second_Semester/Assignment3/Q1.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Q1 { 4 | public static void main(String[] args) { 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter Your Lucky Number : "); 7 | int n = sc.nextInt(); 8 | try { 9 | if(n < 0) { 10 | throw new NumberFormatException("Negative Number"); 11 | } 12 | System.out.println("Your Lucky Number : "+n); 13 | } 14 | catch(NumberFormatException e) { 15 | System.out.println(e); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /2. Second_Semester/Assignment3/Q8.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Q8 { 4 | 5 | public static void reverse(int n) { 6 | if(n == 0) return; 7 | System.out.print(n%10); 8 | reverse(n/10); 9 | } 10 | 11 | public static void main(String[] args) { 12 | Scanner sc = new Scanner(System.in); 13 | System.out.println("Enter a number you want to Reverse : "); 14 | int n = sc.nextInt(); 15 | System.out.print("The Reverse of a Number is : "); 16 | reverse(n); 17 | } 18 | } -------------------------------------------------------------------------------- /2. Second_Semester/Assignment3/Q9.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class Q9 { 4 | 5 | public static int fibo(int n) { 6 | if(n == 0 || n == 1) return n; 7 | return fibo(n-1) + fibo(n-2); 8 | } 9 | 10 | public static void main(String[] args) { 11 | Scanner sc = new Scanner(System.in); 12 | System.out.println("Enter One Number : "); 13 | int n = sc.nextInt(); 14 | System.out.println("Fibonacci Number at Position "+n+" is : "+fibo(n)); 15 | } 16 | } -------------------------------------------------------------------------------- /2. Second_Semester/Assignment4/DSA-Programming Assignment-IV.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/2. Second_Semester/Assignment4/DSA-Programming Assignment-IV.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment6/DSA-Programming Assignment-VI.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/2. Second_Semester/Assignment6/DSA-Programming Assignment-VI.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment7/DSA-Programming Assignment-VII.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/2. Second_Semester/Assignment7/DSA-Programming Assignment-VII.pdf -------------------------------------------------------------------------------- /2. Second_Semester/Assignment7/QueueDemo2.java: -------------------------------------------------------------------------------- 1 | public class QueueDemo2 { 2 | } 3 | -------------------------------------------------------------------------------- /3. Third_Semester/Algorithm-Design-1(AD1)/LAB-02(Abstract data type Array - Recursive Implementation)/Q1.java: -------------------------------------------------------------------------------- 1 | // Ques 1 : Sum of n numbers 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q1 { 6 | 7 | public static int sumNnumbers(int n) { 8 | if(n == 0) return 0; 9 | return n + sumNnumbers(n-1); 10 | } 11 | 12 | public static void main(String[] args) { 13 | Scanner sc = new Scanner(System.in); 14 | System.out.println("Enter a Number : "); 15 | int n = sc.nextInt(); 16 | System.out.println("The Sum will be : "+sumNnumbers(n)); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Google.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Q2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Question 2 7 | 8 | 9 | Siksha 'O' Anusandhan University, Bhubaneswar
10 | Google
11 | My Personal Info 12 | 13 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Q3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Question 3 7 | 8 | 9 | SOA Logo
10 | Google
11 | My Website 12 | 13 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Q8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Question 8 5 | 6 | 7 | The greatest glory in living lies not in never falling, but in rising every time we fall. - Nelson Mandela
8 | The way to get started is to quit talking and begin doing. -Walt Disney
9 | If life were predictable it would cease to be life, and be without flavor. -Eleanor Roosevelt 10 | 11 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Q9/1st.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Question 9 - 1st 5 | 6 | 7 | Link1
8 | Link2
9 | Link3
10 | Link4
11 | Link5 12 | 13 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Q9/2nd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Question 9 - 2nd 7 | 8 | 9 |

Hello World1

10 | Go back 11 | 12 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/SOA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/SOA.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/SSLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/SSLogo.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Tiger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/Tiger.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/cat.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/cat.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-01-HTML/dog.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q10.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q2.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q3-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q3-1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q3.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q4-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q4-1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q4.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q5.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q6.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q7-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q7-1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q7.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q8.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q9-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q9-1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/Outputs/Q9.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/SOA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/SOA.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/TajHotel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/TajHotel.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/TajM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-02-CSS/TajM.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-1.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-2.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-3.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q10-4.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q2.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q3.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q4.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q5-Effects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q5-Effects.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q5-NoEffects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q5-NoEffects.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q6.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q7.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q8-Effects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q8-Effects.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q8-NoEffects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q8-NoEffects.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/Outputs/Q9.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/SOA-PNG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-03-jQuery/SOA-PNG.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Apple.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/BabyAnimal.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/BabyAnimal.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Bird.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Bird.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Elephant.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Elephant.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/1.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/2.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/3.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/4.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/5.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/6.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Happy New Year/7.jpg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Image.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Monkey.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Monkey.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Panda.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Panda.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Peacock.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Peacock.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Rabbit.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Rabbit.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Tiger.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Tiger.jpeg -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Zebra.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/Zebra.avif -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/checkoutLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-04-Bootstrap/assets/checkoutLogo.png -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-05-Datatype and BitWise Operator/CSW1_Assignment_BitwiseOperators.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-05-Datatype and BitWise Operator/CSW1_Assignment_BitwiseOperators.pdf -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-05-Datatype and BitWise Operator/Q01.java: -------------------------------------------------------------------------------- 1 | // Question 1 : Write a java program to count the number of bits that are set to 1 in an integer. 2 | 3 | public class Q01 { 4 | 5 | static int countBits(int n) 6 | { 7 | int count = 0; 8 | while(n > 0) { 9 | count += n & 1; 10 | n = n >> 1; 11 | } 12 | return count; 13 | } 14 | 15 | public static void main(String[] args) { 16 | System.out.println("Number of bits present : "+countBits(6)); 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-05-Datatype and BitWise Operator/Q17.java: -------------------------------------------------------------------------------- 1 | // Question 17 : Write a program that returns true if the number is even else returns false. Note: don’t use if else. 2 | 3 | public class Q17 { 4 | 5 | public static boolean isEven(int n) { 6 | return (n & 1) == 0; 7 | } 8 | 9 | public static void main(String[] args) { 10 | int n = 7; 11 | System.out.println("Is the number even !? : "+isEven(n)); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/CSW1_Assignment_WrapperClass.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/CSW1_Assignment_WrapperClass.pdf -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q01.java: -------------------------------------------------------------------------------- 1 | // Question 1 : Write a program to convert an integer to an Integer object. 2 | 3 | public class Q01 { 4 | public static void main(String[] args) { 5 | int n = 25; 6 | Integer integerObject = n; 7 | System.out.println("Integer Object: "+integerObject); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q02.java: -------------------------------------------------------------------------------- 1 | // Question 2 : Write a program to convert a float to a Float object. 2 | 3 | public class Q02 { 4 | public static void main(String[] args) { 5 | float num = 3.14f; 6 | Float floatObject = Float.valueOf(num); 7 | System.out.println("Float Object: "+floatObject); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q03.java: -------------------------------------------------------------------------------- 1 | // Question 3 : Write a program to convert a double to a Double object. 2 | 3 | public class Q03 { 4 | public static void main(String[] args) { 5 | double num = 6.28; 6 | Double doubleObject = Double.valueOf(num); 7 | System.out.println("Double Object: " + doubleObject); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q04.java: -------------------------------------------------------------------------------- 1 | // Question 4 : Write a program to convert a boolean to a Boolean object. 2 | 3 | public class Q04 { 4 | public static void main(String[] args) { 5 | boolean boolValue = true; 6 | Boolean booleanObject = Boolean.valueOf(boolValue); 7 | System.out.println("Boolean Object: " + booleanObject); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q05.java: -------------------------------------------------------------------------------- 1 | // Question 5 : Write a program to read an integer as a string and convert it to an Integer object. 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q05 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter an integer as a string: "); 9 | String inputString = sc.nextLine(); 10 | Integer integerObject = Integer.valueOf(inputString); 11 | System.out.println("Integer Object: " + integerObject); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q06.java: -------------------------------------------------------------------------------- 1 | // Question 6 : Write a program to read a float as a string and convert it to a Float object. 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q06 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter a float as a string: "); 9 | String inputString = sc.nextLine(); 10 | Float floatObject = Float.valueOf(inputString); 11 | System.out.println("Float Object: " + floatObject); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q07.java: -------------------------------------------------------------------------------- 1 | // Question 7 : Write a program to read a double as a string and convert it to a Double object. 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q07 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter a float as a string: "); 9 | String inputString = sc.nextLine(); 10 | Float floatObject = Float.valueOf(inputString); 11 | System.out.println("Float Object: " + floatObject); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /3. Third_Semester/Computer-Science-Workshop-1(CSW1)/Assignment-06-Wrapper Class/Q12.java: -------------------------------------------------------------------------------- 1 | // Question 12 : Write a program that reads an integer number as a sting and converts it to an int base type. 2 | 3 | import java.util.Scanner; 4 | 5 | public class Q12 { 6 | public static void main(String[] args) { 7 | Scanner sc = new Scanner(System.in); 8 | System.out.print("Enter an integer number as a string: "); 9 | String intString = sc.nextLine(); 10 | int intValue = Integer.parseInt(intString); 11 | System.out.println("Converted integer value: " + intValue); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/LAB.uvproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/LAB.uvproj -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/LAB.axf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/LAB.axf -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/LAB.build_log.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/LAB.build_log.htm -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/LAB.lnp: -------------------------------------------------------------------------------- 1 | --cpu ARM7TDMI 2 | ".\objects\prog2.o" 3 | --ro-base 0x00000000 --entry 0x00000000 --rw-base 0x40000000 --strict --summary_stderr --info summarysizes --map --xref --callgraph --symbols 4 | --info sizes --info totals --info unused --info veneers 5 | --list ".\Listings\LAB.map" -o .\Objects\LAB.axf -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/LAB_Target 1.dep: -------------------------------------------------------------------------------- 1 | Dependencies for Project 'LAB', Target 'Target 1': (DO NOT MODIFY !) 2 | F (.\Prog2.ASM)(0x665562A3)(--cpu ARM7TDMI --pd "__EVAL SETA 1" -g --apcs=interwork -I C:\Keil_v5\ARM\RV31\INC -I C:\Keil_v5\ARM\CMSIS\Include -I C:\Keil_v5\ARM\Inc\Philips --pd "__UVISION_VERSION SETA 518" --list .\listings\prog2.lst --xref -o .\objects\prog2.o --depend .\objects\prog2.d) 3 | -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/prog1.d: -------------------------------------------------------------------------------- 1 | .\objects\prog1.o: Prog1.asm 2 | -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/prog1.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/prog1.o -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/prog2.d: -------------------------------------------------------------------------------- 1 | .\objects\prog2.o: Prog2.ASM 2 | -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/prog2.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Objects/prog2.o -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/PROG2(Screenshot).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/PROG2(Screenshot).png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Prog1.asm: -------------------------------------------------------------------------------- 1 | AREA PRG, CODE, READONLY 2 | ENTRY 3 | 4 | START 5 | mov r0,#0x04 6 | mov r1,#0x05 7 | add r2,r0,r1 8 | 9 | my_exit b my_exit 10 | END -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB-ProgramsInKeilSoftware/Somnath/Somnath/Prog2.ASM: -------------------------------------------------------------------------------- 1 | AREA PROG, CODE, READONLY 2 | ENTRY 3 | LDR R1,=X 4 | LDR R2,=Y 5 | 6 | LDR R3,[R1],#4 7 | LDR R4,[R1],#4 8 | ADD R5,R3,R4 9 | STR R5,[R2],#4 10 | SUBS R6,R3,R4 11 | STR R6,[R2],#4 12 | MUL R7,R3,R4 13 | STR R7,[R2] 14 | HERE B HERE 15 | 16 | X DCD 5,7 17 | 18 | AREA DATA1, DATA, READWRITE 19 | 20 | Y DCD 0,0,0 21 | END -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/Codes/Ques1_lab1.asm: -------------------------------------------------------------------------------- 1 | ORG 1000H 2 | MOV BX,0234H 3 | MOV CX,0022H 4 | 5 | MOV AX,BX 6 | ADD AX,CX 7 | MOV [ 1000H],AX 8 | 9 | MOV AX,BX 10 | SUB AX,CX 11 | MOV [ 1002H],AX 12 | 13 | MOV AX,BX 14 | MUL CX 15 | MOV [ 1004H],AX 16 | MOV [ 1006H],DX 17 | 18 | MOV AX,BX 19 | CWD 20 | DIV CX 21 | MOV [ 1008H],AX 22 | MOV [ 100AH],DX 23 | 24 | RET 25 | 26 | -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/Codes/Ques2_lab1.asm: -------------------------------------------------------------------------------- 1 | MOV SI,300H 2 | MOV BL,[SI] 3 | INC SI 4 | MOV BH,[SI] 5 | MOV AL,BL 6 | MOV CL,4 7 | ROL AL,CL 8 | INC SI 9 | MOV [SI],AL 10 | MOV AL,BL 11 | AND AL,BH 12 | MOV CL,BL 13 | XOR CL,BH 14 | OR AL,CL 15 | INC SI 16 | MOV [SI],AL 17 | RET -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/Codes/Ques3_lab1.asm: -------------------------------------------------------------------------------- 1 | MOV BL,38H 2 | MOV AL,BL 3 | SHR AL,01 4 | XOR AL,BL 5 | MOV [300H],AL 6 | RET -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/Codes/Ques4_lab1.asm: -------------------------------------------------------------------------------- 1 | MOV AL,38H 2 | NOT AL 3 | INC AL 4 | MOV [300H],AL 5 | RET -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques1_lab1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques1_lab1.jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques2_lab1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques2_lab1.jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques3_lab1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques3_lab1.jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques4_lab1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB1/OutputScreenshots/Ques4_lab1.jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/Codes/OBJ1.asm: -------------------------------------------------------------------------------- 1 | ; SOMNATH SHAW 2 | ; 2241019426 3 | ; LAB 2 -> OBJECTIVE I 4 | 5 | MOV AX, 0000H 6 | MOV DX, AX 7 | MOV SI, 2000H 8 | MOV CL, [SI] 9 | MOV CH, 50H 10 | MOV BX, CX 11 | 12 | L2: INC SI 13 | INC SI 14 | ADD AX, [SI] 15 | JNC L1 16 | INC CH 17 | 18 | L1: DEC CL 19 | INC SI 20 | INC SI 21 | MOV [SI], AX 22 | INC SI 23 | INC SI 24 | MOV [SI], CH 25 | MOV DL, CH 26 | DIV BX 27 | INC SI 28 | INC SI 29 | INC SI 30 | MOV [SI], DX 31 | HLT -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/Codes/OBJ2.asm: -------------------------------------------------------------------------------- 1 | ; SOMNATH SHAW 2 | ; 2241019426 3 | ; LAB 2 -> OBJECTIVE II 4 | 5 | MOV AX,0000H 6 | MOV DX,AX 7 | MOV BX,3000H 8 | MOV AL,[BX] 9 | MOV CL,08H 10 | MOV CH,00H 11 | 12 | L2: SHR AL,01H 13 | JC L1 14 | INC CH 15 | 16 | L1: DEC CL 17 | JNZ L2 18 | INC BX 19 | MOV [BX],CH 20 | HLT -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/Codes/OBJ3.asm: -------------------------------------------------------------------------------- 1 | ; SOMNATH SHAW 2 | ; 2241019426 3 | ; LAB 2 -> OBJECTIVE III 4 | 5 | MOV AX,0000H 6 | MOV DX,AX 7 | MOV SI,2000H 8 | MOV DI,2050H 9 | MOV CL,05H 10 | 11 | L1: MOV BX,[SI] 12 | MOV [DI],BX 13 | INC SI 14 | INC SI 15 | INC DI 16 | INC DI 17 | DEC CL 18 | JNZ L1 19 | 20 | HLT -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/Codes/OBJ4.asm: -------------------------------------------------------------------------------- 1 | ; SOMNATH SHAW 2 | ; 2241019426 3 | ; LAB 2 -> OBJECTIVE IV 4 | 5 | MOV AX, 0000H 6 | MOV DX, AX 7 | MOV BX, [2000H] 8 | MOV CX, [2002H] 9 | MOV DX, 0000H 10 | 11 | L2: ADD AX,BX 12 | JNC L1 13 | INC DX 14 | 15 | L1: DEC CX 16 | JNZ L2 17 | MOV [2004H], AX 18 | MOV [2006H], DX 19 | 20 | RET -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ1.png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ2.png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ3.png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB2/OutputScreenshots/OBJ4.png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ1(Largest).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ1(Largest).png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ1(Smallest).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ1(Smallest).png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ2(Ascending).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ2(Ascending).png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ2(Descending).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB3/OutputScreenshots/OBJ2(Descending).png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ1.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: 3 | 4 | mov r0,#0x03 5 | mov r1, #0x05 6 | add r2,r0,#0x08 7 | subs r3,r1,#0x04 8 | 9 | s: 10 | b s 11 | .end -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ2.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: 3 | 4 | ldr r0,=list 5 | ldr r1,[r0],#4 6 | ldr r2,[r0],#4 7 | 8 | add r3,r1,r2 9 | subs r4,r1,r2 10 | 11 | ldr r5,[r0] 12 | mul r6,r5,r5 13 | 14 | mov r7,#1 15 | swi 0 16 | 17 | .data 18 | list: 19 | .word 2,3,4 -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ3.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: 3 | ldr r1,=X 4 | ldr r2,=Y 5 | 6 | ldr r3,[r1],#4 7 | ldr r4,[r1],#4 8 | and r5,r3,r4 // AND Operation 9 | str r5,[r2],#4 10 | orr r6,r3,r4 // OR Operation 11 | str r6,[r2],#4 12 | eor r7,r3,r4 // XOR Operation 13 | str r7,[r2],#4 14 | mvn r8,r3 // MOVE Negated 15 | str r8,[r2] 16 | 17 | here: 18 | b here 19 | 20 | .data 21 | X: 22 | .word 5,7 23 | 24 | Y: 25 | .word 0,0,0,0 -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ1.png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ2.png -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ3_I1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ3_I1.jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ3_I2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ3_I2.jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/Codes/OBJ1.s: -------------------------------------------------------------------------------- 1 | // LAB 5 OBJECTIVE 1 2 | 3 | .global _start 4 | _start: 5 | 6 | ldr r0,=count 7 | ldr r1,=list 8 | ldr r2,[r0] 9 | sub r2,r2,#1 10 | ldr r3,[r1],#4 11 | 12 | loop: ldr r4,[r1] 13 | cmp r3,r4 14 | blt ford 15 | ldr r3,[r1] 16 | 17 | ford: add r1,r1,#4 18 | adds r2,r2,#-1 19 | bne loop 20 | ldr r4,=res 21 | str r3,[r4] 22 | 23 | here: b here 24 | 25 | .data 26 | count: .word 5 27 | list: .word 56,23,76,8,9 28 | res: .word 0 -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/Codes/OBJ2.s: -------------------------------------------------------------------------------- 1 | // LAB 5 OBJECTIVE 2 2 | 3 | .global _start 4 | _start: 5 | 6 | ldr r0,=list 7 | ldr r1,=oddlist 8 | ldr r2,=evenlist 9 | ldr r3,=count 10 | ldr r3,[r3] 11 | 12 | loop: 13 | ldr r4,[r0],#4 14 | and r5,r4,#1 15 | beq odd 16 | str r4,[r2],#4 17 | bal ford 18 | 19 | odd: str r4,[r1],#4 20 | 21 | ford: subs r3,r3,#1 22 | bne loop 23 | 24 | here: b here 25 | 26 | .data 27 | count: .word 5 28 | list: .word 0x12,0x13,0x45,0x67,0x23 29 | oddlist: .word 0,0,0,0,0 30 | evenlist: .word 0,0,0,0,0 -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/LARGESTNO (By Changing BLT to BGT).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/LARGESTNO (By Changing BLT to BGT).jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ1(Image1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ1(Image1).jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ1(Image2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ1(Image2).jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ2(Image1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ2(Image1).jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ2(Image2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB5/OutputScreenshots/OBJ2(Image2).jpg -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/01. Assignment 1/CSW2_Assignment1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/01. Assignment 1/CSW2_Assignment1.pdf -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/02. Ch12_Assignment/Chapter12_Assignment.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/02. Ch12_Assignment/Chapter12_Assignment.pdf -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/05. Error Handling in Java/Q01.java: -------------------------------------------------------------------------------- 1 | public class Q01 { 2 | public static void main(String[] args) { 3 | try { 4 | String str = null; 5 | int length = str.length(); 6 | System.out.println("Length of the String : "+length); 7 | } catch (NullPointerException e) { 8 | System.out.println("NullPointerException occurred : "+e.getMessage()); 9 | } 10 | } 11 | } 12 | 13 | /** 14 | * OUTPUT 15 | * NullPointerException occurred : Cannot invoke "String.length()" because "str" is null 16 | */ -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/05. Error Handling in Java/Q16.java: -------------------------------------------------------------------------------- 1 | public class Q16 { 2 | public static void main(String[] args) { 3 | int[] arr = {1, 2, 3, 4, 5}; 4 | try { 5 | int element = arr[10]; 6 | System.out.println("Element : "+element); 7 | } catch (ArrayIndexOutOfBoundsException e) { 8 | System.err.println("ArrayIndexOutOfBoundsException Occurred : "+e.getMessage()); 9 | } 10 | } 11 | } 12 | 13 | /** 14 | * OUTPUT 15 | * ArrayIndexOutOfBoundsException Occurred : Index 10 out of bounds for length 5 16 | */ -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/06. Garbage Collection/Garbage Collection Assignment.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/06. Garbage Collection/Garbage Collection Assignment.pdf -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/06. Garbage Collection/Q03.java: -------------------------------------------------------------------------------- 1 | public class Q03 { 2 | 3 | private String name; 4 | 5 | public Q03(String name) { 6 | this.name = name; 7 | } 8 | 9 | @Override 10 | protected void finalize() { 11 | System.out.println("Garbage collected: " + name); 12 | } 13 | 14 | public static void main(String[] args) { 15 | Q03 obj = new Q03("Object"); 16 | 17 | obj = null; 18 | 19 | System.gc(); 20 | } 21 | } 22 | 23 | /** 24 | * OUTPUT 25 | * 26 | * Garbage collected: Object 27 | */ -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/06. Garbage Collection/Q04.java: -------------------------------------------------------------------------------- 1 | public class Q04 { 2 | 3 | private String name; 4 | 5 | public Q04(String name) { 6 | this.name = name; 7 | } 8 | 9 | @Override 10 | protected void finalize() { 11 | System.out.println("Garbage collected: " + name); 12 | } 13 | 14 | public static void main(String[] args) { 15 | new Q04("Q04"); 16 | 17 | System.gc(); 18 | } 19 | } 20 | 21 | /** 22 | * OUTPUT 23 | * 24 | * Garbage collected: Q04 25 | */ -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/07. File Management/File Management Assignment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/07. File Management/File Management Assignment.docx -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/08. Strings/Strings Assignment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/08. Strings/Strings Assignment.docx -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/11. Multithreading and Reactive Programming/Q02.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Ques 2 : Write a Java program that uses reactive programming to read a file asynchronously. Use RxJava 3 | or another reactive library to handle the file reading and processing. 4 | */ 5 | 6 | /** 7 | * ERROR IN CODE -> WILL UPDATE THE CODE ONCE ERROR IS SOLVED ... 8 | */ -------------------------------------------------------------------------------- /4. Fourth_Semester/Computer-Science-Workshop-2(CSW-2)/11. Multithreading and Reactive Programming/Q09_File.txt: -------------------------------------------------------------------------------- 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. 2 | Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 3 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 4 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 5 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "C_Cpp.errorSquiggles": "disabled" 3 | } -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q3.txt: -------------------------------------------------------------------------------- 1 | Ques 3: Find the maximum value that can be stored in a float. Explain the reason behind it. 2 | 3 | Answer: 4 | 5 | Maximum Value of float in C 6 | Maximum Value: Approximately 3.4 × 10^38 (defined as FLT_MAX). 7 | Reason: The float type in C uses the IEEE 754 standard, which allocates: 8 | -> 1 bit for the sign 9 | -> 8 bits for the exponent 10 | -> 23 bits for the mantissa 11 | This finite bit allocation limits the range of values that can be represented, resulting in the maximum value of about 3.4 × 10^38. -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5a.c: -------------------------------------------------------------------------------- 1 | /* 2 | Ques 5: Find and explain the output of the following code snippet: 3 | */ 4 | 5 | #include 6 | int main(){ 7 | int x = -123; 8 | printf("%u",x); 9 | return(0); 10 | } 11 | 12 | // Output: 4294967173 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5b.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int x=-123; 4 | printf("%X",x); 5 | return(0); 6 | } 7 | 8 | // Output: FFFFFF85 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5c.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | char ch = 'A'; 4 | printf("%d\n",sizeof(ch)); 5 | printf("%d\n",sizeof('A')); 6 | return 0; 7 | } 8 | 9 | // Output: 1 10 | // 4 11 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5d.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int sum; 4 | sum = 2 + 4 / 2 + 6 * 2; 5 | printf("%d", sum); 6 | return 0; 7 | } 8 | 9 | // Output: 16 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5e.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | char ch=97; 4 | printf("%d", sizeof(ch+4)); 5 | } 6 | 7 | // Output: 4 8 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5f.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | int n = printf("Hello\n"); 4 | printf("%d ", n); 5 | return(0); 6 | } 7 | 8 | /* 9 | Output: Hello 10 | 6 11 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5g.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | printf("%d==%f==%lf\n",5,55.5,55.5); 4 | printf("%i==%e==%E\n",5,555.5,123.45); 5 | printf("%o==%g==%G\n",9,555.5,123.45); 6 | return 0; 7 | } 8 | 9 | /* 10 | Output -> 11 | 5==55.500000==55.500000 12 | 5==5.555000e+002==1.234500E+002 13 | 11==555.5==123.45 14 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5h.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | printf("%d==%i==%o==%x\n",32,32,32,32); 4 | printf("%d==%i==%#o==%#x\n",32,32,32,32); 5 | printf("%d==%i==%#o==%#X\n",32,32,32,32); 6 | printf("%+d==%+i==%#o==%#X\n",32,32,032,0x45b); 7 | return 0; 8 | } 9 | 10 | /* 11 | Output -> 12 | 32==32==40==20 13 | 32==32==040==0x20 14 | 32==32==040==0X20 15 | +32==+32==032==0X45B 16 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5i.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | double x=3000.0, y=0.0035; 4 | printf("%f %f %f\n",x,y,x*y,x/y); 5 | printf("%e %e %e\n",x,y,x*y,x/y); 6 | printf("%E %E %E\n",x,y,x*y,x/y); 7 | return 0; 8 | } 9 | 10 | /* 11 | Output -> 12 | 3000.000000 0.003500 10.500000 13 | 3.000000e+003 3.500000e-003 1.050000e+001 14 | 3.000000E+003 3.500000E-003 1.050000E+001 15 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/Q5j.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | int i=54321; 4 | float x=876.543; 5 | printf(":%3d: :%5d: :%10d: :%12d:\n",i,i,i,i); 6 | printf(":%3f: :%10f: :%13f: :%f:\n",x,x,x,x); 7 | return 0; 8 | } 9 | 10 | /* 11 | Output -> 12 | :54321: :54321: : 54321: : 54321: 13 | :876.543030: :876.543030: : 876.543030: :876.543030: 14 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 01/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05A.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | float x = 25.0, y=10.0; 4 | if(y != (x - 10.0)) 5 | x = x - 10.0; 6 | else 7 | x = x / 2.0; 8 | return 0; 9 | } -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05B.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | float x = 25.0, y=10.0; 4 | if(y < 15.0) 5 | if(y >= 0.0) 6 | x = 5 * y; 7 | else 8 | x = 2 * y; 9 | else 10 | x = 3 * y; 11 | return 0; 12 | } -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05C.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int i = 0; 4 | while (i <= 5) { 5 | printf("%3d %3d\n", i, 10 - i); 6 | i = i + 1; 7 | } 8 | return 0; 9 | } 10 | 11 | /* 12 | OUTPUT -> 13 | 0 10 14 | 1 9 15 | 2 8 16 | 3 7 17 | 4 6 18 | 5 5 19 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05D.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int i = 1; 4 | while ( ) { 5 | printf ( "%d ", i++ ) ; 6 | if(i>10) 7 | break ; 8 | } 9 | return 0; 10 | } -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05E.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | int i, j,n=5; 4 | for(i=1, j=1; j<= n; i+= 2, j++){ 5 | printf("%d%d\n", i, j); 6 | } 7 | return 0; 8 | } 9 | 10 | /* 11 | OUTPUT -> 12 | 11 13 | 32 14 | 53 15 | 74 16 | 95 17 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05F.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int count = 11; 5 | while(--count+1); 6 | printf("Count down is %d \n", count); 7 | return 0; 8 | } 9 | 10 | /* 11 | Count down is -1 12 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05H.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int i=2; 4 | switch(i) { 5 | default: printf("Hello "); 6 | case 1: printf("Hello "); 7 | case 2: 8 | case 3: printf("Hello "); 9 | } 10 | return(0); 11 | } 12 | 13 | /* 14 | OUTPUT -> 15 | Hello 16 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05I.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | int i = 0 ; 4 | while(i++) { 5 | printf( "%d ",i); 6 | if (i > 2 ) 7 | break ; 8 | } 9 | return (0); 10 | } -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/Q05J.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { 3 | int a = 10; 4 | if(a=10){ 5 | printf("%d %d", sizeof(2.3f),sizeof(2.3)); 6 | } 7 | return(0); 8 | } 9 | 10 | /* 11 | OUTPUT -> 12 | 4 8 13 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 02/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 03/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 03/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q01.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int ia = 345; 5 | float fb = 4.5; 6 | char chvar = 'Z'; 7 | 8 | printf("Values:\n ia: %d\n fb: %.2f\n chvar: %c\n", ia, fb, chvar); 9 | printf("Addresses:\n &ia: %p\n &fb: %p\n &chvar: %p\n", &ia, &fb, &chvar); 10 | 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q02.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a = 10, b = 20; 5 | printf("Before Swap:\n a = %d at %p\n b = %d at %p\n", a, &a, b, &b); 6 | 7 | int temp = a; 8 | a = b; 9 | b = temp; 10 | 11 | printf("After Swap:\n a = %d at %p\n b = %d at %p\n", a, &a, b, &b); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q03.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | double x = 6.7, y = 1.2, z = 2.3; 5 | double *p = &x; 6 | 7 | printf("Values through pointer:\n x: %.1f\n y: %.1f\n z: %.1f\n", *p, *(p + 1), *(p + 2)); 8 | 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q04.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int x = 89; 5 | int *p1 = &x, *p2 = &x, *p3 = &x; 6 | 7 | printf("Value of x through p1: %d\n", *p1); 8 | *p3 = 100; 9 | printf("Updated value of x through p3: %d\n", *p3); 10 | 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q05.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int values[3] = {12, 25, 18}; 5 | int *ptr = values; 6 | 7 | for (int i = 0; i < 3; i++) { 8 | *(ptr + i) += 10; 9 | } 10 | 11 | printf("Updated values:\n a: %d\n b: %d\n c: %d\n", values[0], values[1], values[2]); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q06.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a = 12, b = 52, c = 8; 5 | int *ptr1 = &a, *ptr2 = &b, *ptr3 = &c; 6 | 7 | *ptr1 += 10; 8 | *ptr2 += 10; 9 | *ptr3 += 10; 10 | 11 | printf("Updated values:\n a: %d\n b: %d\n c: %d\n", a, b, c); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q07.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a = 52, b = 18; 5 | int *ptr1 = &a, *ptr2 = &b; 6 | 7 | printf("Greater value is: %d\n", (*ptr1 > *ptr2) ? *ptr1 : *ptr2); 8 | 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q08.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a[] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90}; 5 | for (int i = 0; i < 10; i++) { 6 | printf("Index: %d, Value: %d, Address: %p\n", i, a[i], &a[i]); 7 | } 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q09.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int arr1[] = {10, 13, 20, 33, 44}; 5 | double arr2[] = {10.2, 13.3, 20.0, 33.3, 45.3}; 6 | 7 | for (int i = 0; i < 5; i++) { 8 | printf("arr1[%d]: Value = %d, Address = %p\n", i, arr1[i], &arr1[i]); 9 | printf("arr2[%d]: Value = %.1f, Address = %p\n", i, arr2[i], &arr2[i]); 10 | } 11 | 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q10.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a[] = {120, 502, 118, 188, 106, 447}; 5 | int *ptr1 = &a[0], *ptr2 = &a[1], *ptr3 = &a[2]; 6 | int *ptr4 = &a[3], *ptr5 = &a[4], *ptr6 = &a[5]; 7 | 8 | printf("Array contents using individual pointers:\n"); 9 | printf("ptr1: %d, ptr2: %d, ptr3: %d\n", *ptr1, *ptr2, *ptr3); 10 | printf("ptr4: %d, ptr5: %d, ptr6: %d\n", *ptr4, *ptr5, *ptr6); 11 | 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q11.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a[] = {120, 502, 118, 188, 106, 447}; 5 | int *ptr = a; 6 | 7 | printf("Array contents using a single pointer:\n"); 8 | for (int i = 0; i < 6; i++) { 9 | printf("a[%d]: %d\n", i, *(ptr + i)); 10 | } 11 | 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q12.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a[] = {120, 502, 118, 188, 106, 447}; 5 | int *ptr = a; 6 | 7 | for (int i = 0; i < 6; i++) { 8 | printf("a[%d]: Value = %d, Address = %p\n", i, *(ptr + i), ptr + i); 9 | } 10 | 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q13.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int m = 10, n = 5; 5 | int *mp = &m, *np = &n; 6 | 7 | *mp = *mp + *np; // m = 15 8 | *np = *mp - *np; // n = 10 9 | 10 | printf("m: %d, *mp: %d\n", m, *mp); 11 | printf("n: %d, *np: %d\n", n, *np); 12 | 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q14.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q14.c -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q15.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a = 55, b = 105, c = 89, d = 68; 5 | int *arr[] = {&a, &b, &c, &d}; 6 | int *max = arr[0]; 7 | 8 | for (int i = 1; i < 4; i++) { 9 | if (*arr[i] > *max) { 10 | max = arr[i]; 11 | } 12 | } 13 | 14 | printf("Maximum value: %d\n", *max); 15 | 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q16.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a[] = {1, 2, 3, 4}; 5 | int b[] = {5, 6, 7, 8}; 6 | int c[] = {9, 10, 11, 12}; 7 | int d[] = {13, 14, 15, 16}; 8 | int sum[4]; 9 | int *arrays[] = {a, b, c, d}; 10 | 11 | for (int i = 0; i < 4; i++) { 12 | sumArr[i] = arrays[i][0] + arrays[i][1] + arrays[i][2] + arrays[i][3]; 13 | } 14 | 15 | for (int i = 0; i < 4; i++) { 16 | printf("Sum[%d]: %d\n", i, sum[i]); 17 | } 18 | 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q18.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | int *arr = (int *)malloc(4 * sizeof(int)); 6 | for (int i = 0; i < 4; i++) { 7 | arr[i] = i + 1; 8 | printf("arr[%d]: %d\n", i, arr[i]); 9 | } 10 | free(arr); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q19.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // Function prototype for sum and average calculation 4 | void sum_n_avg(double a, double b, double c, double *sum, double *avg); 5 | 6 | void sum_n_avg(double a, double b, double c, double *sum, double *avg) { 7 | *sum = a + b + c; 8 | *avg = *sum / 3.0; 9 | } 10 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q20.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // Prototype declaration 4 | void sum_n_avg(double a, double b, double c, double *sum, double *avg); 5 | 6 | int main() { 7 | double one, two, three, sum_of_3, avg_of_3; 8 | 9 | printf("Enter three numbers: "); 10 | scanf("%lf %lf %lf", &one, &two, &three); 11 | 12 | // Call the function 13 | sum_n_avg(one, two, three, &sum_of_3, &avg_of_3); 14 | 15 | printf("Sum: %.2f, Average: %.2f\n", sum_of_3, avg_of_3); 16 | 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q22.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void sum(int a, int b, int *cp) { 4 | *cp = a + b; 5 | } 6 | 7 | int main() { 8 | int x = 7, y = 2, z; 9 | 10 | printf("x y z\n"); 11 | sum(x, y, &z); 12 | printf("%4d%4d%4d\n", x, y, z); 13 | sum(y, x, &z); 14 | printf("%4d%4d%4d\n", x, y, z); 15 | sum(z, y, &x); 16 | printf("%4d%4d%4d\n", x, y, z); 17 | sum(z, z, &x); 18 | printf("%4d%4d%4d\n", x, y, z); 19 | sum(y, y, &y); 20 | printf("%4d%4d%4d\n", x, y, z); 21 | 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q23.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void double_trouble(int *p, int y); 4 | void trouble(int *x, int *y); 5 | 6 | int main(void) { 7 | int x, y; 8 | trouble(&x, &y); 9 | printf("x = %d, y = %d\n", x, y); 10 | return 0; 11 | } 12 | 13 | void double_trouble(int *p, int y) { 14 | int x; 15 | x = 10; 16 | *p = 2 * x - y; 17 | } 18 | 19 | void trouble(int *x, int *y) { 20 | double_trouble(x, 7); // Sets *x 21 | double_trouble(y, *x); // Sets *y 22 | } 23 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q25.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int arr[] = {12, 45, 67, 23, 89, 10}; 5 | int *ptr = arr, max = *ptr; 6 | 7 | for (int i = 1; i < 6; i++) { 8 | if (*(ptr + i) > max) { 9 | max = *(ptr + i); 10 | } 11 | } 12 | 13 | printf("Largest value: %d\n", max); 14 | 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 04/Q26.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int matrix[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; 5 | int transpose[3][3]; 6 | 7 | for (int i = 0; i < 3; i++) { 8 | for (int j = 0; j < 3; j++) { 9 | transpose[j][i] = matrix[i][j]; 10 | } 11 | } 12 | 13 | printf("Transpose:\n"); 14 | for (int i = 0; i < 3; i++) { 15 | for (int j = 0; j < 3; j++) { 16 | printf("%d ", transpose[i][j]); 17 | } 18 | printf("\n"); 19 | } 20 | 21 | return 0; 22 | } 23 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q01.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 24 3 | 24 4 | 5 | Explanation: 6 | `arr[2][4]` and `*(*(arr + 2) + 4)` access the same element of the 2D array `arr`. The element is calculated as `10 * 2 + 4 = 24`. 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q02.txt: -------------------------------------------------------------------------------- 1 | 2D Array: 2 | 10*i + j results in: 3 | [ [ 0, 1, 2, 3, 4 ], 4 | [ 10, 11, 12, 13, 14 ], 5 | [ 20, 21, 22, 23, 24 ], 6 | [ 30, 31, 32, 33, 34 ] ] 7 | 8 | Output: 9 | 24 10 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q03.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 19 3 | 4 | Explanation: 5 | `*(*(a + **a + 2) + 3)` evaluates to `a[3][3]`, which is 19. 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q04.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 1020 1020 1020 3 | 9 9 9 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q05.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 1, 1, 1 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q06.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 12 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q07.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 9 3 | 1008 4 | 1008 5 | 6 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q09.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 10, 10, 14 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q10.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 15 3 | 15 4 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q11.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 1000 3 | 20 1000 4 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q12.txt: -------------------------------------------------------------------------------- 1 | (A) Unexpected behavior 2 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q13.txt: -------------------------------------------------------------------------------- 1 | (C) 30 2 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q14.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 100 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q15.txt: -------------------------------------------------------------------------------- 1 | Output at line-4: 100 2 | Output at line-7: NULL 3 | 4 | Line 6 acts like `free()` to deallocate memory: Yes 5 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q16.txt: -------------------------------------------------------------------------------- 1 | Error: `void p = b;` is invalid. `p` should be declared as `void *p`. 2 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q17.txt: -------------------------------------------------------------------------------- 1 | (B) 65 A 2 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q18.txt: -------------------------------------------------------------------------------- 1 | 10...10 2 | 20...20 3 | 30...30 4 | 40...40 5 | 50...50 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q19.txt: -------------------------------------------------------------------------------- 1 | 10...10 2 | 20...20 3 | 30...30 4 | 40...40 5 | 50...50 6 | 9...9 7 | 8...8 8 | 6...6 9 | 5...5 10 | 4...4 11 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q20.txt: -------------------------------------------------------------------------------- 1 | (1) True 2 | (2) True 3 | (3) True 4 | (4) True 5 | (5) True 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q21.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 5 4 3 2 1 0 -1 -2 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q22.txt: -------------------------------------------------------------------------------- 1 | (i) p is a wild pointer 2 | (ii) r is a NULL pointer 3 | (v) fun() is making a memory leak 4 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q23.txt: -------------------------------------------------------------------------------- 1 | Compile-time error at line-4 2 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q24.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | SS 3 | SS 4 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q25.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 1994 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q26.txt: -------------------------------------------------------------------------------- 1 | Output: 2 | 9...20 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q27.txt: -------------------------------------------------------------------------------- 1 | (2) ` * const ptr;` 2 | (4) ` const * const fun_ptr` -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q28.txt: -------------------------------------------------------------------------------- 1 | (1) `const * ptr;` 2 | (3) ` const *ptr;` 3 | (4) ` const * const fun_ptr;` -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/Q29.txt: -------------------------------------------------------------------------------- 1 | (1) `int (*ptr)(int, int, int) = funname;` 2 | (3) `int (*ptr)(int, int, int) = &funname` -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 05/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q01.txt: -------------------------------------------------------------------------------- 1 | 0 0 0 0 2 | Explanation: The static variable i decrements with each recursive call, printing 0 after all recursive calls complete. -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q02.txt: -------------------------------------------------------------------------------- 1 | 2 | 4 2 3 | 6 2 4 | 2 0 5 | Explanation: Static a in prtFun retains its value across calls, while b is reinitialized in each call. -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q03.txt: -------------------------------------------------------------------------------- 1 | 2 | 4 2 3 | 4 2 4 | 2 0 5 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q04.txt: -------------------------------------------------------------------------------- 1 | 9 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q05.txt: -------------------------------------------------------------------------------- 1 | 10101101 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q06.txt: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q07.txt: -------------------------------------------------------------------------------- 1 | 5 2 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q08.txt: -------------------------------------------------------------------------------- 1 | 7 -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q09.txt: -------------------------------------------------------------------------------- 1 | Error 2 | Explanation: register variable a cannot have its address taken, causing an invalid pointer operation. -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q10.txt: -------------------------------------------------------------------------------- 1 | 9 2 | Explanation: count is incremented by 2 in each write_extern() call. -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q11.txt: -------------------------------------------------------------------------------- 1 | 2 | i=5 3 | j=10 4 | Explanation: extern keyword allows the use of the global j defined outside the main function. -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q12.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int sum(int arr[], int n) { 4 | return (n == 0) ? 0 : arr[n - 1] + sum(arr, n - 1); 5 | } 6 | 7 | int main() { 8 | int arr[] = {1, 2, 3, 4, 5}; 9 | printf("Sum: %d", sum(arr, 5)); 10 | return 0; 11 | } 12 | 13 | /* 14 | Output: 15 | Sum: 15 16 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/Q13.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void print_fibo(int a, int b, int n) { 4 | if (n == 0) return; 5 | printf("%d ", a); 6 | print_fibo(b, a + b, n - 1); 7 | } 8 | 9 | int main() { 10 | int n = 5; 11 | printf("Fibonacci Series: "); 12 | print_fibo(0, 1, n); 13 | return 0; 14 | } 15 | 16 | /* 17 | Fibonacci Series: 0 1 1 2 3 18 | */ -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 06/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 07/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 07/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 08/Q29/MulThree.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(int argc, char *argv[]) { 5 | if (argc != 4) { 6 | printf("Usage: %s num1 num2 num3\n", argv[0]); 7 | return 1; 8 | } 9 | 10 | int num1 = atoi(argv[1]); 11 | int num2 = atoi(argv[2]); 12 | int num3 = atoi(argv[3]); 13 | int result = num1 * num2 * num3; 14 | 15 | printf("The product of %d, %d, and %d is %d\n", num1, num2, num3, result); 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 08/Q29/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/C LANGUAGE (PPWC)/Minor Assignment 08/Q29/a.exe -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/Nat.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/Nat.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab2.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab2.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q1hub.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q1hub.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q1switch.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q1switch.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q2hub.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q2hub.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q2switch.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q2switch.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q3hub.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q3hub.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q3switch.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q3switch.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q4hub.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q4hub.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q4switch.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab3q4switch.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab4.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab4.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab4q3.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab4q3.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab5.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab5.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab6.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab6.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab62.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab62.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab6q2.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab6q2.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab7.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab7.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab72.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/lab72.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/COMPUTER NETWORKING (CN)/nat_routing.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/COMPUTER NETWORKING (CN)/nat_routing.pkt -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q01.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q02.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q03.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q04.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q05.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q06.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q07.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q08.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q09.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q10.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q11.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q12.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q13.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q14.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q15.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q16.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q17.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q18.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q19.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q20.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment1 - Screenshots/Q21.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q01-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q01-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q01.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q02.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q03.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q04-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q04-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q04.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q05.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q06-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q06-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q06.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q07-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q07-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment2 - Screenshots/Q07.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q01.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q02.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q03.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q04.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q05.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q06.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q07.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q08.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q09-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q09-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q09-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q09-2.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q10-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q10-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q10-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q10-2.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q11-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q11-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q11-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q11-2.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q12-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q12-1.png -------------------------------------------------------------------------------- /5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q12-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/DESIGN OF OPERATING SYSTEM (DOS)/Assignment3 - Screenshots/Q12-2.png -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/Outputs.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/Outputs.docx -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question1.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question1.cpython-312.pyc -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question2.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question2.cpython-312.pyc -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question3.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question3.cpython-312.pyc -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question4.cpython-312.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/PYTHON/Major Assignment 1/2241019426_CSE_2241027/__pycache__/Question4.cpython-312.pyc -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 2/Mission1.py: -------------------------------------------------------------------------------- 1 | def clean_list(lst): 2 | return sorted(set(lst)) 3 | 4 | lst = ["Kyiv", "Kharkiv", "Odessa", "Kyiv", "Lviv", "Kharkiv", "Dnipro"] 5 | print(clean_list(lst)) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 2/Mission2.py: -------------------------------------------------------------------------------- 1 | def find_alerts(lst1, lst2): 2 | all_cities = lst1.union(lst2) 3 | unique_cities = lst1.symmetric_difference(lst2) 4 | common_cities = lst1.intersection(lst2) 5 | return all_cities, unique_cities, common_cities 6 | 7 | lst1 = {"Dnipro", "Kharkiv", "Kyiv", "Lviv", "Odessa"} 8 | lst2 = {"Kyiv", "Mariupol", "Lviv", "Donetsk"} 9 | 10 | all_cities, unique_cities, common_cities = find_alerts(lst1, lst2) 11 | print(all_cities) 12 | print(unique_cities) 13 | print(common_cities) 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 2/Mission3.py: -------------------------------------------------------------------------------- 1 | def city_data(cities, data): 2 | info = {c: d for c, *d in data if c in cities} 3 | total_pop = sum(d[0] for d in info.values()) 4 | total_aid = sum(d[1] for d in info.values()) 5 | return info, total_pop, total_aid 6 | 7 | cities = {"Kyiv", "Lviv"} 8 | data = [("Kyiv", 2800000, 250), ("Kharkiv", 1431000, 180), ("Lviv", 721301, 90), ("Odessa", 1029049, 120)] 9 | 10 | info, total_pop, total_aid = city_data(cities, data) 11 | print(info) 12 | print(total_pop) 13 | print(total_aid) 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 2/Mission4.py: -------------------------------------------------------------------------------- 1 | def supply_data(data): 2 | result = {} 3 | for city, item, qty in data: 4 | if city not in result: 5 | result[city] = {} 6 | result[city][item] = qty 7 | return result 8 | 9 | data = [("Kyiv", "Food", 500), ("Moscow", "Medicines", 200), ("Lviv", "Water", 300), 10 | ("Saint Petersburg", "Blankets", 100), ("Kharkiv", "Food", 150)] 11 | 12 | print(supply_data(data)) 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Major Assignment 2/Output.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/5. Fifth_Semester/PYTHON/Major Assignment 2/Output.docx -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q07.py: -------------------------------------------------------------------------------- 1 | # Ques 7: What is the output of the following Python code? 2 | 3 | a=int(input("Enter a:")) 4 | a=20 5 | b=10 6 | print(a+b) 7 | 8 | 9 | # Output: Enter a:12 10 | # 30 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q08.py: -------------------------------------------------------------------------------- 1 | # Ques 8: What is the output of the following Python code? 2 | 3 | a = "nana " 4 | b = 8 5 | c = a * b 6 | print(c, "Batman") 7 | 8 | 9 | # Output: nana nana nana nana nana nana nana nana Batman -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q09.py: -------------------------------------------------------------------------------- 1 | # Ques 9: How do you print the exact following lines in the exact order using only 1 print statement in Python? 2 | # Hi! We are studying ”Python”. \n I hope you all are doing well. 3 | # We are going to have a great time! 4 | 5 | print("""Hi! We are studying ”Python”. \nI hope you all are doing well. 6 | We are going to have a great time!""") 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q10.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 10: Create a program that displays your name and complete mailing address. The address should be 3 | printed in the format that is normally used in the area where you live. Your program does not need to 4 | read any input from the user. 5 | ''' 6 | 7 | print("Somnath Shaw") 8 | print("123, ABC Street") 9 | print("Bhubaneswar, Odisha") 10 | print("751030") 11 | print("India") 12 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q11.py: -------------------------------------------------------------------------------- 1 | # Ques 11: Given an expression P(x) = x3 + 2x2 + 3x + 4, try to find the value of P(2) pythonically. 2 | 3 | x = 2 4 | P_x = x**3 + 2*x**2 + 3*x + 4 5 | 6 | print("P(2) :", P_x) 7 | 8 | 9 | # Output: P(2) : 26 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q14.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 14: Evaluate the following expressions: 3 | (a 26 | Result 1 is : True 27 | Result 2 is : False 28 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 1/Q16.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 16: Import relevant Python modules and print the values of eπ and πe. Then, if eπ > πe, print ”ok”. 3 | Otherwise print ”ok anyway”. 4 | ''' 5 | 6 | import math 7 | 8 | ePi = math.e ** math.pi 9 | piE = math.pi ** math.e 10 | 11 | print("e^π =", ePi) 12 | print("π^e =", piE) 13 | 14 | if ePi > piE: 15 | print("ok") 16 | else: 17 | print("ok anyway") 18 | 19 | 20 | 21 | ''' 22 | Output-> 23 | e^π = 23.140692632779263 24 | π^e = 22.45915771836104 25 | ok 26 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q01.py: -------------------------------------------------------------------------------- 1 | raining = input("Enter whether it's raining or not (yes or no) :") 2 | 3 | if(raining == "yes"): 4 | print("Carry an Umbrella.") 5 | else: 6 | print("No need to carry an Umbrella.") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q02.py: -------------------------------------------------------------------------------- 1 | raining = input("Enter whether it's raining or not (yes or no) :") 2 | 3 | if(raining == "yes"): 4 | print("Carry an Umbrella.") 5 | elif(raining == "no"): 6 | print("No need to carry an Umbrella.") 7 | else: 8 | print("Bye.") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q04.py: -------------------------------------------------------------------------------- 1 | user = int(input("Enter an Integer :")) 2 | 3 | if(user % 2 == 0): 4 | print(f"{user} ia an Even Number.") 5 | else: 6 | print(f"{user} is a Odd Number.") 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q05.py: -------------------------------------------------------------------------------- 1 | year = int(input("Enter a Year :")) 2 | 3 | if(year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): 4 | print(f"{year} is a Leap Year.") 5 | else: 6 | print(f"{year} is not a Leap Year.") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q06.py: -------------------------------------------------------------------------------- 1 | num = int(input("Enter an Integer :")) 2 | 3 | if(num < 2): 4 | print(f"{num} is not a Prime Number") 5 | else: 6 | isPrime = True 7 | for i in range(2, num): 8 | if(num % i == 0): 9 | isPrime = False 10 | break 11 | 12 | if isPrime: 13 | print(f"{num} is a Prime number") 14 | else: 15 | print(f"{num} is not a Prime number") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q07.py: -------------------------------------------------------------------------------- 1 | rangePrime = int(input("Enter a Number :")) 2 | sumPrimes = 0 3 | 4 | for i in range(2, rangePrime): 5 | isPrime = True 6 | for n in range(2, int(i**0.5)+1): 7 | if i % n == 0: 8 | isPrime = False 9 | break 10 | 11 | if isPrime: 12 | sumPrimes += i 13 | 14 | print(f"The Sum of all the prime numbers less than {rangePrime} is {sumPrimes}") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q08.py: -------------------------------------------------------------------------------- 1 | user = int(input("Enter an Integer :")) 2 | res = 1 3 | 4 | while(user < 0): 5 | print("Please enter a Positive Integer !!") 6 | user = int(input("Enter an Integer :")) 7 | 8 | if(user % 2 == 0): 9 | res = user * 2 10 | else: 11 | res = user * user 12 | 13 | print(f"The Entered number is {user} and the result is {res}") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q09.py: -------------------------------------------------------------------------------- 1 | user = input("Enter an Integer :") 2 | number = int(user) 3 | remainder = number % 5 4 | 5 | match remainder: 6 | case 0: print(f"The remainder when {number} is divided by 5 is 0.") 7 | case 1: print(f"The remainder when {number} is divided by 5 is 1.") 8 | case 2: print(f"The remainder when {number} is divided by 5 is 2.") 9 | case 3: print(f"The remainder when {number} is divided by 5 is 3.") 10 | case 4: print(f"The remainder when {number} is divided by 5 is 4.") 11 | case _: print("Invalid Input!!") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q10.py: -------------------------------------------------------------------------------- 1 | str = input("Enter a String :") 2 | for i in range(len(str)): 3 | for j in range(i+1, len(str)+1): 4 | print(str[i:j]) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q12.py: -------------------------------------------------------------------------------- 1 | import statistics as s 2 | 3 | list = [1, 2, 3, 2, 3, 4, 4, 4, 5, 4, 5, 6] 4 | 5 | mean = s.mean(list) 6 | median = s.median(list) 7 | mode = s.mode(list) 8 | 9 | print(f"The Mean, Median and Mode of the above data is {mean}, {median} and {mode} respectively.") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q13.py: -------------------------------------------------------------------------------- 1 | position = input("Enter a Chessboard Position :") 2 | 3 | column = position[0].lower() 4 | row = int(position[1]) 5 | 6 | columnNo = ord(column) - ord('a') + 1 7 | if(row % 2 == columnNo % 2): 8 | color = "Black" 9 | else: 10 | color = "White" 11 | 12 | print(f"The color of square {position} is {color}") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q15.py: -------------------------------------------------------------------------------- 1 | def isPerfectNumber(n): 2 | sumDivisors = 0 3 | for i in range(1, n): 4 | if(n % i == 0): 5 | sumDivisors += i 6 | return sumDivisors == n 7 | 8 | num = int(input("Enter a Natural number :")) 9 | if(isPerfectNumber(num)): 10 | print(f"{num} is a Perfect Number") 11 | else: 12 | print(f"{num} is not a Perfect Number") 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q16A.py: -------------------------------------------------------------------------------- 1 | import math 2 | 3 | def sumSeries(x, n): 4 | total = 1 5 | for i in range(1, n + 1): 6 | term = ((-1) ** i) * (x ** (2 * i)) / math.factorial(2 * i) 7 | total += term 8 | return total 9 | 10 | x = float(input("Enter value of x :")) 11 | n = int(input("Enter the number of terms(n) :")) 12 | res = sumSeries(x, n) 13 | print(f"Sum of series for x = {x} and n = {n} is : {res}") 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q16B.py: -------------------------------------------------------------------------------- 1 | import math 2 | 3 | def sumSeries(x, n): 4 | total = 1 5 | for i in range(1, n + 1): 6 | total += (x ** i) / math.factorial(i) 7 | return total 8 | 9 | x = float(input("Enter value of x :")) 10 | n = int(input("Enter the number of terms(n) :")) 11 | res = sumSeries(x, n) 12 | print(f"Sum of series for x = {x} and n = {n} is : {res}") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q16C.py: -------------------------------------------------------------------------------- 1 | def sumSeries(n): 2 | totalSum = 0 3 | sign = 1 4 | for i in range(n): 5 | term = (2*i)+1 6 | totalSum += sign * term 7 | sign *= -1 8 | return totalSum 9 | 10 | n = int(input("Enter the number of terms(n) :")) 11 | res = sumSeries(n) 12 | print(f"Sum of series for n = {n} is : {res}") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q17.py: -------------------------------------------------------------------------------- 1 | count = 0 2 | num = 100 3 | 4 | while(num <= 1000): 5 | if(num % 5 == 0 or num % 6 == 0): 6 | print(num, end=' ') 7 | count += 1 8 | if(count % 10 == 0): 9 | print() 10 | num += 1 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q18.py: -------------------------------------------------------------------------------- 1 | for i in range(1, 101): 2 | if(i % 7 == 0): 3 | continue 4 | print(i) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q19.py: -------------------------------------------------------------------------------- 1 | n = int(input("Enter a Positive Number :")) 2 | reverseNo = 0 3 | 4 | while(n > 0): 5 | digit = n % 10 6 | reverseNo = reverseNo * 10 + digit 7 | n //= 10 8 | 9 | print("Reversed Number :", reverseNo) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q20.py: -------------------------------------------------------------------------------- 1 | n = int(input("Enter a Positive Integer :")) 2 | 3 | factors = [] 4 | divisor = 2 5 | 6 | while(n > 1): 7 | while(n % divisor == 0): 8 | factors.append(divisor) 9 | n //= divisor 10 | divisor += 1 11 | 12 | print("Smallest factors in Increasing order : ", factors) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q21.py: -------------------------------------------------------------------------------- 1 | n = int(input("Enter a Positive Integer: ")) 2 | fact = 1 3 | i = 1 4 | 5 | while fact < n: 6 | i += 1 7 | fact *= i 8 | 9 | if fact == n: 10 | print(f"{n} is a factorial number ({i}!)") 11 | else: 12 | print(f"{n} is not a factorial number") 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q22.py: -------------------------------------------------------------------------------- 1 | n = int(input("Enter a Positive Integer :")) 2 | 3 | def sumDigits(n): 4 | total = 0 5 | while(n > 0): 6 | total += n % 10 7 | n //= 10 8 | return total 9 | 10 | while(n >= 10): 11 | n = sumDigits(n) 12 | 13 | print("The Single digit sum is :", n) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q24.py: -------------------------------------------------------------------------------- 1 | digitToWord = {'0': 'ZERO', '1': 'ONE', '2': 'TWO', '3': 'THREE', '4': 'FOUR', '5': 'FIVE', '6': 'SIX', '7': 'SEVEN', '8': 'EIGHT', '9': 'NINE'} 2 | num = input("Enter an Integer :") 3 | uniqueDigits = set(num) 4 | 5 | for digit in uniqueDigits: 6 | if digit in digitToWord: 7 | print(digitToWord[digit], end=' ') -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25A.py: -------------------------------------------------------------------------------- 1 | for i in range(4): 2 | for j in range(i+1): 3 | print("*", end=' ') 4 | print() 5 | 6 | ''' 7 | Output -> 8 | * 9 | * * 10 | * * * 11 | * * * * 12 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25B.py: -------------------------------------------------------------------------------- 1 | for i in range(4): 2 | for j in range(3-i): 3 | print(" ", end=' ') 4 | for j in range(i+1): 5 | print("*", end=' ') 6 | print() 7 | 8 | ''' 9 | Output -> 10 | * 11 | * * 12 | * * * 13 | * * * * 14 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25C.py: -------------------------------------------------------------------------------- 1 | for i in range(4, 0, -1): 2 | for j in range(4-i): 3 | print(" ", end=' ') 4 | for j in range(i): 5 | print("*", end=' ') 6 | print() 7 | 8 | ''' 9 | Output -> 10 | * * * * 11 | * * * 12 | * * 13 | * 14 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25D.py: -------------------------------------------------------------------------------- 1 | for i in range(4, 0, -1): 2 | for j in range(i): 3 | print("*", end=' ') 4 | print() 5 | 6 | ''' 7 | Output -> 8 | * * * * 9 | * * * 10 | * * 11 | * 12 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25E.py: -------------------------------------------------------------------------------- 1 | n = 4 2 | 3 | for i in range(n, 0, -1): 4 | print(' ' * (n-i) + '* ' * i) 5 | 6 | ''' 7 | Output -> 8 | * * * * 9 | * * * 10 | * * 11 | * 12 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25F.py: -------------------------------------------------------------------------------- 1 | n = 4 2 | 3 | for i in range(1, n+1): 4 | for j in range(n-i): 5 | print(" ", end="") 6 | for k in range(i): 7 | print("* ", end="") 8 | print() 9 | 10 | for i in range(n-1, 0, -1): 11 | for j in range(n-i): 12 | print(" ", end="") 13 | for k in range(i): 14 | print("* ", end="") 15 | print() 16 | 17 | ''' 18 | Output -> 19 | * 20 | * * 21 | * * * 22 | * * * * 23 | * * * 24 | * * 25 | * 26 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25G.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | 3 | for i in range(n): 4 | for j in range(n-i): 5 | print(' ', end=' ') 6 | for j in range(2*i+1): 7 | if(j == 0) or (j == 2*i) or (i == n-1): 8 | print("*", end=' ') 9 | else: 10 | print(' ', end=' ') 11 | print() 12 | 13 | ''' 14 | Output -> 15 | * 16 | * * 17 | * * 18 | * * 19 | * * * * * * * * * 20 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25I.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | 3 | for i in range(1, n+1): 4 | for j in range(1, n+1): 5 | if(i == 1) or (i == n) or (j == 1) or (j == n): 6 | print("*", end=' ') 7 | else: 8 | print(" ", end=' ') 9 | print() 10 | 11 | ''' 12 | Output -> 13 | * * * * * 14 | * * 15 | * * 16 | * * 17 | * * * * * 18 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25J.py: -------------------------------------------------------------------------------- 1 | n = 6 2 | 3 | for i in range(n): 4 | for j in range(n-i): 5 | print(j, end=' ') 6 | print() 7 | 8 | ''' 9 | Output -> 10 | 0 1 2 3 4 5 11 | 0 1 2 3 4 12 | 0 1 2 3 13 | 0 1 2 14 | 0 1 15 | 0 16 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25K.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | 3 | for i in range(1, n+1): 4 | for j in range(i): 5 | print(2*i-1, end=' ') 6 | print() 7 | 8 | ''' 9 | Output -> 10 | 1 11 | 3 3 12 | 5 5 5 13 | 7 7 7 7 14 | 9 9 9 9 9 15 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25L.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | 3 | for i in range(1, n+1): 4 | for j in range(i, 0, -1): 5 | print(j, end=' ') 6 | print() 7 | 8 | ''' 9 | Output -> 10 | 1 11 | 2 1 12 | 3 2 1 13 | 4 3 2 1 14 | 5 4 3 2 1 15 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25M.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | 3 | for i in range(1, n+1): 4 | for j in range(1, i+1): 5 | print(i*j, end=' ') 6 | print() 7 | 8 | ''' 9 | Output -> 10 | 1 11 | 2 4 12 | 3 6 9 13 | 4 8 12 16 14 | 5 10 15 20 25 15 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25N.py: -------------------------------------------------------------------------------- 1 | n = 7 2 | asciiVal = 65 3 | 4 | for i in range(1, n+1): 5 | for j in range(i): 6 | print(chr(asciiVal), end='') 7 | asciiVal += 1 8 | print() 9 | 10 | ''' 11 | Output -> 12 | A 13 | BC 14 | DEF 15 | GHIJ 16 | KLMNO 17 | PQRSTU 18 | VWXYZ[\ 19 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 2/Q25O.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | for i in range(1, n+1): 3 | print(" " * (n-i), end='') 4 | for j in range(i, 0, -1): 5 | print(j, end='') 6 | for j in range(2, i+1): 7 | print(j, end='') 8 | print() 9 | 10 | ''' 11 | Output -> 12 | 1 13 | 212 14 | 32123 15 | 4321234 16 | 543212345 17 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q02.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 2: Find the numbers between 100 and 500, which are divisible by 3 and multiples of 5 using function in 3 | Python. 4 | ''' 5 | 6 | def find_numbers(): 7 | result = [] 8 | for i in range(100, 501): 9 | if(i % 3 == 0 and i % 5 == 0): 10 | result.append(i) 11 | return result 12 | 13 | print(find_numbers()) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q03.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 3: Write a Python function to add the squares of the even numbers between 1 and 50 (both included). 3 | ''' 4 | 5 | def sum_squares_even(): 6 | totalSum = 0 7 | for i in range(1, 51): 8 | if i % 2 == 0: 9 | totalSum += i ** 2 10 | return totalSum 11 | 12 | print(sum_squares_even()) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q04.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 4: Write a function that takes a string as input and returns the reversed string. 3 | ''' 4 | 5 | def reverse_string(str): 6 | reverseStr = "" 7 | for i in range(len(str) - 1, -1, -1): 8 | reverseStr += str[i] 9 | return reverseStr 10 | 11 | print(reverse_string("DevSom")) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q05.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 5: Write a function that takes a positive integer and returns the number of digits. 3 | ''' 4 | 5 | def count_digits(num): 6 | count = 0 7 | while(num > 0): 8 | num //= 10 9 | count += 1 10 | return count 11 | 12 | print(count_digits(224101)) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q06.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 6: Define a function to check if a given string is a palindrome. Example: madam ⟲ madam, racecar ⟲ 3 | racecar. 4 | ''' 5 | 6 | def is_palindrome(str): 7 | str = str.lower() 8 | st = 0 9 | end = len(str)-1 10 | 11 | while(st < end): 12 | if(str[st] != str[end]): 13 | return False 14 | st += 1 15 | end -= 1 16 | return True 17 | 18 | print(is_palindrome("madam")) 19 | print(is_palindrome("racecar")) 20 | print(is_palindrome("hello")) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q07.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 7: Write a Python function to check whether an alphabet is a vowel or consonant. 3 | ''' 4 | 5 | def check_vowel_consonant(ch): 6 | ch = ch.lower() 7 | if ch in 'aeiou': 8 | return 'Vowel' 9 | elif 'a' <= ch <= 'z': 10 | return 'Consonant' 11 | else: 12 | return 'Invalid input. please enter a single alphabet.' 13 | 14 | print(check_vowel_consonant('A')) 15 | print(check_vowel_consonant('1')) 16 | print(check_vowel_consonant('s')) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q10.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 10: Create a function that returns all the unique permutations of a given string. 3 | ''' 4 | 5 | from itertools import permutations 6 | 7 | def unique_permutations(s): 8 | """Returns all unique permutations of a given string.""" 9 | return sorted(set(''.join(p) for p in permutations(s))) 10 | 11 | # Example usage 12 | string = "abc" 13 | result = unique_permutations(string) 14 | print(f"Unique permutations of '{string}': {result}") 15 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q11.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 11: Create a function that determines whether a string can be rearranged to form a palindrome. 3 | ''' 4 | 5 | def can_form_palindrome(s): 6 | odd_chars = set() 7 | for char in s: 8 | if char in odd_chars: 9 | odd_chars.remove(char) 10 | else: 11 | odd_chars.add(char) 12 | return len(odd_chars) <= 1 13 | 14 | s = "civic" 15 | print(can_form_palindrome(s)) 16 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q15.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 15: Create a function that returns the nth number in the Fibonacci sequence. 3 | ''' 4 | 5 | def fibonacci(n): 6 | if n <= 0: 7 | return "Input should be a positive integer." 8 | elif n == 1: 9 | return 0 10 | elif n == 2: 11 | return 1 12 | 13 | a, b = 0, 1 14 | for _ in range(2, n): 15 | a, b = b, a + b 16 | return b 17 | 18 | 19 | n = int(input("Enter the position (n) in the Fibonacci sequence: ")) 20 | print(f"The {n}th Fibonacci number is:", fibonacci(n)) 21 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q17.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 17: Create a function that takes a string and returns a new string where all the vowels are removed. 3 | ''' 4 | 5 | def remove_vowels(s): 6 | vowels = "aeiouAEIOU" 7 | return ''.join(char for char in s if char not in vowels) 8 | 9 | 10 | text = input("Enter a string: ") 11 | print("String without vowels:", remove_vowels(text)) 12 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q19.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 19: Create a function to find the greatest common divisor (GCD) of two numbers using a while loop. 3 | ''' 4 | 5 | def gcd(a, b): 6 | while b: 7 | a, b = b, a % b 8 | return a 9 | 10 | 11 | num1 = int(input("Enter the first number: ")) 12 | num2 = int(input("Enter the second number: ")) 13 | 14 | print("The GCD is:", gcd(num1, num2)) 15 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q20.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 20: Write a function to print all prime numbers between 1 and 100. 3 | ''' 4 | 5 | def print_primes(): 6 | for num in range(2, 101): 7 | is_prime = True 8 | for i in range(2, int(num**0.5) + 1): 9 | if num % i == 0: 10 | is_prime = False 11 | break 12 | if is_prime: 13 | print(num, end=" ") 14 | 15 | 16 | print_primes() 17 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q21.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 21: Write a function to calculate the factorial of a number using a loop. 3 | ''' 4 | 5 | def factorial(n): 6 | result = 1 7 | for i in range(1, n + 1): 8 | result *= i 9 | return result 10 | 11 | 12 | num = int(input("Enter a number: ")) 13 | print("Factorial:", factorial(num)) 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q23.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 23: Write a function that returns the index of each vowel in a string using a for loop. 3 | ''' 4 | 5 | def vowel_indices(s): 6 | vowels = "aeiouAEIOU" 7 | indices = [] 8 | for index, char in enumerate(s): 9 | if char in vowels: 10 | indices.append(index) 11 | return indices 12 | 13 | 14 | text = input("Enter a string: ") 15 | print("Indices of vowels:", vowel_indices(text)) 16 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q24.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 24: Write a function that removes all punctuation from a string. 3 | ''' 4 | 5 | def remove_punctuation(s): 6 | punctuation = '''!()-[]{};:'"\,<>./?@#$%^&*_~''' 7 | result = "" 8 | for char in s: 9 | if char not in punctuation: 10 | result += char 11 | return result 12 | 13 | 14 | text = input("Enter a string: ") 15 | print("String without punctuation:", remove_punctuation(text)) 16 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q25.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 25: Write a function to check if two numbers are coprime. 3 | ''' 4 | 5 | def gcd(a, b): 6 | while b: 7 | a, b = b, a % b 8 | return a 9 | 10 | def are_coprime(num1, num2): 11 | return gcd(num1, num2) == 1 12 | 13 | 14 | number1 = int(input("Enter the first number: ")) 15 | number2 = int(input("Enter the second number: ")) 16 | 17 | if are_coprime(number1, number2): 18 | print(f"{number1} and {number2} are coprime.") 19 | else: 20 | print(f"{number1} and {number2} are not coprime.") 21 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q26.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 26: Write a function that replaces all vowels in a string with the character ”*”. 3 | ''' 4 | 5 | def replace_vowels(s): 6 | vowels = "aeiouAEIOU" 7 | result = "" 8 | for char in s: 9 | if char in vowels: 10 | result += "*" 11 | else: 12 | result += char 13 | return result 14 | 15 | 16 | text = input("Enter a string: ") 17 | print("String with vowels replaced:", replace_vowels(text)) 18 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 3/Q30.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 30: Write a function that inputs a number and returns the product of digits of that number. 3 | ''' 4 | 5 | def product_of_digits(num): 6 | product = 1 7 | for digit in str(num): 8 | product *= int(digit) 9 | return product 10 | 11 | 12 | number = int(input("Enter a number: ")) 13 | print("Product of digits:", product_of_digits(number)) 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q04.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 4: Write a Python program that removes all occurrences of a specific element from a list. 3 | ''' 4 | 5 | def remove_all_occurrences(lst, element): 6 | return [x for x in lst if x != element] 7 | 8 | lst = [int(x) for x in input("Enter the list elements separated by space: ").split()] 9 | element_to_remove = int(input("Enter the element to remove: ")) 10 | 11 | new_list = remove_all_occurrences(lst, element_to_remove) 12 | 13 | print("List after removing all occurrences of", element_to_remove, ":", new_list) 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q08.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 8: Write a function that takes n as an input and creates a list of n lists such that ith list contains the first 3 | five multiples of i. 4 | ''' 5 | 6 | def create_multiples_list(n): 7 | result = [] 8 | for i in range(1, n+1): 9 | multiples = [i * j for j in range(1, 6)] 10 | result.append(multiples) 11 | return result 12 | 13 | n = int(input("Enter a number: ")) 14 | multiples_list = create_multiples_list(n) 15 | print(multiples_list) 16 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q11.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 11: Write a Python program to print M-by-N list in the tabular format. 3 | ''' 4 | 5 | def print_table(m, n): 6 | table = [[f"({i+1},{j+1})" for j in range(n)] for i in range(m)] 7 | 8 | for row in table: 9 | print("\t".join(str(cell) for cell in row)) 10 | 11 | m = int(input("Enter the number of rows (M): ")) 12 | n = int(input("Enter the number of columns (N): ")) 13 | print_table(m, n) 14 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q13.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 13: Write a Python function that sorts a list of tuples based on the second element of each tuple. 3 | ''' 4 | 5 | def sort_by_second_element(tuples): 6 | return sorted(tuples, key=lambda x: x[1]) 7 | 8 | # Example usage 9 | tuples = [(1, 5), (2, 2), (3, 8), (4, 1)] 10 | sorted_tuples = sort_by_second_element(tuples) 11 | print(sorted_tuples) 12 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q14.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 14: Write a Python program that generates a tuple where each element is the square of an integer from 1 3 | to 10. 4 | ''' 5 | 6 | squares_tuple = tuple(i**2 for i in range(1, 11)) 7 | print(squares_tuple) 8 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q18.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 18: Write a Python program to create a new list that contains the square of every element in a given list 3 | using list comprehension. 4 | ''' 5 | 6 | original_list = [1, 2, 3, 4, 5] 7 | squared_list = [x ** 2 for x in original_list] 8 | print(squared_list) 9 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 4/Q24.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 24. Given a list of tuples, remove all the tuples with length K, where K is user-defined. 3 | ''' 4 | 5 | def remove_tuples_of_length(lst, k): 6 | return [tup for tup in lst if len(tup) != k] 7 | 8 | tuples = [(1, 2), (3, 4), (5, 6, 7), (8, 9)] 9 | k = int(input("Enter the length K to remove tuples of that length: ")) 10 | filtered_tuples = remove_tuples_of_length(tuples, k) 11 | print("Filtered Tuples:", filtered_tuples) 12 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 5/Q03.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 3. Write a program to take a user-input dictionary and print the sum of the values. 3 | ''' 4 | 5 | user_dict = {} 6 | n = int(input("Enter number of items: ")) 7 | for _ in range(n): 8 | key = input("Enter key: ") 9 | value = int(input("Enter value: ")) 10 | user_dict[key] = value 11 | print(f"Sum of values: {sum(user_dict.values())}") 12 | 13 | ''' 14 | Output -> 15 | Enter number of items: 3 16 | Enter key: 0 17 | Enter value: 34 18 | Enter key: 2 19 | Enter value: 65 20 | Enter key: 1 21 | Enter value: 45 22 | Sum of values: 144 23 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 5/Q04.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 4. Make an English-to-French dictionary called e2f and print it. Here are your starter words: dog is 3 | chien, cat is chat, and walrus is morse. 4 | ''' 5 | 6 | e2f = {"dog": "chien", "cat": "chat", "walrus": "morse"} 7 | print(e2f) 8 | 9 | ''' 10 | Output -> 11 | {'dog': 'chien', 'cat': 'chat', 'walrus': 'morse'} 12 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 5/Q07.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 7. Use dictionary comprehension to create a dictionary of the numbers 1–5 mapped to their cubes. 3 | ''' 4 | 5 | cubes = {x: x**3 for x in range(1, 6)} 6 | print(cubes) 7 | 8 | ''' 9 | Output -> 10 | {1: 1, 2: 8, 3: 27, 4: 64, 5: 125} 11 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 5/Q09.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 9. Write a program to find the number of occurrences of each letter present in a given string., e.g., 3 | str=‘mississippi’⇒ {‘m’: 1, ‘i’: 4, ‘s’: 4, ‘p’: 2} 4 | ''' 5 | 6 | string = input("Enter a string: ") 7 | occurrences = {char: string.count(char) for char in string} 8 | print(occurrences) 9 | 10 | ''' 11 | Output -> 12 | Enter a string: Hello, Its DevSom404 13 | {'H': 1, 'e': 2, 'l': 2, 'o': 2, ',': 1, ' ': 2, 'I': 1, 't': 1, 's': 1, 'D': 1, 'v': 1, 'S': 1, 'm': 1, '4': 2, '0': 1} 14 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 5/Q10.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 10. Write a program to find the number of occurrences of each vowel present in a given string, and also 3 | print the vowels. 4 | ''' 5 | 6 | string = input("Enter a string: ").lower() 7 | vowels = "aeiou" 8 | occurrences = {vowel: string.count(vowel) for vowel in vowels if vowel in string} 9 | print("Vowels found:", occurrences.keys()) 10 | print("Occurrences:", occurrences) 11 | 12 | ''' 13 | Output -> 14 | Enter a string: Hello, It's DevSom404 15 | Vowels found: dict_keys(['e', 'i', 'o']) 16 | Occurrences: {'e': 2, 'i': 1, 'o': 2} 17 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 5/Q14.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Ques 14. Create a program that determines and displays the number of unique characters in a string entered by 3 | the user, e.g., Hello, World! has 10 unique characters, while zzz has only one unique character. Use 4 | a dictionary or set to solve this problem. 5 | ''' 6 | 7 | string = input("Enter a string: ") 8 | unique_chars = set(string) 9 | print("Number of unique characters:", len(unique_chars)) 10 | 11 | ''' 12 | Output -> 13 | Enter a string: Hello I am Somnath 14 | Number of unique characters: 12 15 | ''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q01.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array_ones = np.ones((2, 3)) 4 | print(array_ones) 5 | 6 | array_zeros = np.zeros((3, 3)) 7 | print(array_zeros) 8 | 9 | array_sevens = np.full((2, 5), 7) 10 | print(array_sevens) 11 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q02.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.arange(4).reshape(2, 2) 4 | print(array ** 3) 5 | print(array + 7) 6 | print(array * 2) 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q03.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array1 = np.arange(2, 19, 2).reshape(3, 3) 4 | array2 = np.arange(9, 0, -1).reshape(3, 3) 5 | result = array1 * array2 6 | print(result) 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q04.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.arange(1, 10).reshape(3, 3) 4 | array[[0, 1]] = array[[1, 0]] 5 | array[:, [0, 1]] = array[:, [1, 0]] 6 | print(array) 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q05.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.array([[2, 3, 5, 7, 11], 4 | [13, 17, 19, 23, 29]]) 5 | print(array) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q06.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = 2 ** np.arange(6).reshape(2, 3) 4 | print(array.flatten()) 5 | print(array.ravel()) 6 | print(array) 7 | 8 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q07.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.array([6, 9, 5, 1, 7, 5, 1, 0, 1, 5, 5, 0, 8, 9, 0, 7, 0, 7, 6, 5, 1, 1, 9, 5, 3, 8, 7, 9, 6, 3, 4, 5, 9, 7, 2, 7, 0, 2, 2, 6]) 4 | values, counts = np.unique(array, return_counts=True) 5 | print(values[np.argmax(counts)]) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q08.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.linspace(1.1, 6.6, 6).reshape(2, 3).astype(int) 4 | print(array) 5 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q09.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | def format_2d_array(arr): 4 | return "\n".join(["".join(f"{num:>{len(str(np.max(arr)))}}" for num in row) for row in arr]) 5 | 6 | array = np.array([[123, 4567], [89, 10]]) 7 | print(format_2d_array(array)) 8 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q10.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.arange(1, 16).reshape(3, 5) 4 | print(array[0]) 5 | print(array[:, 4]) 6 | print(array[[0, 1]]) 7 | print(array[:, 2:4]) 8 | print(array[1:, 1:4]) 9 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q11.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array1 = np.array([[0, 1], [2, 3]]) 4 | array2 = np.array([[4, 5], [6, 7]]) 5 | array3 = np.vstack((array1, array2)) 6 | print(array3) 7 | array4 = np.hstack((array1, array2)) 8 | print(array4) 9 | array5 = np.vstack((array4, array4)) 10 | print(array5) 11 | array6 = np.hstack((array3, array3)) 12 | print(array6) 13 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q12.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array1 = np.array([[0, 1], [2, 3]]) 4 | array2 = np.array([[4, 5], [6, 7]]) 5 | array3 = np.concatenate((array1, array2), axis=0) 6 | print(array3) 7 | array4 = np.concatenate((array1, array2), axis=1) 8 | print(array4) 9 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q13.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | pattern = np.tile([['-', '*'], ['*', '-']], (4, 4)) 4 | print(pattern) 5 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q14.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.random.randint(0, 100, (5, 5)) 4 | counts = np.bincount(array.flatten()) 5 | print(counts) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q15.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | def median(arr): 4 | return np.median(arr) 5 | 6 | def mode(arr): 7 | values, counts = np.unique(arr, return_counts=True) 8 | return values[np.argmax(counts)] 9 | 10 | array1 = np.random.randint(0, 10, (3, 3)) 11 | print(median(array1), mode(array1)) 12 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q16.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.random.rand(9, 8, 2) 4 | sliced_array = array[:5, :5, :] 5 | print(sliced_array) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q17.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | array = np.random.rand(4, 4) 4 | sorted_array = np.sort(array, axis=None).reshape(4, 4) 5 | print(sorted_array) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q18.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | 3 | df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}) 4 | series = df['A'] 5 | print(series) 6 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q19.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | 3 | s1 = pd.Series([1, 2, 3, 4, 2]) 4 | s2 = pd.Series([3, 4, 5, 6]) 5 | result = s1[~s1.isin(s2)] 6 | print(result) 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q20.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | 3 | arr = np.array([1, 1, 3, 7, 88, 12, 88, 23, 3, 1, 9, 0]) 4 | print(np.where(arr == arr.min())[0][0], np.where(arr == arr.max())[0][0]) 5 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q21.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | 3 | data = ['Cry', 'Apple', 'Orange', 'Sky', 'Banana'] 4 | series = pd.Series(data * 2) 5 | unique_series = series.drop_duplicates().reset_index(drop=True) 6 | print(unique_series) 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 6/Q22.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | import numpy as np 3 | 4 | s1 = pd.Series([7, 11, 13, 17]) 5 | print(s1) 6 | s2 = pd.Series([100.0] * 5) 7 | print(s2) 8 | s3 = pd.Series(np.random.randint(0, 101, 20)) 9 | print(s3.describe()) 10 | temperatures = pd.Series([98.6, 98.9, 100.2, 97.9], index=['Julie', 'Charlie', 'Sam', 'Andrea']) 11 | print(temperatures) 12 | data = {'Julie': 98.6, 'Charlie': 98.9, 'Sam': 100.2, 'Andrea': 97.9} 13 | s4 = pd.Series(data) 14 | print(s4) 15 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q01.py: -------------------------------------------------------------------------------- 1 | '''Write a function that takes a string as a parameter and returns a string with every successive repetitive 2 | character replaced with a star(*). For example, ’balloon’ is returned as ’bal*o*n’.''' 3 | 4 | def replace_repeats(s): 5 | return ''.join(s[i] if i == 0 or s[i] != s[i - 1] else '*' for i in range(len(s))) 6 | 7 | print(replace_repeats("balloon")) # Output: bal*o*n -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q02.py: -------------------------------------------------------------------------------- 1 | ''' 2. Write a function that takes two strings and returns True if they are anagrams and False otherwise. A 2 | pair of strings is anagram if the letters in one word can be arranged to form the second one''' 3 | 4 | def are_anagrams(s1, s2): 5 | return sorted(s1) == sorted(s2) 6 | 7 | print(are_anagrams("listen", "silent")) # Output: True 8 | print(are_anagrams("hello", "world")) # Output: False -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q03.py: -------------------------------------------------------------------------------- 1 | ''' Write a function that takes a sentence as an input parameter and displays the number of words in the 2 | sentence.''' 3 | 4 | def count_words(sentence): 5 | return len(sentence.split()) 6 | 7 | print(count_words("This is a sample sentence.")) # Output: 5 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q04.py: -------------------------------------------------------------------------------- 1 | '''Create a program to count the number of occurrences of a specific character in a string.''' 2 | 3 | def count_char(s, c): 4 | return s.count(c) 5 | 6 | print(count_char("hello world", "o")) # Output: 2 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q05.py: -------------------------------------------------------------------------------- 1 | ''' 5. Write a Python program to find the length of the longest word in a sentence.''' 2 | 3 | def longest_word_length(sentence): 4 | return max(len(word) for word in sentence.split()) 5 | 6 | print(longest_word_length("Python programming is amazing")) # Output: 11 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q06.py: -------------------------------------------------------------------------------- 1 | ''' 6. Write a Python function that takes a string and returns a new string where every vowel in the input 2 | string is replaced by the next vowel in sequence (a → e, e → i, i → o, o → u, u → a).''' 3 | 4 | def replace_vowels(s): 5 | vowels = "aeiou" 6 | return ''.join(vowels[(vowels.index(c) + 1) % 5] if c in vowels else c for c in s) 7 | 8 | print(replace_vowels("hello world")) # Output: hilli wurld -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q07.py: -------------------------------------------------------------------------------- 1 | '''7. Write a Python program that checks if a string is a ”rotational palindrome.” A rotational palindrome 2 | is a string that can be rearranged cyclically to form a palindrome.''' 3 | 4 | def is_rotational_palindrome(s): 5 | def is_palindrome(st): 6 | return st == st[::-1] 7 | return any(is_palindrome(s[i:] + s[:i]) for i in range(len(s))) 8 | 9 | print(is_rotational_palindrome("aab")) # Output: True 10 | print(is_rotational_palindrome("abc")) # Output: False -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q08.py: -------------------------------------------------------------------------------- 1 | ''' 8. Implement a program to check if a string is a valid URL.''' 2 | 3 | import re 4 | 5 | def is_valid_url(url): 6 | pattern = r"\w+://\w+.\w{3}" 7 | print(pattern) 8 | return bool(re.match(pattern, url)) 9 | 10 | print(is_valid_url("https://example.com")) # Output: True 11 | print(is_valid_url("invalid_url")) # Output: False -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q09.py: -------------------------------------------------------------------------------- 1 | '''9. Create a program to find the number of vowels and consonants in a string.''' 2 | 3 | def count_vowels_consonants(s): 4 | vowels = "aeiouAEIOU" 5 | vowels_count = sum(1 for char in s if char in vowels) 6 | consonants_count = sum(1 for char in s if char.isalpha() and char not in vowels) 7 | return vowels_count, consonants_count 8 | 9 | print(count_vowels_consonants("Hello World")) # Output: (3, 7) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q10.py: -------------------------------------------------------------------------------- 1 | '''10. Write a script that reads a line of text as a string, tokenizes the string with the split method and outputs 2 | the tokens in reverse order. Use space characters as delimiters.''' 3 | 4 | def reverse_tokens(text): 5 | tokens = text.split() 6 | return ' '.join(tokens[::-1]) 7 | 8 | print(reverse_tokens("This is a sample sentence")) # Output: sentence sample a is This -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q11.py: -------------------------------------------------------------------------------- 1 | '''11. Write a script that reads a line of text, tokenizes the line using space characters as delimiters and 2 | outputs only those words beginning with the letter ’b’ and ending with the letter ’d’.''' 3 | 4 | def words_start_end_b_d(text): 5 | tokens = text.split() 6 | return [word for word in tokens if word.startswith('b') and word.endswith('d')] 7 | 8 | print(words_start_end_b_d("bored bird bold brand build bad")) # Output: ['bored', 'bold', 'bad'] -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q13.py: -------------------------------------------------------------------------------- 1 | ''' 13. Check whether a sentence contains more than one space between words. If so, remove the extra 2 | spaces and display the results. For example, ’Hello 3 | World’ should become ’Hello World’.''' 4 | 5 | def remove_extra_spaces(sentence): 6 | return ' '.join(sentence.split()) 7 | 8 | print(remove_extra_spaces("Hello World")) # Output: Hello World -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q14.py: -------------------------------------------------------------------------------- 1 | ''' 14. Write a Python program to reverse the middle half of characters in a string.''' 2 | 3 | def reverse_middle_half(s): 4 | mid = len(s) // 2 5 | half = s[mid-1:mid+2] # Middle half (for odd-length strings) 6 | return s[:mid-1] + half[::-1] + s[mid+2:] 7 | 8 | print(reverse_middle_half("abcdefg")) # Output: abdcefg -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q15.py: -------------------------------------------------------------------------------- 1 | '''15. Write a Python program to print the substrings of a character having a particular frequency. For 2 | ’aabbbccccddddd’, you should print ’bbb’ if particular frequency is 3.''' 3 | 4 | def print_substrings_by_frequency(s, freq): 5 | for i in range(len(s)): 6 | substring = s[i:i+freq] 7 | if len(substring) == freq and len(set(substring)) == 1: 8 | print(substring) 9 | 10 | print_substrings_by_frequency("aabbbccccddddd", 3) # Output: bbb -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q16.py: -------------------------------------------------------------------------------- 1 | '''16. Write a code to extract unique characters of a string in sorted order.''' 2 | 3 | def unique_sorted_chars(s): 4 | return ''.join(sorted(set(s))) 5 | 6 | print(unique_sorted_chars("aabbbccccddddd")) # Output: abcd -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q22.py: -------------------------------------------------------------------------------- 1 | '''22. Write a python program to check if a string is symmetric or asymmetric.''' 2 | 3 | def check_symmetric(s): 4 | return s == s[::-1] 5 | 6 | string = input("Enter a string: ") 7 | if check_symmetric(string): 8 | print("Symmetric") 9 | else: 10 | print("Asymmetric") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 7/Q23.py: -------------------------------------------------------------------------------- 1 | ''' 23. Given a string s and index i, write a python program to delete the i-th value from s.''' 2 | 3 | def delete_char_at_index(s, i): 4 | return s[:i] + s[i+1:] 5 | 6 | string = input("Enter a string: ") 7 | index = int(input("Enter the index to delete: ")) 8 | print(delete_char_at_index(string, index)) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Output.txt: -------------------------------------------------------------------------------- 1 | spam@spammer.com 2 | info@spammer.com 3 | itssomnath@gmail.com 4 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q01.py: -------------------------------------------------------------------------------- 1 | ''' How does the read method differ from the readlines method?''' 2 | 3 | '''read(): Reads the entire file as a single string. 4 | readlines(): Reads the file line by line and returns a list of strings, where each string is a line from the file.''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q02.py: -------------------------------------------------------------------------------- 1 | '''What is the purpose of JSON serialization?''' 2 | 3 | '''The purpose of JSON serialization is to convert Python objects (e.g., dictionaries, lists) into a JSON string format so they can be easily stored, transmitted, or shared 4 | between systems or applications, especially over the web''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q03.py: -------------------------------------------------------------------------------- 1 | '''Why is the pickle module considered a security risk in some cases?''' 2 | 3 | 4 | '''The pickle module is considered a security risk because it can execute arbitrary code during deserialization. If a maliciously crafted pickle file is loaded, it could run 5 | harmful code on the system, leading to potential security vulnerabilities.''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q04.py: -------------------------------------------------------------------------------- 1 | '''What is the significance of file modes ('r', 'w', 'a', 'b') in Python?''' 2 | 3 | 4 | ''' 5 | File modes in Python determine how a file is opened and used: 6 | 7 | -->'r' (read): Opens the file for reading. The file must exist. 8 | -->'w' (write): Opens the file for writing, truncating it if it exists or creating a new file. 9 | -->'a' (append): Opens the file for writing, appending to the end if it exists or creating a new file. 10 | -->'b' (binary): Used with other modes (e.g., 'rb', 'wb') to read or write binary data instead of text.''' -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q05.py: -------------------------------------------------------------------------------- 1 | ''' write code that reads the grades from the grades.txt file. Display the individual grades and their total, 2 | count, and average.''' 3 | 4 | 5 | with open('grades.txt', 'r') as file: 6 | grades = [int(line.strip()) for line in file] 7 | 8 | print("Individual Grades:") 9 | for grade in grades: 10 | print(grade) 11 | 12 | total = sum(grades) 13 | count = len(grades) 14 | average = total / count if count > 0 else 0 15 | 16 | print(f"\nTotal: {total}") 17 | print(f"Count: {count}") 18 | print(f"Average: {average:.2f}") -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q09.py: -------------------------------------------------------------------------------- 1 | ''' 9. Solve the problem of dividing two numbers, handling invalid inputs like zero or non-numeric values.''' 2 | 3 | def divide_numbers(): 4 | try: 5 | num1 = float(input("Enter the first number: ")) 6 | num2 = float(input("Enter the second number: ")) 7 | result = num1 / num2 8 | print(f"Result: {result}") 9 | except ValueError: 10 | print("Error: Invalid input. Please enter numeric values.") 11 | except ZeroDivisionError: 12 | print("Error: Division by zero is not allowed.") 13 | 14 | divide_numbers() -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/Q13.py: -------------------------------------------------------------------------------- 1 | ''' 13. Identify two exceptions that may be raised while executing the following statement: 2 | result = a + b''' 3 | 4 | a = "hello" 5 | b = 5 6 | result = a + b # This will raise a TypeError 7 | 8 | result = a + b # This will raise a NameError if a and b are not defined 9 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Alice", "age": 30, "skills": ["Python", "Data Science"] 3 | } -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/demo.txt: -------------------------------------------------------------------------------- 1 | I am learning Python Language. 2 | My name is Somnath. 3 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/emails.txt: -------------------------------------------------------------------------------- 1 | info@spammer.com 2 | spam@spammer.com 3 | itssomnath@gmail.com -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/file1.txt: -------------------------------------------------------------------------------- 1 | Hello, This is DevSom and I am doing File Handling in Python. 2 | I am trying to read a file and write it to another file. 3 | I have a file named "file1.txt" and I want to read it. -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/grades.csv: -------------------------------------------------------------------------------- 1 | Somnath,Shaw,78,87,58 2 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/grades.txt: -------------------------------------------------------------------------------- 1 | 87 2 | 56 3 | 98 4 | 65 5 | 54 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/outputs.txt: -------------------------------------------------------------------------------- 1 | Hello I am DevSom -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/price_per_unit.txt: -------------------------------------------------------------------------------- 1 | 0.09259259259259259 2 | 0.125 3 | 0.06896551724137931 4 | 0.24242424242424243 5 | 1.0 6 | 0.06976744186046512 7 | -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/prices.txt: -------------------------------------------------------------------------------- 1 | 5 2 | 4 3 | 6 4 | 8 5 | 12 6 | 3 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/sample.csv: -------------------------------------------------------------------------------- 1 | Name,Age,Email 2 | Alice,30,alice@example.com 3 | Bob,25,bob@example.com 4 | Charlie,35,charlie@example.com -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/sample.txt: -------------------------------------------------------------------------------- 1 | Python is a versatile programming language. 2 | It is widely used in data science, web development, and automation. -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/test.py: -------------------------------------------------------------------------------- 1 | f = open("demo.txt", "r") 2 | data = f.read() 3 | print(data) 4 | 5 | line1 = f.readline() 6 | print(line1) 7 | line2 = f.readline() 8 | print(line2) -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/titanic.csv: -------------------------------------------------------------------------------- 1 | PassengerId,Survived,Pclass,Name,Sex,Age,Fare 2 | 1,1,1,"Allen, Miss. Elisabeth",female,29,211.3375 3 | 2,0,3,"Moran, Mr. James",male,25,7.925 4 | 3,1,2,"Brown, Mrs. Mary",female,35,51.8625 5 | 4,0,3,"Smith, Mr. John",male,40,8.05 6 | 5,1,1,"Clark, Miss. Martha",female,18,81.8583 7 | 6,0,3,"Williams, Mr. Charles",male,12,10.5 8 | 7,1,2,"Moore, Miss. Ann",female,16,30.0708 9 | 8,0,3,"Wilson, Mr. Henry",male,19,7.75 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/titanic1.csv: -------------------------------------------------------------------------------- 1 | PassengerId,Survived,Pclass,Name,Sex,Age 2 | 1,1,1,"Allen, Miss. Elisabeth",female,29 3 | 2,0,3,"Moran, Mr. James",male,25 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/titanic2.csv: -------------------------------------------------------------------------------- 1 | PassengerId,Survived,Pclass,Name,Sex,Age 2 | 3,1,2,”Brown, Mrs. Mary”,female,35 3 | 4,0,3,”Smith, Mr. John”,male,40 -------------------------------------------------------------------------------- /5. Fifth_Semester/PYTHON/Minor Assignment 8/weights.txt: -------------------------------------------------------------------------------- 1 | 54 2 | 32 3 | 87 4 | 33 5 | 12 6 | 43 -------------------------------------------------------------------------------- /6. Sixth_Semester/PYTHON/Major Assignment 01/Output.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SOMNATH0904/ITER-LAB-Assignments/7df521eb99aaa5a035012f9e0c07c1da43fd4aa9/6. Sixth_Semester/PYTHON/Major Assignment 01/Output.docx --------------------------------------------------------------------------------