├── Python ├── Farewell │ ├── _init_.py │ ├── farewell.py │ └── greet.py ├── Welcome Message │ └── Welcome.py ├── Alien_s Visit │ └── alien.py ├── Read CSV file │ └── read_csv.py ├── Factorial of a number │ └── factorial.py ├── Lucky Number │ └── lucky.py ├── Filter countries Sachin has played against │ └── FilterCountries.py ├── Palindrome │ └── palindrome.py ├── Pythagoras_ Theorem │ └── hypotenuse.py ├── Time Table Planning │ ├── time_table.py │ └── Dates.py ├── Store Student Data │ └── sample.py ├── Arrange Names │ └── names.py ├── Introducing Artificial Intelligence System │ └── AI.py ├── Calculate year-wise total number of runs of Sachin │ └── AddColumns.py ├── News Report Generation │ └── news_report.py ├── Password Protection │ └── password.py ├── Stationary Shop │ └── Stationary.py ├── Non-Working Doctors │ └── doctors.py ├── Create Quarters │ └── quarters.py ├── AEIMA’s Online Courses │ └── courses.py ├── Pass or Fail │ └── exam.py ├── BMI Calculator │ └── bmi_calculator.py ├── Armstrong Number │ └── armstrong.py ├── Rhythm Composer │ └── rhythm.py ├── Student Information │ └── employee.py ├── Vehicle Premium │ └── vehicle.py ├── Employee Salary │ └── employee.py └── Search Student Data │ └── update_dictionary.py ├── Maven ├── MavenAppCommand │ ├── CommandInterface │ └── MavenAppCommand │ │ └── src │ │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── build │ │ │ └── maven │ │ │ └── java │ │ │ └── App.java │ │ └── test │ │ └── java │ │ └── com │ │ └── build │ │ └── maven │ │ └── java │ │ └── AppTest.java ├── MavenTestApp │ └── MavenTestApp │ │ └── src │ │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── build │ │ │ └── maven │ │ │ └── java │ │ │ └── App.java │ │ └── test │ │ └── java │ │ └── com │ │ └── build │ │ └── maven │ │ └── java │ │ └── AppTest.java ├── MavenPlugin │ └── MavenCompilerPlugin │ │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── build │ │ │ └── maven │ │ │ └── java │ │ │ └── App.java │ │ └── pom.xml └── MavenJavaApp │ └── MavenJavaApp │ ├── src │ └── main │ │ └── java │ │ └── com │ │ └── build │ │ └── maven │ │ └── java │ │ └── App.java │ └── pom.xml ├── .vscode └── settings.json ├── Spring MVC ├── Holiday Party │ └── HolidayParty │ │ └── WebContent │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ └── views │ │ │ └── thankyou.jsp │ │ └── index.jsp ├── ZEE-ZEE Web Portal │ └── LoginApp │ │ ├── WebContent │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ │ ├── views │ │ │ │ ├── invalid.jsp │ │ │ │ └── success.jsp │ │ │ └── web.xml │ │ └── index.jsp │ │ └── src │ │ └── com │ │ ├── service │ │ └── LoginService.java │ │ └── bean │ │ └── LoginBean.java └── Online Help Services │ └── HelpServices │ ├── WebContent │ ├── META-INF │ │ └── MANIFEST.MF │ ├── WEB-INF │ │ ├── views │ │ │ └── helpdesk.jsp │ │ ├── web.xml │ │ └── dispatcher-servlet.xml │ └── index.jsp │ └── src │ └── com │ ├── model │ └── HelperBean.java │ └── service │ └── HelperService.java ├── Java ├── Perform Calculation │ └── Calculate.java ├── Vehicle-Loan-Insurance - Use Interface │ ├── Loan.java │ ├── Insurance.java │ └── Main.java ├── Area Calculation - abstract class │ ├── Shape.java │ ├── Triangle.java │ ├── Circle.java │ └── Rectangle.java ├── Check Number Type │ ├── NumberType.java │ └── NumberTypeUtility.java ├── Validate Name │ └── Validate.java ├── Register a Candidate - User defined Exception(with throw and throws) │ ├── InvalidSalaryException.java │ └── Candidate.java ├── Employee - net salary │ └── JunitTest │ │ └── src │ │ ├── EmployeeMain.java │ │ ├── EmployeeTest.java │ │ └── Employee.java ├── Get Text and Display Welcome Message │ ├── DisplayText.java │ └── Main.java ├── Celcius to Farenheit Conversion │ └── CelsiusConversion.java ├── Student and Department Detail │ ├── Department.java │ └── Student.java ├── Employee Loan Eligibility - Polymorphism │ ├── Loan.java │ ├── Main.java │ └── PermanentEmployee.java ├── Gold Coin Count │ └── Coins.java ├── AccountDetails │ └── Account │ │ └── src │ │ ├── AccountMain.java │ │ └── Account.java ├── Add Flight using JDBC │ ├── database.properties │ ├── Main.java │ └── DB.java ├── Display Characters │ └── AsciValue.java ├── Contact Details of Hosteller │ ├── Hosteller.java │ └── Student.java ├── Delete flight Using Flight ID │ ├── database.properties │ ├── Main.java │ └── FlightManagementSystem.java ├── Pencil Count │ └── Count.java ├── Retrieve Flight Using Flight ID │ ├── database.properties │ ├── Main.java │ └── FlightManagementSystem.java ├── Update Flight Fare for a Flight │ ├── database.properties │ └── Main.java ├── Retrieve Flights Based on Source and Destination │ ├── database.properties │ └── Main.java ├── Convert Numbers into Months │ └── NumToMonth.java ├── PAN Card Validation │ ├── PanCard.java │ └── UserMain.java ├── Volume calculator- Over Loading │ └── VolumeCalculator.java ├── Employee ID Validation │ └── UserMain.java ├── Income Calulation │ └── IncomeCal.java ├── Length of String │ └── FindLength.java ├── Travel Details │ └── Person.java ├── Repetition of a Number │ └── NumberRepetition.java ├── PF and Salary Calculation │ ├── Employee.java │ └── PermanentEmployee.java ├── Count the number of characters │ └── Count.java ├── Book Detail │ ├── Book.java │ └── TestBook.java ├── Password Generation │ └── Main.java ├── Number Palindrome │ └── Palindrome.java ├── Power of a Number │ └── Power.java ├── Find the highest mark │ └── Highestmark.java ├── Find and Replace │ └── ReplaceWord.java ├── Reverse The Number │ └── ReverseNumber.java ├── String - Find and replace the character (First occurrence) │ └── FirstOccurence.java ├── String Concatenation │ └── Authority.java ├── Lucky Number │ └── LuckyNum.java ├── Find Season │ └── Season.java ├── Member Manipulation │ ├── Library.java │ └── Member.java ├── Triangle Validation │ └── Triangle.java ├── Number of New Words │ └── UniqueWords.java ├── Bill Generation │ └── SnacksDetails.java ├── Palindrome │ └── Palindrome.java ├── InitCap │ └── InitCap.java ├── Book Manipulation │ └── Book.java ├── Factors of a Number │ └── FindFactor.java ├── Compute Gain Percentage │ └── Gain.java ├── Increment Calculation │ └── IncrementCalculation.java ├── Employee Salary Calculation │ └── Employee.java ├── Numerology │ └── Numerology.java ├── PassengerDetails │ └── Main.java ├── Divide two numbers - Use finally │ └── Division.java ├── BankAccountDetails │ └── Account.java └── Sort the first and second half of an array │ └── ArraySort.java ├── Web Technology ├── CSS │ └── CSS Effect │ │ ├── apple.jpg │ │ ├── mango.jpg │ │ └── imgeffect.html ├── Bootstrap │ ├── Page Layout │ │ └── img3.png │ ├── About TrinQet │ │ └── office.jpg │ └── Responsive Web Pages │ │ └── nature.jpg ├── jQuery │ ├── Drag an Object │ │ ├── fish.jpg │ │ └── drag.html │ ├── Three Divisions │ │ ├── divisions.js │ │ └── divisions.html │ ├── Customer Data │ │ └── customer.js │ ├── Window Resize │ │ └── window.html │ └── Check Box Using JQuery │ │ └── jqcheckbox.html ├── HTML │ ├── Simple CALCULATOR │ │ ├── calc.jpg │ │ ├── reset.jpg │ │ ├── calculator.jpg │ │ └── Calculator.html │ └── ZEN Bank - Login │ │ └── login.html └── React │ ├── Apply External CSS │ ├── Article.css │ └── index.js │ ├── Async Request │ ├── articles.json │ ├── index.js │ └── Async.js │ ├── Search Functionality │ └── index.js │ ├── Working With State │ ├── index.js │ └── Counter.js │ ├── Create Parent and Child Component │ ├── index.js │ └── Welcome.js │ ├── Create a Welcome Component │ ├── index.js │ └── Welcome.js │ ├── Working With Keys and Styles │ └── index.js │ ├── Implement PropTypes │ ├── index.js │ └── Display.js │ └── Working With Props │ ├── index.js │ └── Stock.js ├── JSP and Servlets ├── Greeting App │ └── GreetingWeb │ │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ │ ├── target │ │ └── classes │ │ │ └── myfiles │ │ │ └── GreetingServlet.class │ │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── index.jsp │ │ │ └── WEB-INF │ │ │ └── web.xml │ │ └── .project ├── Login Scenario │ └── LoginScenario │ │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ │ ├── target │ │ └── classes │ │ │ └── myfiles │ │ │ └── LoginServlet.class │ │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── false.jsp │ │ │ ├── true.jsp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ └── Login.jsp │ │ └── .project ├── Shopping - HTTP Session │ └── Shopping │ │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ │ ├── target │ │ └── classes │ │ │ └── myfiles │ │ │ └── CartServlet.class │ │ ├── src │ │ └── main │ │ │ └── webapp │ │ │ ├── Catalog.jsp │ │ │ └── Logout.jsp │ │ └── .project ├── Price List - with Model class │ └── PriceList │ │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ │ ├── target │ │ └── classes │ │ │ └── myfiles │ │ │ ├── Inventory.class │ │ │ └── FruitServlet.class │ │ ├── src │ │ └── main │ │ │ ├── webapp │ │ │ └── WEB-INF │ │ │ │ └── web.xml │ │ │ └── java │ │ │ └── myfiles │ │ │ └── Inventory.java │ │ └── .project └── Employee Registration - Use Bean │ └── Employee │ ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs │ ├── target │ └── classes │ │ └── myfiles │ │ └── Employee.class │ ├── src │ └── main │ │ ├── webapp │ │ ├── WEB-INF │ │ │ └── web.xml │ │ ├── Registration.jsp │ │ └── userdetails.jsp │ │ └── java │ │ └── myfiles │ │ └── Employee.java │ └── .project ├── Accenture Mock Test └── FortiMilligrade (1) │ └── FortiMilligrade │ ├── lib │ ├── asm-3.2.jar │ ├── cglib-2.2.jar │ ├── commons-pool-1.6.jar │ ├── aspectjweaver-1.6.11.jar │ ├── commons-logging-1.1.1.jar │ ├── com.springsource.org.aopalliance-1.0.0.jar │ ├── org.springframework.aop-3.1.2.RELEASE.jar │ ├── org.springframework.asm-3.1.2.release.jar │ ├── org.springframework.beans-3.1.2.RELEASE.jar │ ├── org.springframework.core-3.1.2.RELEASE.jar │ ├── org.springframework.jdbc-3.0.3.RELEASE.jar │ ├── org.springframework.context-3.1.2.RELEASE.jar │ ├── org.springframework.expression-3.1.2.RELEASE.jar │ ├── org.springframework.transaction-3.1.2.RELEASE.jar │ └── org.springframework.context.support-3.1.2.RELEASE.jar │ ├── bin │ └── com │ │ └── spring │ │ ├── bo │ │ └── PlayerBO.class │ │ ├── main │ │ └── Driver.class │ │ ├── model │ │ └── Player.class │ │ ├── service │ │ └── PlayerService.class │ │ └── config │ │ └── ApplicationConfig.class │ ├── src │ └── com │ │ └── spring │ │ ├── config │ │ └── ApplicationConfig.java │ │ ├── bo │ │ └── PlayerBO.java │ │ └── model │ │ └── Player.java │ ├── .settings │ └── org.eclipse.jdt.core.prefs │ └── .project ├── Hibernate ├── Component Mapping │ └── ComponentMapping │ │ └── src │ │ ├── TestApplication.java │ │ ├── com │ │ ├── dao │ │ │ └── CustomerDAO.java │ │ └── bean │ │ │ ├── Address.java │ │ │ └── Customer.java │ │ └── hibernate.cfg.xml ├── View Customer Details │ └── Hibernate_Select │ │ └── src │ │ ├── com │ │ ├── dao │ │ │ └── CustomerDAO.java │ │ └── bean │ │ │ └── Customer.java │ │ ├── TestApplication.java │ │ └── hibernate.cfg.xml ├── Digitoonz Animations - Report │ └── ManytoMany │ │ └── src │ │ ├── TestApplication.java │ │ └── com │ │ ├── dao │ │ └── CricketDAO.java │ │ └── bean │ │ └── Player.java ├── Object Persistence │ └── CodeSkeleton_ObjectPersistence │ │ └── src │ │ ├── com │ │ └── dao │ │ │ └── CustomerDAO.java │ │ ├── TestApplication.java │ │ └── hibernate.cfg.xml ├── MaxiMax Store │ └── Onetoone │ │ └── src │ │ ├── com │ │ ├── dao │ │ │ └── CustomerDAO.java │ │ └── bean │ │ │ └── BonusCard.java │ │ ├── TestApplication.java │ │ └── hibernate.cfg.xml ├── Digitoonz Animations │ └── ManytoMany │ │ └── src │ │ ├── TestApplication.java │ │ ├── com │ │ ├── bean │ │ │ └── Player.java │ │ └── dao │ │ │ └── CricketDAO.java │ │ └── hibernate.cfg.xml ├── Update phone no │ └── Hibernate_update │ │ └── src │ │ ├── com │ │ └── dao │ │ │ └── CustomerDAO.java │ │ ├── TestApplication.java │ │ └── hibernate.cfg.xml └── Country - State(OneToMany Bi-Directional) │ └── CountryState │ └── src │ ├── hibernate.cfg.xml │ └── com │ └── bean │ └── State.java ├── Selenium ├── Object Identification by id │ └── ShopifyTest │ │ ├── testng.xml │ │ └── src │ │ └── com │ │ └── selenium │ │ └── pages │ │ └── UserRegistration.java ├── Object Identification by name │ └── ShopifyTest │ │ ├── testng.xml │ │ └── src │ │ └── com │ │ └── selenium │ │ └── pages │ │ └── UserRegistration.java ├── Logo Identification by Absolute xPath │ └── ShopifyTest │ │ ├── testng.xml │ │ └── src │ │ └── com │ │ └── selenium │ │ └── pages │ │ └── UserRegistration.java ├── Object Identification by cssSelector │ └── ShopifyTest │ │ ├── testng.xml │ │ └── src │ │ └── com │ │ └── selenium │ │ └── pages │ │ └── UserRegistration.java ├── Object Identification by Absolute xPath │ └── ShopifyTest │ │ ├── testng.xml │ │ └── src │ │ └── com │ │ └── selenium │ │ └── pages │ │ └── UserRegistration.java └── Object Identification by Relative xPath │ └── ShopifyTest │ ├── testng.xml │ └── src │ └── com │ └── selenium │ └── pages │ └── UserRegistration.java ├── C# ├── Reverse the sentence │ └── Program.cs ├── StringConcatenate │ └── Program.cs ├── Implement Predicate Delegate │ └── Employee.cs ├── Publisher Subscriber Model │ ├── DelegateDriver.cs │ ├── Publisher.cs │ ├── Subscriber1.cs │ └── Subscriber2.cs ├── Check Vowel │ └── Program.cs ├── RectangularArray │ └── Program.cs ├── OpenableInterface │ └── OpenableInterface.cs ├── Validate Spelling Correctness │ └── Program.cs ├── Implement Func Delegate │ └── Employee.cs ├── Fruit list - ArrayList │ └── Program.cs └── BooleanResult │ └── Program.cs ├── Spring Core ├── Autowiring │ └── Autowiring │ │ └── src │ │ └── com │ │ └── spring │ │ └── app │ │ ├── ApplicationConfig.java │ │ ├── Passport.java │ │ └── Employee.java ├── Annotation │ └── Annotation │ │ └── src │ │ └── com │ │ └── spring │ │ └── app │ │ └── ApplicationConfig.java ├── Constructor Injection │ └── ConstructorInjection │ │ └── src │ │ ├── beans.xml │ │ └── com │ │ └── spring │ │ └── app │ │ └── Customer.java ├── XML Configuration │ └── XMLConfiguration │ │ └── src │ │ └── beans.xml ├── Currency Converter-XML │ └── Currency │ │ └── src │ │ ├── com │ │ └── spring │ │ │ └── app │ │ │ ├── Driver.java │ │ │ └── CurrencyConverter.java │ │ └── beans.xml └── Online Shop │ └── OnlineShop │ └── src │ ├── beans.xml │ └── com │ └── spring │ └── app │ ├── OnlineShop.java │ └── Driver.java ├── README.md └── XML and JSON ├── Generate XSD 4 └── employee.xsd ├── Generate XSD For Breakfast Menu └── food.xsd ├── Generate XSD For Mobile Store └── mobile.xsd └── Generate XSD 2 └── hotels.xsd /Python/Farewell/_init_.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Maven/MavenAppCommand/CommandInterface: -------------------------------------------------------------------------------- 1 | mvn clean package -------------------------------------------------------------------------------- /Python/Welcome Message/Welcome.py: -------------------------------------------------------------------------------- 1 | print ("Welcome to Data Science Course!") -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.pythonPath": "C:\\Packages\\Python\\python.exe" 3 | } -------------------------------------------------------------------------------- /Python/Farewell/farewell.py: -------------------------------------------------------------------------------- 1 | import greet 2 | name=input("Enter the senior's name: ") 3 | greet.greet(name) -------------------------------------------------------------------------------- /Python/Alien_s Visit/alien.py: -------------------------------------------------------------------------------- 1 | a = input("Enter the name:") 2 | print ("Hello "+a+"! Welcome to our planet Earth.") -------------------------------------------------------------------------------- /Spring MVC/Holiday Party/HolidayParty/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Java/Perform Calculation/Calculate.java: -------------------------------------------------------------------------------- 1 | public interface Calculate 2 | { 3 | float performCalculation(int a,int b); 4 | } -------------------------------------------------------------------------------- /Java/Vehicle-Loan-Insurance - Use Interface/Loan.java: -------------------------------------------------------------------------------- 1 | public interface Loan{ 2 | public abstract double issueLoan(); 3 | } -------------------------------------------------------------------------------- /Spring MVC/Online Help Services/HelpServices/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Java/Area Calculation - abstract class/Shape.java: -------------------------------------------------------------------------------- 1 | abstract public class Shape{ 2 | abstract public double calculateArea(); 3 | } -------------------------------------------------------------------------------- /Java/Vehicle-Loan-Insurance - Use Interface/Insurance.java: -------------------------------------------------------------------------------- 1 | public interface Insurance{ 2 | public abstract double takeInsurance(); 3 | 4 | } -------------------------------------------------------------------------------- /Web Technology/CSS/CSS Effect/apple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/CSS/CSS Effect/apple.jpg -------------------------------------------------------------------------------- /Web Technology/CSS/CSS Effect/mango.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/CSS/CSS Effect/mango.jpg -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Web Technology/Bootstrap/Page Layout/img3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/Bootstrap/Page Layout/img3.png -------------------------------------------------------------------------------- /Web Technology/jQuery/Drag an Object/fish.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/jQuery/Drag an Object/fish.jpg -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Web Technology/HTML/Simple CALCULATOR/calc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/HTML/Simple CALCULATOR/calc.jpg -------------------------------------------------------------------------------- /Web Technology/HTML/Simple CALCULATOR/reset.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/HTML/Simple CALCULATOR/reset.jpg -------------------------------------------------------------------------------- /JSP and Servlets/Shopping - HTTP Session/Shopping/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Python/Farewell/greet.py: -------------------------------------------------------------------------------- 1 | def greet(name): 2 | print("Hello Mr."+name+", Welcome to the farewell Party!!!") 3 | print("Documentation string: Module for Greeting") -------------------------------------------------------------------------------- /Web Technology/Bootstrap/About TrinQet/office.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/Bootstrap/About TrinQet/office.jpg -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Web Technology/HTML/Simple CALCULATOR/calculator.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/HTML/Simple CALCULATOR/calculator.jpg -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Java/Check Number Type/NumberType.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | @FunctionalInterface 3 | public interface NumberType 4 | { 5 | public boolean checkNumberType(int number); 6 | } -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Web Technology/Bootstrap/Responsive Web Pages/nature.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Web Technology/Bootstrap/Responsive Web Pages/nature.jpg -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /JSP and Servlets/Shopping - HTTP Session/Shopping/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/WebContent/WEB-INF/views/invalid.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Sorry!! Invalid Credentials. Try again

4 | 5 | -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/WebContent/WEB-INF/views/success.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Login Successful !!! Welcome ${login.userName}

4 | 5 | -------------------------------------------------------------------------------- /Java/Validate Name/Validate.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | @FunctionalInterface 3 | public interface Validate{ 4 | //write the abstract method 5 | public boolean validateName(String name); 6 | } -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/asm-3.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/asm-3.2.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/cglib-2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/cglib-2.2.jar -------------------------------------------------------------------------------- /Python/Read CSV file/read_csv.py: -------------------------------------------------------------------------------- 1 | import csv 2 | file='OneDayInternational.csv' 3 | reader=csv.DictReader(open(file,'r')) 4 | for row_no,line in enumerate(reader): 5 | if row_no==10: 6 | break 7 | print(line) -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/commons-pool-1.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/commons-pool-1.6.jar -------------------------------------------------------------------------------- /Hibernate/Component Mapping/ComponentMapping/src/TestApplication.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | public class TestApplication { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | 11 | 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/aspectjweaver-1.6.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/aspectjweaver-1.6.11.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/bo/PlayerBO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/bo/PlayerBO.class -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/main/Driver.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/main/Driver.class -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/target/classes/myfiles/GreetingServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/JSP and Servlets/Greeting App/GreetingWeb/target/classes/myfiles/GreetingServlet.class -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/target/classes/myfiles/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/JSP and Servlets/Login Scenario/LoginScenario/target/classes/myfiles/LoginServlet.class -------------------------------------------------------------------------------- /Java/Register a Candidate - User defined Exception(with throw and throws)/InvalidSalaryException.java: -------------------------------------------------------------------------------- 1 | public class InvalidSalaryException extends Exception{ 2 | public InvalidSalaryException(String s){ 3 | super(s); 4 | } 5 | } -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/model/Player.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/model/Player.class -------------------------------------------------------------------------------- /JSP and Servlets/Shopping - HTTP Session/Shopping/target/classes/myfiles/CartServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/JSP and Servlets/Shopping - HTTP Session/Shopping/target/classes/myfiles/CartServlet.class -------------------------------------------------------------------------------- /Web Technology/jQuery/Three Divisions/divisions.js: -------------------------------------------------------------------------------- 1 | //WRITE YOUR jQUERY CODE HERE 2 | $(document).ready(function(){ 3 | $("#button1").click(function(){ 4 | $("div[name$='Intelligence']").css("background-color","yellow"); 5 | }); 6 | }); -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/target/classes/myfiles/Inventory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/JSP and Servlets/Price List - with Model class/PriceList/target/classes/myfiles/Inventory.class -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/service/PlayerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/service/PlayerService.class -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/target/classes/myfiles/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/JSP and Servlets/Employee Registration - Use Bean/Employee/target/classes/myfiles/Employee.class -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/target/classes/myfiles/FruitServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/JSP and Servlets/Price List - with Model class/PriceList/target/classes/myfiles/FruitServlet.class -------------------------------------------------------------------------------- /Java/Employee - net salary/JunitTest/src/EmployeeMain.java: -------------------------------------------------------------------------------- 1 | public class EmployeeMain{ 2 | public static void main(String args[]){ 3 | EmployeeTest e=new EmployeeTest(); 4 | e.testCalNetPay1(); 5 | e.testCalNetPay2(); 6 | } 7 | } -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/config/ApplicationConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/bin/com/spring/config/ApplicationConfig.class -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/com.springsource.org.aopalliance-1.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/com.springsource.org.aopalliance-1.0.0.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.aop-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.aop-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.asm-3.1.2.release.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.asm-3.1.2.release.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.beans-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.beans-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.core-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.core-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.jdbc-3.0.3.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.jdbc-3.0.3.RELEASE.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.context-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.context-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.expression-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.expression-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Spring MVC/Holiday Party/HolidayParty/WebContent/WEB-INF/views/thankyou.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | 3 | 4 |

Thank you ${register.userName}.We shall mail the contents to ${register.emailId}

5 | 6 | -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.transaction-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.transaction-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.context.support-3.1.2.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itsjustmithun/Accenture-Tekstac/HEAD/Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/lib/org.springframework.context.support-3.1.2.RELEASE.jar -------------------------------------------------------------------------------- /Python/Factorial of a number/factorial.py: -------------------------------------------------------------------------------- 1 | fact=1 2 | n=int(input("Enter a number\n")) 3 | if n<0: 4 | print("Factorial does not exist for negative numbers") 5 | exit(0) 6 | else: 7 | for i in range(1,n+1): 8 | fact*=i 9 | 10 | print("Factorial is ",fact) -------------------------------------------------------------------------------- /Spring MVC/Online Help Services/HelpServices/WebContent/WEB-INF/views/helpdesk.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | 3 | 4 |

Thank you for choosing our Service.You need to pay Rs.${cost}/-

5 | 6 | -------------------------------------------------------------------------------- /Python/Lucky Number/lucky.py: -------------------------------------------------------------------------------- 1 | lucky=lambda n: 1 if(sum(int(d) for d in str(n))%2==0) else 0 2 | num=int(input("Enter the Number:")) 3 | if(num<=0): 4 | exit("Invalid Number") 5 | if(lucky(num)==1): 6 | print("{} is lucky".format(num)) 7 | else: 8 | print("{} is not lucky".format(num)) -------------------------------------------------------------------------------- /Python/Filter countries Sachin has played against/FilterCountries.py: -------------------------------------------------------------------------------- 1 | import csv 2 | file=csv.DictReader(open('OneDayInternational.csv')) 3 | teams=[] 4 | for i,j in enumerate(file): 5 | if j['Versus'] not in teams: 6 | teams.append(j['Versus']) 7 | for i in sorted(teams): 8 | print(i) -------------------------------------------------------------------------------- /Python/Palindrome/palindrome.py: -------------------------------------------------------------------------------- 1 | word=input("Enter the word : ") 2 | new=word[::-1] 3 | newcheck=new.lower().replace(" ","") 4 | check=word.lower().replace(" ","") 5 | if(newcheck==check): 6 | print("Yes, the string is a palindrome !") 7 | else: 8 | print("No, the string is not a palindrome !") -------------------------------------------------------------------------------- /Web Technology/React/Apply External CSS/Article.css: -------------------------------------------------------------------------------- 1 | .article { 2 | background-color: #282c34; 3 | min-height: 30vh; 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: center; 8 | font-size: calc(10px + 2vmin); 9 | color: white; 10 | } 11 | -------------------------------------------------------------------------------- /Selenium/Object Identification by id/ShopifyTest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Selenium/Object Identification by name/ShopifyTest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /C#/Reverse the sentence/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | 4 | class Program{ 5 | static void Main(string[] args){ 6 | Console.WriteLine("Enter a string"); 7 | String sen=Console.ReadLine(); 8 | Console.WriteLine(string.Join(" ", sen.Split(' ').Reverse())); 9 | } 10 | } -------------------------------------------------------------------------------- /Maven/MavenTestApp/MavenTestApp/src/main/java/com/build/maven/java/App.java: -------------------------------------------------------------------------------- 1 | package com.build.maven.java; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Selenium/Logo Identification by Absolute xPath/ShopifyTest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Selenium/Object Identification by cssSelector/ShopifyTest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Maven/MavenAppCommand/MavenAppCommand/src/main/java/com/build/maven/java/App.java: -------------------------------------------------------------------------------- 1 | package com.build.maven.java; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Maven/MavenPlugin/MavenCompilerPlugin/src/main/java/com/build/maven/java/App.java: -------------------------------------------------------------------------------- 1 | package com.build.maven.java; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | System.out.println( "Hello World!" ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Selenium/Object Identification by Absolute xPath/ShopifyTest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Selenium/Object Identification by Relative xPath/ShopifyTest/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Python/Pythagoras_ Theorem/hypotenuse.py: -------------------------------------------------------------------------------- 1 | from math import sqrt 2 | def hypotenuse(t1,t2): 3 | return sqrt(t2 ** 2 + t1 **2) 4 | a=int(input("Enter the triangle side 1: ")) 5 | b=int(input("Enter the triangle side 2: ")) 6 | if a<1 or b<1: 7 | print("Invalid input") 8 | exit() 9 | print("Hypotenuse =",int(hypotenuse(a,b))) -------------------------------------------------------------------------------- /Java/Get Text and Display Welcome Message/DisplayText.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public interface DisplayText 3 | { 4 | public abstract void displayText(String text); 5 | public default String getInput(){ 6 | Scanner in=new Scanner(System.in); 7 | String s=in.nextLine(); 8 | return s; 9 | } 10 | } -------------------------------------------------------------------------------- /Java/Vehicle-Loan-Insurance - Use Interface/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | public class Main 3 | { 4 | public static void main(String[] args) 5 | { 6 | Vehicle v=new Vehicle("1","as","2 wheeler",15000); 7 | System.out.println(v.issueLoan()); 8 | System.out.println(v.takeInsurance()); 9 | } 10 | } -------------------------------------------------------------------------------- /Java/Area Calculation - abstract class/Triangle.java: -------------------------------------------------------------------------------- 1 | public class Triangle{ 2 | private float base, height; 3 | public Triangle(float b, float h){ 4 | this.base=b; 5 | this.height=h; 6 | } 7 | public double calculateArea(){ 8 | double a=(double)(0.5*base*height); 9 | return a; 10 | } 11 | } -------------------------------------------------------------------------------- /Java/Celcius to Farenheit Conversion/CelsiusConversion.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class CelsiusConversion{ 3 | public static void main(String[] args){ 4 | Scanner sc = new Scanner(System.in); 5 | float c = sc.nextFloat(); 6 | float F= c*(9f/5) + 32; 7 | System.out.println(String.format("%.1f",F)); 8 | } 9 | } -------------------------------------------------------------------------------- /Java/Area Calculation - abstract class/Circle.java: -------------------------------------------------------------------------------- 1 | import java.lang.Math; 2 | public class Circle extends Shape{ 3 | private float radius; 4 | public Circle(float radius){ 5 | this.radius=radius; 6 | } 7 | public double calculateArea(){ 8 | double a=(double)radius*radius*Math.PI; 9 | return a; 10 | } 11 | } -------------------------------------------------------------------------------- /Spring Core/Autowiring/Autowiring/src/com/spring/app/ApplicationConfig.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | import org.springframework.context.annotation.ComponentScan; 3 | import org.springframework.context.annotation.Configuration; 4 | 5 | @Configuration 6 | @ComponentScan({"com.spring.app"}) 7 | 8 | public class ApplicationConfig { 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Java/Area Calculation - abstract class/Rectangle.java: -------------------------------------------------------------------------------- 1 | public class Rectangle extends Shape{ 2 | private float length,breadth; 3 | public Rectangle(float l, float b){ 4 | this.length=l; 5 | this.breadth=b; 6 | } 7 | public double calculateArea(){ 8 | double a=(double)(length*breadth); 9 | return a; 10 | } 11 | } -------------------------------------------------------------------------------- /Python/Time Table Planning/time_table.py: -------------------------------------------------------------------------------- 1 | import Dates 2 | y=int(input("Enter year as 4 digits (e.g:2002):")) 3 | m=int(input("Enter month number:")) 4 | l=Dates.is_leap(y) 5 | if(l==1): 6 | a="Leap Year" 7 | else: 8 | a="Not Leap Year" 9 | b=Dates.month_name(m) 10 | c=Dates.days_in_month(m,y) 11 | print("Year: "+a) 12 | print("Month Name: "+b) 13 | print("Days in month: ",c) -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Archetype Created Web Application 9 | 10 | -------------------------------------------------------------------------------- /Python/Store Student Data/sample.py: -------------------------------------------------------------------------------- 1 | reader=open('output_data.txt','a') 2 | n=int(input('Enter number of students: ')) 3 | for i in range(1,n+1): 4 | print('For student'+str(i)) 5 | name=input('Enter name: ') 6 | score=input('Enter the score: ') 7 | reader.write('Name: '+name+' Score: '+score+'\n') 8 | reader.close() 9 | f=open('output_data.txt','r') 10 | print(f.read()) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Auto-Generated Documentation 2 | 3 | ## Code Analysis 4 | Functions: 5 | 6 | ## Pull Request Summary 7 | PR #1: Bump junit from 3.8.1 to 4.13.1 in /Maven/MavenAppCommand/MavenAppCommand 8 | 9 | Author: dependabot[bot] 10 | Status: closed 11 | Created: 2020-10-13 23:54:11+00:00 12 | 13 | Changes: 14 | - Maven/MavenAppCommand/MavenAppCommand/pom.xml: modified (2 lines) -------------------------------------------------------------------------------- /Web Technology/React/Async Request/articles.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"id":"RA100", "title":"Introducing React's Error Code System", "date":"Mon Jul 1 2018"}, 3 | {"id":"RA101", "title":"Mixin Considered Harmful", "date":"Wed Sep 21 2018"}, 4 | {"id":"RA102", "title":"Create Higher Order Component", "date":"Fri Nov 20 2018"}, 5 | {"id":"RA103", "title":"React Best Practices", "date":"Tue Nov 10 2018"} 6 | ] -------------------------------------------------------------------------------- /Spring Core/Annotation/Annotation/src/com/spring/app/ApplicationConfig.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | import org.springframework.context.annotation.*; 3 | //import org.springframwork.context.annotation.Configuration; 4 | //import org.springframwork.context.annotation.ComponentScan; 5 | 6 | @Configuration 7 | @ComponentScan({"com.spring.app"}) 8 | public class ApplicationConfig { 9 | 10 | 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Web Technology/React/Async Request/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Async from '.' 6 | 7 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 8 | ReactDOM.render(,document.getElementById('root')); 9 | serviceWorker.unregister(); -------------------------------------------------------------------------------- /C#/StringConcatenate/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | class Program 3 | { 4 | static void Main(string[] args) 5 | { 6 | //Implement code here 7 | Console.WriteLine("Enter first name"); 8 | String f=Console.ReadLine(); 9 | Console.WriteLine("Enter last name"); 10 | String l=Console.ReadLine(); 11 | Console.Write("Full name : {0} {1}",f,l); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Python/Arrange Names/names.py: -------------------------------------------------------------------------------- 1 | def take(elem): 2 | return elem[0] 3 | names=int(input("Enter the number of names:")) 4 | if(names<=0):exit("Invalid Input") 5 | list1=[] 6 | print("\nEnter the names:") 7 | for i in range(0,names): 8 | list1.append(input("")) 9 | list1=sorted(list1,key=take) 10 | list2=sorted(list1,key=len) 11 | list2.reverse() 12 | print("\nThe sorted name list is:") 13 | for i in list2: 14 | print(i) -------------------------------------------------------------------------------- /Java/Get Text and Display Welcome Message/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static DisplayText welcomeMessage(){ 4 | DisplayText d=(text)->{System.out.println("Welcome "+text); 5 | }; 6 | return d; 7 | } 8 | public static void main(String args[]) 9 | { 10 | DisplayText obj=welcomeMessage(); 11 | String k=obj.getInput(); 12 | obj.displayText(k); 13 | } 14 | } -------------------------------------------------------------------------------- /Web Technology/React/Apply External CSS/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Article from '.' 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render(,document.getElementById('root')); 10 | serviceWorker.unregister(); -------------------------------------------------------------------------------- /Web Technology/React/Search Functionality/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Welcome from '.'; 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render(,document.getElementById('root')); 10 | serviceWorker.unregister(); -------------------------------------------------------------------------------- /Java/Student and Department Detail/Department.java: -------------------------------------------------------------------------------- 1 | public class Department{ 2 | private int did; 3 | private String dname; 4 | public int getDid(){ 5 | return this.did; 6 | } 7 | public String getDname(){ 8 | return this.dname; 9 | } 10 | public void setDid(int did){ 11 | this.did=did; 12 | } 13 | public void setDname(String dname){ 14 | this.dname=dname; 15 | } 16 | } -------------------------------------------------------------------------------- /Web Technology/React/Working With State/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Counter from '.'; 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render(,document.getElementById('root')); 10 | 11 | serviceWorker.unregister(); -------------------------------------------------------------------------------- /Python/Introducing Artificial Intelligence System/AI.py: -------------------------------------------------------------------------------- 1 | name = input("Enter the name:\n") 2 | creator = input("Enter the creator name:\n") 3 | purp=input("Enter the purpose:\n") 4 | mem=input("Enter the memory size:\n") 5 | speed=float(input("Enter the speed:\n")) 6 | print("My Details:") 7 | print("I am "+name+" , created by "+creator+", for the purpose of "+purp+".") 8 | print("Memory I consume is around "+mem+" and my speed is "+str(speed)+" GHZ.") -------------------------------------------------------------------------------- /Maven/MavenJavaApp/MavenJavaApp/src/main/java/com/build/maven/java/App.java: -------------------------------------------------------------------------------- 1 | package com.build.maven.java; 2 | 3 | /** 4 | * Hello world! 5 | * 6 | */ 7 | public class App 8 | { 9 | /*code getHelloWorld() here */ 10 | public static String getHelloWorld(){ 11 | return "Hello World!"; 12 | } 13 | 14 | public static void main( String[] args ) 15 | { 16 | System.out.println( "Hello World!" ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Web Technology/React/Create Parent and Child Component/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Welcome from '.' 6 | 7 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 8 | ReactDOM.render(,document.getElementById("root")); 9 | serviceWorker.unregister(); 10 | -------------------------------------------------------------------------------- /Web Technology/React/Create a Welcome Component/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Welcome from '.'; 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render(,document.getElementById('root')); 10 | serviceWorker.unregister(); 11 | -------------------------------------------------------------------------------- /Web Technology/React/Working With Keys and Styles/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import Article from "."; 5 | import * as serviceWorker from './serviceWorker'; 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render(
,document.getElementById('root')); 10 | 11 | serviceWorker.unregister(); -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/src/com/spring/config/ApplicationConfig.java: -------------------------------------------------------------------------------- 1 | package com.spring.config; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | // use appropriate annotations 7 | @Configuration 8 | @ComponentScan({"com.spring.bo","com.spring.model","com.spring.service"}) 9 | public class ApplicationConfig 10 | { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Web Technology/React/Implement PropTypes/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import * as serviceWorker from './serviceWorker'; 5 | import Display from '.'; 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render() 10 | serviceWorker.unregister(); -------------------------------------------------------------------------------- /Web Technology/React/Working With Props/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | //ADD THE REQUIRED IMPORT STATEMENT 4 | import Welcome from '.'; 5 | import * as serviceWorker from './serviceWorker'; 6 | 7 | 8 | //IMPLEMENT THE REQUIRED CODE TO RENDER THE COMPONENT IN, document.getElementById('root') 9 | ReactDOM.render() 10 | serviceWorker.unregister(); 11 | 12 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/src/com/service/LoginService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.bean.LoginBean; 4 | import org.springframework.stereotype.Service; 5 | 6 | @Service 7 | public class LoginService { 8 | public boolean validate(LoginBean bean){ 9 | boolean valido=false; 10 | String name=bean.getUserName(); 11 | String passwado=bean.getPassword(); 12 | if(name.equals(passwado)) 13 | valido=true; 14 | return valido; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Python/Calculate year-wise total number of runs of Sachin/AddColumns.py: -------------------------------------------------------------------------------- 1 | import csv 2 | f="OneDayInternational.csv" 3 | reader=csv.DictReader(open(f,'r')) 4 | mydict={} 5 | for row in reader: 6 | for i in range(1990,1999): 7 | if((row['MatchDate']).endswith(str(i))): 8 | if i in mydict: 9 | mydict[i]=mydict[i]+int(row['Runs']) 10 | else: 11 | mydict[i]=int(row['Runs']) 12 | 13 | for key,values in mydict.items(): 14 | print(key,values) -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/src/main/webapp/false.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | You are not authenticated to enter .... 11 | 12 | -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/src/main/webapp/true.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | You are authenticated to enter .... 11 | 12 | -------------------------------------------------------------------------------- /Java/Employee Loan Eligibility - Polymorphism/Loan.java: -------------------------------------------------------------------------------- 1 | 2 | public class Loan { 3 | 4 | //Implement the below method 5 | public double loan; 6 | public double calculateLoanAmount(Employee employeeObj) { 7 | if(employeeObj instanceof PermanentEmployee){ 8 | loan=(employeeObj.getSalary()*15)/100; 9 | } 10 | else{ 11 | if(employeeObj instanceof TemporaryEmployee){ 12 | loan=(employeeObj.getSalary()*10)/100; 13 | } 14 | } 15 | return loan; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/src/com/bean/LoginBean.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class LoginBean { 4 | private String userName; 5 | private String password; 6 | 7 | public void setUserName(String userName){ 8 | this.userName=userName; 9 | } 10 | public void setPassword(String password){ 11 | this.password=password; 12 | } 13 | public String getUserName(){ 14 | return userName; 15 | } 16 | public String getPassword(){ 17 | return password; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Java/Gold Coin Count/Coins.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Coins{ 3 | public static void main(String[] args){ 4 | int age, cube; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the age: "); 7 | age=sc.nextInt(); 8 | if(age>10 || age<1){ 9 | System.out.println("Invalid Age"); 10 | } 11 | else{ 12 | cube=age*age*age; 13 | System.out.println("Meenu gets "+cube+" coins"); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Web Technology/React/Working With State/Counter.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | class Counter extends Component { 4 | constructor(props){ 5 | super(props); 6 | this.state={count:0}; 7 | } 8 | handlerClick(event){ 9 | this.setState({count:this.state.count + 1}); 10 | } 11 | render(){ 12 | return(
13 |

Counter

14 |

{this.state.count}

); 15 | } 16 | } 17 | 18 | export default Counter; -------------------------------------------------------------------------------- /Java/AccountDetails/Account/src/AccountMain.java: -------------------------------------------------------------------------------- 1 | public class AccountMain{ 2 | public static void main(String [] args){ 3 | Account acc = new Account(1035,"Savings",10000); 4 | acc.deposit(5000); 5 | System.out.println("Amount after deposit : "+acc.getBalance()); 6 | acc.withdraw(15000); 7 | System.out.println("Amount after withdraw : "+acc.getBalance()); 8 | acc.withdraw(100); 9 | System.out.println("Amount after withdraw : "+acc.getBalance()); 10 | } 11 | } -------------------------------------------------------------------------------- /Java/Add Flight using JDBC/database.properties: -------------------------------------------------------------------------------- 1 | #IF NEEDED, YOU CAN MODIFY THIS PROPERTY FILE 2 | #ENSURE YOU ARE NOT CHANGING THE NAME OF THE PROPERTY 3 | #YOU CAN CHANGE THE VALUE OF THE PROPERTY 4 | #LOAD THE DETAILS OF DRIVER CLASS, URL, USERNAME AND PASSWORD IN DB.java using this properties file only. 5 | #Do not hard code the values in DB.java. 6 | 7 | DB_DRIVER_CLASS=oracle.jdbc.driver.OracleDriver 8 | DB_URL=jdbc:oracle:thin:@127.0.0.1:1521:XE 9 | DB_USERNAME=${sys:db_username} 10 | DB_PASSWORD=${sys:db_password} 11 | -------------------------------------------------------------------------------- /Java/Display Characters/AsciValue.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class AsciValue{ 3 | public static void main(String[] args){ 4 | int n=4; 5 | //char ch=char(num); 6 | int num[]=new int[10]; 7 | Scanner sc=new Scanner(System.in); 8 | System.out.println("Enter the digits"); 9 | for(int i=1;i<=n;i++){ 10 | num[i]=sc.nextInt(); 11 | } 12 | for(int i=1;i<=n;i++){ 13 | System.out.println(num[i]+"-"+(char)num[i]); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Contact Details of Hosteller/Hosteller.java: -------------------------------------------------------------------------------- 1 | public class Hosteller extends Student{ 2 | private String hostelName; 3 | private int roomNumber; 4 | public String getHostelName(){ 5 | return this.hostelName; 6 | } 7 | public void setHostelName(String hostelName){ 8 | this.hostelName=hostelName; 9 | } 10 | public int getRoomNumber(){ 11 | return this.roomNumber; 12 | } 13 | public void setRoomNumber(int roomNumber){ 14 | this.roomNumber=roomNumber; 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Delete flight Using Flight ID/database.properties: -------------------------------------------------------------------------------- 1 | #IF NEEDED, YOU CAN MODIFY THIS PROPERTY FILE 2 | #ENSURE YOU ARE NOT CHANGING THE NAME OF THE PROPERTY 3 | #YOU CAN CHANGE THE VALUE OF THE PROPERTY 4 | #LOAD THE DETAILS OF DRIVER CLASS, URL, USERNAME AND PASSWORD IN DB.java using this properties file only. 5 | #Do not hard code the values in DB.java. 6 | 7 | DB_DRIVER_CLASS=oracle.jdbc.driver.OracleDriver 8 | DB_URL=jdbc:oracle:thin:@127.0.0.1:1521:XE 9 | DB_USERNAME=${sys:db_username} 10 | DB_PASSWORD=${sys:db_password} 11 | -------------------------------------------------------------------------------- /Java/Employee - net salary/JunitTest/src/EmployeeTest.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.*; 2 | import org.junit.*; 3 | 4 | public class EmployeeTest{ 5 | Employee e=null; 6 | @org.junit.Test 7 | public void testCalNetPay1() { 8 | e=new Employee(1,"Tushar",45000.0,2.0); 9 | assertEquals(45000.0,e.calNetPay(),0); 10 | } 11 | @org.junit.Test 12 | public void testCalNetPay2(){ 13 | e=new Employee(2,"RAHSUT",10000.0,10.0); 14 | assertEquals(9000.0,e.calNetPay(),0); 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Pencil Count/Count.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Count{ 3 | public static void main(String args[]){ 4 | Scanner sc = new Scanner(System.in); 5 | int n, count=0; 6 | System.out.println("Enter the standard: "); 7 | n= sc.nextInt(); 8 | if(n<1 || n>12){ 9 | System.out.println("Invalid Standard"); 10 | } 11 | else{ 12 | count = (n*(n+1)*(2*n+1))/6; 13 | System.out.println("Nila gets "+count+" pencils"); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Retrieve Flight Using Flight ID/database.properties: -------------------------------------------------------------------------------- 1 | #IF NEEDED, YOU CAN MODIFY THIS PROPERTY FILE 2 | #ENSURE YOU ARE NOT CHANGING THE NAME OF THE PROPERTY 3 | #YOU CAN CHANGE THE VALUE OF THE PROPERTY 4 | #LOAD THE DETAILS OF DRIVER CLASS, URL, USERNAME AND PASSWORD IN DB.java using this properties file only. 5 | #Do not hard code the values in DB.java. 6 | 7 | DB_DRIVER_CLASS=oracle.jdbc.driver.OracleDriver 8 | DB_URL=jdbc:oracle:thin:@127.0.0.1:1521:XE 9 | DB_USERNAME=${sys:db_username} 10 | DB_PASSWORD=${sys:db_password} 11 | -------------------------------------------------------------------------------- /Java/Update Flight Fare for a Flight/database.properties: -------------------------------------------------------------------------------- 1 | #IF NEEDED, YOU CAN MODIFY THIS PROPERTY FILE 2 | #ENSURE YOU ARE NOT CHANGING THE NAME OF THE PROPERTY 3 | #YOU CAN CHANGE THE VALUE OF THE PROPERTY 4 | #LOAD THE DETAILS OF DRIVER CLASS, URL, USERNAME AND PASSWORD IN DB.java using this properties file only. 5 | #Do not hard code the values in DB.java. 6 | 7 | DB_DRIVER_CLASS=oracle.jdbc.driver.OracleDriver 8 | DB_URL=jdbc:oracle:thin:@127.0.0.1:1521:XE 9 | DB_USERNAME=${sys:db_username} 10 | DB_PASSWORD=${sys:db_password} 11 | -------------------------------------------------------------------------------- /Spring Core/Constructor Injection/ConstructorInjection/src/beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Spring Core/XML Configuration/XMLConfiguration/src/beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /C#/Implement Predicate Delegate/Employee.cs: -------------------------------------------------------------------------------- 1 | //THIS IS FOR REFERENCE ONLY. YOU ARE NOT REQUIRED TO MAKE ANY CHANGES HERE 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace DelegateTemplate 9 | { 10 | class Employee 11 | { 12 | public int Id { get; set; } 13 | 14 | public string Name { get; set; } 15 | 16 | public string Level { get; set; } 17 | 18 | public string Dept { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Python/News Report Generation/news_report.py: -------------------------------------------------------------------------------- 1 | d = int(input("Dead Count:")) 2 | if(d<0): 3 | print ("Invalid input") 4 | exit(0) 5 | i = int(input("Injured Count:")) 6 | if(i<0): 7 | print("Invalid input") 8 | exit(0) 9 | s = int(input("Safe Count:")) 10 | if(s<0): 11 | print("Invalid input") 12 | exit(0) 13 | print ("TSUNAMI REPORT OF JAPAN") 14 | print ("The number of people") 15 | print ("Dead:"+str(d)); 16 | print ("Injured:"+str(i)) 17 | print ("Safe:"+str(s)) 18 | print ("Please help the people who are suffering!!!") -------------------------------------------------------------------------------- /Java/Retrieve Flights Based on Source and Destination/database.properties: -------------------------------------------------------------------------------- 1 | #IF NEEDED, YOU CAN MODIFY THIS PROPERTY FILE 2 | #ENSURE YOU ARE NOT CHANGING THE NAME OF THE PROPERTY 3 | #YOU CAN CHANGE THE VALUE OF THE PROPERTY 4 | #LOAD THE DETAILS OF DRIVER CLASS, URL, USERNAME AND PASSWORD IN DB.java using this properties file only. 5 | #Do not hard code the values in DB.java. 6 | 7 | DB_DRIVER_CLASS=oracle.jdbc.driver.OracleDriver 8 | DB_URL=jdbc:oracle:thin:@127.0.0.1:1521:XE 9 | DB_USERNAME=${sys:db_username} 10 | DB_PASSWORD=${sys:db_password} 11 | -------------------------------------------------------------------------------- /Java/Convert Numbers into Months/NumToMonth.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class NumToMonth{ 3 | public static void main(String args[]){ 4 | String a[]={"January","February","March","April","May","June","July","August","September","October","November","December"}; 5 | Scanner sc=new Scanner(System.in); 6 | int i; 7 | i=sc.nextInt(); 8 | if(i>=1 && i<=12){ 9 | System.out.println(a[i-1]); 10 | } 11 | else 12 | System.out.println("No month for the number "+i); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Java/PAN Card Validation/PanCard.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class PanCard{ 3 | public static void main(String args[]){ 4 | Scanner sc=new Scanner(System.in); 5 | System.out.println("Enter the PAN no:"); 6 | String s1=sc.next(); 7 | getValues(s1); 8 | } 9 | public static void getValues(String s1){ 10 | if(s1.matches("[A-Z]{5}[0-9]{4}[A-Z]{1}")){ 11 | System.out.println("Valid PAN no"); 12 | } 13 | else 14 | System.out.println("Invalid PAN no"); 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Volume calculator- Over Loading/VolumeCalculator.java: -------------------------------------------------------------------------------- 1 | public class VolumeCalculator{ 2 | public double calculateVolume(double radius, double height){ 3 | double volume; 4 | volume=(3.14)*radius*radius*height; 5 | double answer=Math.round(volume*100.0)/100.0; 6 | return answer; 7 | } 8 | public double calculateVolume(int length, int breadth, int height){ 9 | double cuboid; 10 | cuboid=length*breadth*height; 11 | double answer1=Math.round(cuboid*100.0)/100.0; 12 | return answer1; 13 | } 14 | } -------------------------------------------------------------------------------- /Java/Employee ID Validation/UserMain.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.util.regex.*; 3 | public class UserMain{ 4 | public static void main(String[] args){ 5 | Scanner sc=new Scanner(System.in); 6 | System.out.println("Enter your ID"); 7 | String s=sc.nextLine(); 8 | Pattern pat=Pattern.compile("GBL/[0-9]{3}/[0-9]{4}"); 9 | Matcher i=pat.matcher(s); 10 | if(i.matches()){ 11 | System.out.println("Login success"); 12 | } 13 | else 14 | System.out.println("Incorrect ID"); 15 | } 16 | } -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /Java/Delete flight Using Flight ID/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Main{ 3 | public static void main(String[] args){ 4 | Scanner sc=new Scanner(System.in); 5 | int i=sc.nextInt(); 6 | sc.nextLine(); 7 | FlightManagementSystem fms=new FlightManagementSystem(); 8 | boolean b=fms.deleteFlight(i); 9 | if(b){ 10 | System.out.println("Flight Details deleted successfully"); 11 | } 12 | else{ 13 | System.out.println("Flight Not deleted. Check for the ID"); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Income Calulation/IncomeCal.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class IncomeCal{ 3 | public static void main(String[] args){ 4 | int hour; 5 | Scanner sc= new Scanner(System.in); 6 | System.out.println("Enter no of hours worked in a day:"); 7 | hour = sc.nextInt(); 8 | if(hour<=24 && hour>=0){ 9 | int cal; 10 | cal= (hour*100)*365; 11 | System.out.println("Total income in a year:"+cal); 12 | } 13 | else 14 | System.out.println("Unable to calculate the earnings"); 15 | } 16 | } -------------------------------------------------------------------------------- /Java/Length of String/FindLength.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class FindLength{ 3 | public static void main(String args[]){ 4 | Scanner sc=new Scanner(System.in); 5 | int count=0; 6 | String str=sc.nextLine(); 7 | if(str.matches("^[A-Za-z ]*$") && (!str.equals("")) && (str!=null)){ 8 | for(int i=0;i

{this.props.dashValues.stockName}

15 |

{this.props.dashValues.stockQty}

); 16 | } 17 | } 18 | export default Stock; 19 | -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /Hibernate/View Customer Details/Hibernate_Select/src/com/dao/CustomerDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | import org.hibernate.*; 3 | import com.bean.*; 4 | import java.util.List; 5 | 6 | public class CustomerDAO { 7 | private Session session; 8 | public Session getSession(){ 9 | return session; 10 | } 11 | public void setSession(Session session){ 12 | this.session=session; 13 | } 14 | public List viewCustomers(){ 15 | String hql="From Customer c"; 16 | Query query=session.createQuery(hql); 17 | List list=query.list(); 18 | return list; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=1.8 10 | -------------------------------------------------------------------------------- /Python/Password Protection/password.py: -------------------------------------------------------------------------------- 1 | import sys 2 | n=int(input("Enter the total no.of plots: ")) 3 | if n>0 and n<=20: 4 | list=[] 5 | print("Enter the numbers of each plot:") 6 | for i in range(0,n): 7 | num=int(input()) 8 | if num<=0: 9 | print("Invalid Input") 10 | sys.exit(0) 11 | else: 12 | list.append(num) 13 | 14 | sum=0 15 | for i in range(0,n): 16 | sum=sum+list[i] 17 | ans=sum/2 18 | print("The password for the file is: %.2f"%ans) 19 | else: 20 | print("Invalid Input") 21 | sys.exit(0) -------------------------------------------------------------------------------- /Java/Repetition of a Number/NumberRepetition.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class NumberRepetition{ 3 | public static void main(String[] args){ 4 | int n,d, c=0; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the number "); 7 | n=sc.nextInt(); 8 | int temp = n; 9 | System.out.println("Enter the key digit "); 10 | d=sc.nextInt(); 11 | while (n>0){ 12 | if(n%10==d) 13 | c++; 14 | n=n/10; 15 | } 16 | System.out.println(d+" appears "+c+" times in "+temp); 17 | } 18 | } -------------------------------------------------------------------------------- /Python/Stationary Shop/Stationary.py: -------------------------------------------------------------------------------- 1 | sheet=float(input("Cost of A4sheet:\n")) 2 | if(sheet<0): 3 | print("Invalid input") 4 | exit() 5 | pen=float(input("Cost of pen:\n")) 6 | if(pen<0): 7 | print("Invalid input") 8 | exit() 9 | pencil=float(input("Cost of pencil:\n")) 10 | if(pencil<0): 11 | print("Invalid input") 12 | exit() 13 | eraser=float(input("Cost of eraser:\n")) 14 | if(eraser<0): 15 | print("Invalid input") 16 | exit() 17 | print("Items Details") 18 | print("A4sheet:%0.2f"%sheet) 19 | print("Pen:%.2f"%pen) 20 | print("Pencil:%.2f"%pencil) 21 | print("Eraser:%.2f"%eraser) -------------------------------------------------------------------------------- /Java/PAN Card Validation/UserMain.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.util.regex.*; 3 | public class UserMain{ 4 | public static void main(String[] args){ 5 | Scanner sc=new Scanner(System.in); 6 | System.out.println("Enter your PAN number"); 7 | String s=sc.nextLine(); 8 | Pattern pat=Pattern.compile("[A-Z]{5}[0-9]{4}[A-Z]"); 9 | Matcher i = pat.matcher(s); 10 | if(i.matches()){ 11 | System.out.println("Valid PAN number"); 12 | } 13 | else{ 14 | System.out.println("Invalid PAN number"); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Java/PF and Salary Calculation/Employee.java: -------------------------------------------------------------------------------- 1 | public class Employee{ 2 | private String name; 3 | private float salary; 4 | private float netsalary; 5 | public void setName(String a){ 6 | name=a; 7 | } 8 | public void setSalary(float b){ 9 | this.salary=b; 10 | } 11 | public void setNetsalary(float c){ 12 | this.netsalary=c; 13 | } 14 | public String getName(){ 15 | return name; 16 | } 17 | public float getSalary(){ 18 | return salary; 19 | } 20 | public float getNetsalary(){ 21 | return netsalary; 22 | } 23 | } -------------------------------------------------------------------------------- /Web Technology/jQuery/Customer Data/customer.js: -------------------------------------------------------------------------------- 1 | //WRITE YOUR jQUERY CODE HERE 2 | $(document).ready(function(){ 3 | $(".add-row").click(function(){ 4 | var name=$("#name").val(); 5 | var markup=""+name+" "; 6 | $("table tbody").append(markup); 7 | }); 8 | $(".delete-row").click(function(){ 9 | $("table tbody").find('input[name="record"]').each(function(){ 10 | if($(this).is(":checked")){ 11 | $(this).parents("tr").remove(); 12 | } 13 | }); 14 | }); 15 | }); -------------------------------------------------------------------------------- /Python/Non-Working Doctors/doctors.py: -------------------------------------------------------------------------------- 1 | n1=int(input()) 2 | if(n1<1): 3 | print("Invalid list size") 4 | exit() 5 | l1=[] 6 | for i in range(0,n1): 7 | inp=int(input()) 8 | if(inp<1): 9 | print("Invalid Id") 10 | exit() 11 | l1.append(inp) 12 | n1=int(input()) 13 | if(n1<1): 14 | print("Invalid list size") 15 | exit() 16 | for i in range(0,n1): 17 | inp=int(input()) 18 | if(inp<1): 19 | print("Invalid Id") 20 | exit() 21 | l1=list(filter((inp).__ne__,l1)) 22 | 23 | print("Not Working Doctors' IDs are:") 24 | for x in l1: 25 | print(x,end=" ") -------------------------------------------------------------------------------- /Python/Create Quarters/quarters.py: -------------------------------------------------------------------------------- 1 | months=('January','February','March','April','May','June','July','August','September','October','November','December') 2 | month1=months[0:3] 3 | month2=months[3:6] 4 | month3=months[6:9] 5 | month4=months[9:12] 6 | print("Months in expanded form:") 7 | for i in months: 8 | print(i) 9 | print("The four quarters are:") 10 | print("First Quarter :") 11 | for j in month1: 12 | print(j) 13 | print("Second Quarter :") 14 | for k in month2: 15 | print(k) 16 | print("Third Quarter :") 17 | for m in month3: 18 | print(m) 19 | print("Fourth Quarter :") 20 | for n in month4: 21 | print(n) -------------------------------------------------------------------------------- /Spring Core/Currency Converter-XML/Currency/src/com/spring/app/Driver.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | import org.springframework.context.ApplicationContext; 3 | import org.springframework.context.support.ClassPathXmlApplicationContext; 4 | import java.util.*; 5 | 6 | public class Driver { 7 | 8 | public static void main(String[] args) 9 | { 10 | Scanner sc=new Scanner(System.in); 11 | ApplicationContext ctx=new ClassPathXmlApplicationContext("beans.xml"); 12 | CurrencyConverter cc=(CurrencyConverter)ctx.getBean("ccObj"); 13 | String a=sc.next(); 14 | System.out.println(cc.getTotalCurrencyValue(a)); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Spring Core/Currency Converter-XML/Currency/src/beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Spring Core/Online Shop/OnlineShop/src/beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Java/Check Number Type/NumberTypeUtility.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class NumberTypeUtility 3 | { 4 | public static NumberType isOdd(){ 5 | return(int a)->{ 6 | if(a%2==0) 7 | return false; 8 | else 9 | return true; 10 | }; 11 | } 12 | public static void main(String[] args){ 13 | Scanner sc=new Scanner(System.in); 14 | int n=sc.nextInt(); 15 | NumberType nt =isOdd(); 16 | if(!nt.checkNumberType(n)) 17 | System.out.println(n+" is not odd"); 18 | else 19 | System.out.println(n+" is odd"); 20 | } 21 | } -------------------------------------------------------------------------------- /Java/Employee - net salary/JunitTest/src/Employee.java: -------------------------------------------------------------------------------- 1 | public class Employee { 2 | 3 | private int eid; 4 | 5 | private String name; 6 | 7 | private double salary; 8 | 9 | private double pfper; 10 | 11 | public Employee(int eid, String name, double salary, double pfper) { 12 | 13 | super(); 14 | 15 | this.eid = eid; 16 | 17 | this.name = name; 18 | 19 | this.salary = salary; 20 | 21 | this.pfper = pfper; 22 | 23 | } 24 | 25 | public double calNetPay(){ 26 | 27 | if(pfper <= 5){ 28 | 29 | return salary; 30 | 31 | } else { 32 | 33 | return salary-salary*(pfper/100); 34 | 35 | } 36 | 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /Hibernate/Digitoonz Animations - Report/ManytoMany/src/TestApplication.java: -------------------------------------------------------------------------------- 1 | import com.bean.*; 2 | import com.dao.*; 3 | import java.util.*; 4 | import org.hibernate.*; 5 | import org.hibernate.cfg.Configuration; 6 | 7 | public class TestApplication { 8 | public static void main(String[] args) { 9 | Configuration config=new Configuration(); 10 | SessionFactory sf=config.configure("hibernate.cfg.xml").buildSessionFactory(); 11 | Session s=sf.openSession(); 12 | CricketDAO dao=new CricketDAO(); 13 | dao.setSession(s); 14 | CricketMatch cm=new CricketMatch(); 15 | cm=dao.viewMatchwithPlayerDetails(101); 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Java/Count the number of characters/Count.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | 3 | public class Count{ 4 | public static void main(String[] args){ 5 | Scanner sc=new Scanner(System.in); 6 | int count=0; 7 | System.out.println("Enter your name:"); 8 | String str=sc.nextLine(); 9 | if(str.matches("^[A-Za-z ]*$") && (!str.equals("")) && (str!=null)){ 10 | for(int i=0;ipObj; 7 | public Map getPObj(){ 8 | return pObj; 9 | } 10 | public void setPObj(Map pObj){ 11 | this.pObj=pObj; 12 | } 13 | public int calculateTotalPrice(int totalProductsPurchased, String productName){ 14 | String nm=productName.toUpperCase(); 15 | String p=pObj.get(nm); 16 | int price=Integer.parseInt(p); 17 | return totalProductsPurchased*price; 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Java/Book Detail/Book.java: -------------------------------------------------------------------------------- 1 | public class Book{ 2 | private String bookName; 3 | private int bookPrice; 4 | private String authorName; 5 | public String getBookName(){ 6 | return bookName; 7 | } 8 | public int getBookPrice(){ 9 | return bookPrice; 10 | } 11 | public String getAuthorName(){ 12 | return authorName; 13 | } 14 | public void setBookName(String name){ 15 | this.bookName=name; 16 | } 17 | public void setBookPrice(int price){ 18 | this.bookPrice=price; 19 | } 20 | public void setAuthorName(String aname){ 21 | this.authorName=aname; 22 | } 23 | } -------------------------------------------------------------------------------- /Hibernate/Object Persistence/CodeSkeleton_ObjectPersistence/src/com/dao/CustomerDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import org.hibernate.*; 4 | import com.bean.*; 5 | 6 | public class CustomerDAO { 7 | private Session session; 8 | public Session getSession(){ 9 | return session; 10 | } 11 | public void setSession(Session session){ 12 | this.session = session; 13 | } 14 | public int createCustomer(Customer customer){ 15 | Transaction transaction=session.beginTransaction(); 16 | session.save(customer); 17 | transaction.commit(); 18 | return customer.getCustomerId(); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | SpringMVC with Hibernate Example using Annotations 8 | 9 | 10 |
11 |

SpringMVC with Hibernate Example using Annotations

12 | Login 13 |
14 | 15 | -------------------------------------------------------------------------------- /C#/Publisher Subscriber Model/DelegateDriver.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace DelegateTemplate //DO NOT change the namespace name 8 | { 9 | public class DelegateDriver //DO NOT change the class name 10 | { 11 | static void Main(string[] args) //DO NOT change the 'Main' method signature 12 | { 13 | //implement code here 14 | Publisher p=new Publisher(); 15 | Subscriber1 s1=new Subscriber1(p); 16 | Subscriber2 s2=new Subscriber2(p); 17 | 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Java/Password Generation/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.util.regex.*; 3 | public class Main{ 4 | public static void main(String[] args){ 5 | Scanner s=new Scanner(System.in); 6 | System.out.println("Generate your Security Code"); 7 | String ip=s.next(); 8 | Pattern pattern=Pattern.compile("((?=.*[a-z])(?=.*[A-Z])(?=.*[@*#]).{8,})"); 9 | Matcher m=pattern.matcher(ip); 10 | if(m.matches()){ 11 | System.out.println("Security Code Generated Successfully"); 12 | } 13 | else{ 14 | System.out.println("Invalid Security Code, Try Again!"); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Java/Student and Department Detail/Student.java: -------------------------------------------------------------------------------- 1 | public class Student{ 2 | private int sid; 3 | private String sname; 4 | private Department department; 5 | public int getSid(){ 6 | return this.sid; 7 | } 8 | public String getSname(){ 9 | return this.sname; 10 | } 11 | public Department getDepartment(){ 12 | return this.department; 13 | } 14 | public void setSid(int sid){ 15 | this.sid=sid; 16 | } 17 | public void setSname(String sname){ 18 | this.sname=sname; 19 | } 20 | public void setDepartment(Department department){ 21 | this.department=department; 22 | } 23 | } -------------------------------------------------------------------------------- /Spring Core/Online Shop/OnlineShop/src/com/spring/app/Driver.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | import java.util.*; 6 | 7 | public class Driver { 8 | 9 | public static void main(String[] args) 10 | { 11 | Scanner sc=new Scanner(System.in); 12 | ApplicationContext c=new ClassPathXmlApplicationContext("beans.xml"); 13 | OnlineShop os=(OnlineShop) c.getBean("osobj"); 14 | int a=sc.nextInt(); 15 | sc.nextLine(); 16 | String b=sc.nextLine(); 17 | System.out.println(os.calculateTotalPrice(a,b)); 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /Hibernate/MaxiMax Store/Onetoone/src/com/dao/CustomerDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | import org.hibernate.Session; 3 | import org.hibernate.Transaction; 4 | import com.bean.Customer; 5 | 6 | public class CustomerDAO { 7 | 8 | private Session session; 9 | 10 | public Session getSession() { 11 | return session; 12 | } 13 | 14 | public void setSession(Session session) { 15 | this.session = session; 16 | } 17 | 18 | public int addCustomer(Customer customer) 19 | { 20 | Transaction transaction=session.beginTransaction(); 21 | session.save(customer); 22 | transaction.commit(); 23 | return customer.getCustId(); 24 | 25 | } 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Python/AEIMA’s Online Courses/courses.py: -------------------------------------------------------------------------------- 1 | import sys 2 | l=[] 3 | d={} 4 | x=int(input("Enter number of courses:")) 5 | if(x<1): 6 | print("Invalid no. of courses") 7 | sys.exit(0) 8 | else: 9 | for i in range(x): 10 | sub=input("Enter name of the subject and marks respectively:\n") 11 | marks=int(input()) 12 | if(marks<0 or marks>100): 13 | print("Invalid mark") 14 | sys.exit(0) 15 | else: 16 | d.update({sub:marks}) 17 | l.append(d) 18 | 19 | print("The courses you have cleared are:") 20 | for i,j in d.items(): 21 | if j>=80: 22 | print(i,'\n',j) -------------------------------------------------------------------------------- /Python/Pass or Fail/exam.py: -------------------------------------------------------------------------------- 1 | import sys 2 | n=int(input("Enter the no. of subjects: ")) 3 | lst=[] 4 | passed,failed=0,0 5 | if n<=0: 6 | print("Invalid no. of subjects") 7 | sys.exit(0) 8 | else: 9 | print("Enter the marks:") 10 | for i in range(0,n): 11 | ele=int(input()) 12 | if ele<0 or ele>100: 13 | print("Invalid mark") 14 | sys.exit(0) 15 | else: 16 | lst.append(ele) 17 | for j in lst: 18 | if j<=50: 19 | failed+=1 20 | else: 21 | passed+=1 22 | print("No. of subjects passed: "+str(passed)) 23 | print("No. of subjects failed: "+str(failed)) -------------------------------------------------------------------------------- /Java/Retrieve Flight Using Flight ID/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Main{ 3 | public static void main(String[] args){ 4 | Scanner sc=new Scanner(System.in); 5 | int id=sc.nextInt(); 6 | FlightManagementSystem fms = new FlightManagementSystem(); 7 | Flight f = fms.viewFlightById(id); 8 | if(f==null){ 9 | System.out.println("Invalid Flight ID"); 10 | } 11 | else{ 12 | System.out.println("Flight ID : "+f.getFlightId()+"\nSource : "+f.getSource()+"\nDestination : "+f.getDestination()+"\nNo of seats : "+f.getNoOfSeats()+"\nFlight Fare : "+f.getFlightFare()); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Java/Register a Candidate - User defined Exception(with throw and throws)/Candidate.java: -------------------------------------------------------------------------------- 1 | 2 | public class Candidate { 3 | 4 | private String name; 5 | private String gender; 6 | private double expectedSalary; 7 | public String getName() { 8 | return name; 9 | } 10 | public void setName(String name) { 11 | this.name = name; 12 | } 13 | public String getGender() { 14 | return gender; 15 | } 16 | public void setGender(String gender) { 17 | this.gender = gender; 18 | } 19 | public double getExpectedSalary() { 20 | return expectedSalary; 21 | } 22 | public void setExpectedSalary(double expectedSalary) { 23 | this.expectedSalary = expectedSalary; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | LoginServlet 9 | LoginServlet 10 | 11 | myfiles.LoginServlet 12 | 13 | 14 | LoginServlet 15 | /LoginServlet 16 | 17 | 18 | -------------------------------------------------------------------------------- /Python/BMI Calculator/bmi_calculator.py: -------------------------------------------------------------------------------- 1 | weight=float(input("Enter the weight of the person(kg):")) 2 | height=float(input("Enter the height of the person(m):")) 3 | if height<=0 or weight<=0: 4 | print("Provide a valid input") 5 | else: 6 | bmi=weight/(height*height) 7 | if bmi>27.5: 8 | print("Your BMI is "+"{:.1f}".format(bmi)+" (High Risk).") 9 | elif bmi>23 and bmi<=27.4: 10 | print("Your BMI is "+"{:.1f}".format(bmi)+" (Moderate Risk).") 11 | elif bmi>18.5 and bmi<=22.9: 12 | print("Your BMI is "+"{:.1f}".format(bmi)+" (Low Risk).") 13 | else: 14 | print("Your BMI is "+"{:.1f}".format(bmi)+" (Risk of nutritional deficiency diseases).") -------------------------------------------------------------------------------- /Spring MVC/Holiday Party/HolidayParty/WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | SpringMVC with Hibernate Example using Annotations 8 | 9 | 10 |
11 |

Welcome to Online Registration for Holiday Party

12 | Click here for Registration 13 |
14 | 15 | -------------------------------------------------------------------------------- /Web Technology/jQuery/Window Resize/window.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | resize.html 5 | 6 | 14 | 15 | 16 |

Window resized 0 times.

17 |

Try resizing your browser window.

18 | 19 | -------------------------------------------------------------------------------- /Java/Number Palindrome/Palindrome.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Palindrome{ 3 | public static void main(String[] args){ 4 | int n,r, sum=0,temp; 5 | Scanner sc = new Scanner(System.in); 6 | n=sc.nextInt(); 7 | if(n<0){ 8 | System.out.println("Invalid Input"); 9 | } 10 | else{ 11 | temp=n; 12 | while(n>0){ 13 | r=n%10; 14 | sum=(sum*10)+r; 15 | n=n/10; 16 | } 17 | if(temp==sum) 18 | System.out.println("Palindrome"); 19 | else 20 | System.out.println("Not a Palindrome"); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Java/Power of a Number/Power.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Power{ 3 | public static void main(String[] args){ 4 | int base, exp; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the number"); 7 | base = sc.nextInt(); 8 | System.out.println("Enter the digit"); 9 | exp = sc.nextInt(); 10 | if(base<0 || exp<0){ 11 | System.out.println("Invalid Input"); 12 | } 13 | else{ 14 | long result =1 ; 15 | while(exp!=0){ 16 | result *=base; 17 | --exp; 18 | } 19 | System.out.println(result); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Spring MVC/Online Help Services/HelpServices/WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | SpringMVC with Hibernate Example using Annotations 8 | 9 | 10 |
11 |

Welcome to Online Bee-Bee Help Services

12 | Click here to use the service 13 |
14 | 15 | -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/src/main/webapp/Registration.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | Registration of Employees 4 | 5 | 6 | 7 | 8 |

Registration form

9 |
10 |
11 | Employee ID: 12 | 13 |
14 | Employee Name: 15 | 16 |
17 | Phone Number: 18 | 19 |
20 | Email: 21 | 22 |
23 | 24 |
25 | 26 | -------------------------------------------------------------------------------- /Java/Employee Loan Eligibility - Polymorphism/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | public class Main{ 3 | 4 | public static void main(String[] args){ 5 | Scanner sc=new Scanner(System.in); 6 | Employee obj2=new PermanentEmployee(25,"bala",25000); 7 | Employee obj3=new TemporaryEmployee(25,"bala",1000,12); 8 | Loan lol=new Loan(); 9 | obj2.calculateSalary(); 10 | obj3.calculateSalary(); 11 | double q=lol.calculateLoanAmount(obj2); 12 | double w=lol.calculateLoanAmount(obj3); 13 | System.out.println("p = "+obj2.getSalary()+" "+q); 14 | System.out.println("t = "+obj3.getSalary()); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /Web Technology/CSS/CSS Effect/imgeffect.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Change Image on Hover in CSS 9 | 26 | 27 | 28 |
29 | 30 | -------------------------------------------------------------------------------- /C#/Check Vowel/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Methods1{ 3 | public class Program{ 4 | public static void Main(string[] args){ 5 | char c = Convert.ToChar(Console.ReadLine()); 6 | bool b = CheckIsVowel(c); 7 | if(b) 8 | Console.Write("The given input is a vowel : true"); 9 | else 10 | Console.Write("The given input is a vowel : false"); 11 | } 12 | public static bool CheckIsVowel(char ch){ 13 | char t=char.ToLower(ch); 14 | if(t=='a' || t=='e' || t=='i' || t=='o' || t=='u') 15 | return true; 16 | else 17 | return false; 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 |

Greetings !

12 |
13 | Enter your name: 14 | 15 |
16 | 17 | -------------------------------------------------------------------------------- /Hibernate/Object Persistence/CodeSkeleton_ObjectPersistence/src/TestApplication.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import com.bean.*; 4 | import com.dao.*; 5 | import org.hibernate.*; 6 | import org.hibernate.cfg.Configuration; 7 | 8 | public class TestApplication { 9 | 10 | public static void main(String[] args) { 11 | // TODO Auto-generated method stub 12 | Configuration config=new Configuration(); 13 | SessionFactory sessionFactory=config.configure("hibernate.cfg.xml").buildSessionFactory(); 14 | Session session=sessionFactory.openSession(); 15 | CustomerDAO custDao = new CustomerDAO(); 16 | custDao.setSession(session); 17 | Customer cust=new Customer(); 18 | custDao.createCustomer(cust); 19 | 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Web Technology/jQuery/Drag an Object/drag.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 16 |
17 | 18 |

Drag me around

19 |
20 | 21 | -------------------------------------------------------------------------------- /Hibernate/Component Mapping/ComponentMapping/src/com/dao/CustomerDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import org.hibernate.Session; 4 | import org.hibernate.Transaction; 5 | 6 | import com.bean.Address; 7 | import com.bean.Customer; 8 | 9 | public class CustomerDAO { 10 | 11 | private Session session; 12 | 13 | public Session getSession() { 14 | return session; 15 | } 16 | 17 | public void setSession(Session session) { 18 | this.session = session; 19 | } 20 | 21 | public int addCustomer(Customer customer, Address address) 22 | { 23 | Transaction trans=session.beginTransaction(); 24 | customer.setAddress(address); 25 | session.save(customer); 26 | trans.commit(); 27 | return customer.getCustId(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Java/Find the highest mark/Highestmark.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Highestmark{ 3 | public static void main(String[] args) throws Exception{ 4 | int arr[]=new int[7]; 5 | Scanner sc=new Scanner(System.in); 6 | for(int i=0;i<=5;i++){ 7 | arr[i]=sc.nextInt(); 8 | if(arr[i]<0){ 9 | System.out.println("Invalid mark"); 10 | System.exit(1); 11 | } 12 | } 13 | System.out.println("Highest mark is "+high(arr)); 14 | } 15 | static int high(int[] arr){ 16 | int max=arr[0]; 17 | for(int i=1;imax) 19 | max=arr[i]; 20 | return max; 21 | } 22 | } -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Archetype Created Web Application 9 | 10 | GreetingServlet 11 | GreetingServlet 12 | 13 | myfiles.GreetingServlet 14 | 15 | 16 | GreetingServlet 17 | /GreetingServlet 18 | 19 | 20 | -------------------------------------------------------------------------------- /Java/Find and Replace/ReplaceWord.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class ReplaceWord{ 3 | public static void main(String args[]){ 4 | Scanner sc=new Scanner(System.in); 5 | boolean found; 6 | System.out.println("Enter the string:"); 7 | String first=sc.nextLine(); 8 | System.out.println("Enter the word to be searched"); 9 | String word=sc.nextLine(); 10 | System.out.println("Enter the word to be replaced"); 11 | String rep=sc.nextLine(); 12 | if(first.indexOf(word)!=-1){ 13 | String fin=first.replace(word,rep); 14 | System.out.println(fin); 15 | } 16 | else 17 | System.out.println("The word "+word+" not found"); 18 | } 19 | } -------------------------------------------------------------------------------- /Java/Retrieve Flights Based on Source and Destination/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Main{ 3 | public static void main(String[] args){ 4 | Scanner sc=new Scanner(System.in); 5 | System.out.println("Enter the source"); 6 | sc.next(); 7 | String source=sc.nextLine(); 8 | System.out.println("Enter the destination"); 9 | String dest=sc.nextLine(); 10 | FlightManagementSystem obj=new FlightManagementSystem(); 11 | ArrayList res=obj.viewFlightsBySourceDestination(source,dest); 12 | if(res!=null) 13 | System.out.println(res); 14 | else 15 | System.out.println("No flights available for the given source and destination"); 16 | } 17 | } -------------------------------------------------------------------------------- /Java/Reverse The Number/ReverseNumber.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class ReverseNumber{ 3 | public static void main(String args[]){ 4 | int num, rev=0; 5 | Scanner sc= new Scanner(System.in); 6 | System.out.println("Enter the Number:"); 7 | num = sc.nextInt(); 8 | if(num<0){ 9 | System.out.println("Number should be positive"); 10 | } 11 | // else if(num==0){ 12 | // System.out.println("Outputis:0"); 13 | // } 14 | else{ 15 | while(num!=0){ 16 | int digit = num%10; 17 | rev = rev*10 +digit; 18 | num/=10; 19 | } 20 | System.out.println("Output is:"+rev); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Python/Time Table Planning/Dates.py: -------------------------------------------------------------------------------- 1 | def is_leap(year): 2 | if(year%400==0 or year%4==0): 3 | x=1 4 | else: 5 | x=0 6 | return x 7 | 8 | def month_name(no): 9 | m=["January","February","March","April","May","June","July","August","September","October","November","December"] 10 | return m[no-1] 11 | 12 | def days_in_month(month,year): 13 | if(month==2): 14 | if(year%4==0): 15 | return 29 16 | else: 17 | return 28 18 | else: 19 | check=[1,3,5,7,8,10,12] 20 | count=0 21 | for i in range(len(check)): 22 | if(month==check[i]): 23 | count+=1 24 | return 31 25 | if(count==0): 26 | return 30 -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | FruitServlet 9 | FruitServlet 10 | 11 | myfiles.FruitServlet 12 | 13 | 14 | FruitServlet 15 | /FruitServlet 16 | 17 | 18 | -------------------------------------------------------------------------------- /Python/Armstrong Number/armstrong.py: -------------------------------------------------------------------------------- 1 | l,u=list(map(int,input("Enter the starting and ending numbers:\n").split())) 2 | counter=0 3 | if l<0 or u<0: 4 | print("Starting and ending numbers must be greater than or equal to zero") 5 | elif l>u: 6 | print("Invalid input!! Ending number should be greater than starting number") 7 | else: 8 | print("Armstrong numbers between "+str(l)+" and "+str(u)+" are:") 9 | for num in range(l,u+1): 10 | sum=0 11 | temp=num 12 | while temp>0: 13 | digit=temp%10 14 | sum+=digit**3 15 | temp//=10 16 | if num==sum: 17 | print(num) 18 | counter+=1 19 | if counter==0: 20 | print("There is no Armstrong number between these numbers") -------------------------------------------------------------------------------- /Java/String - Find and replace the character (First occurrence)/FirstOccurence.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | 3 | public class FirstOccurence{ 4 | public static void main(String[] args){ 5 | Scanner sc=new Scanner(System.in); 6 | System.out.println("Enter the string:"); 7 | String text=sc.nextLine(); 8 | System.out.println("Enter the character to be searched:"); 9 | String f=sc.nextLine(); 10 | System.out.println("Enter the character to replace:"); 11 | String rep=sc.nextLine(); 12 | if(text.indexOf(f)!=-1){ 13 | String fin=text.replaceFirst(f,rep); 14 | System.out.println(fin); 15 | } 16 | else 17 | System.out.println("character not found"); 18 | } 19 | } -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/src/main/webapp/Login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 |
12 | UserName: 13 | 14 |
15 | Password: 16 | 17 |
18 | 19 | 20 |
21 | 22 | -------------------------------------------------------------------------------- /JSP and Servlets/Shopping - HTTP Session/Shopping/src/main/webapp/Catalog.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

Welcome to e-Shopping

11 | Fruits

12 | 13 | Display Cart

14 | 15 | Logout 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /C#/Publisher Subscriber Model/Publisher.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace DelegateTemplate //DO NOT change the namespace name 8 | { 9 | public class Publisher //DO NOT change the class name 10 | { 11 | // declare delegate here 12 | public delegate void BeforeMessage(string val); 13 | //declare event of type delegate 14 | public event BeforeMessage beforeMessageEvent; 15 | 16 | //Implement the method 17 | public void newMessage(){ 18 | if(beforeMessageEvent!=null){ 19 | beforeMessageEvent.Invoke("Today is a hot day"); 20 | } 21 | } 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /C#/RectangularArray/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class Matrix 4 | { 5 | public static void Main(String[] args) 6 | { 7 | //Implement code here 8 | 9 | Console.WriteLine("Enter the number"); 10 | int r=Convert.ToInt32(Console.ReadLine()); 11 | int c=r; 12 | int[,] a=new int[r,c]; 13 | for(int i=0;ij) 16 | Console.Write("-1 "); //To lower triangle 17 | else if(j>i) 18 | Console.Write("1 ");//To upper triangle 19 | else 20 | Console.Write(a[i,j]+" ");//Its just default = 0 21 | } 22 | Console.WriteLine(); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Java/String Concatenation/Authority.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Authority{ 3 | public static void main(String args[]){ 4 | Scanner sc=new Scanner(System.in); 5 | System.out.println("Inmate's name:"); 6 | String str=sc.nextLine(); 7 | System.out.println("Inmate's father's name:"); 8 | String str2=sc.nextLine(); 9 | if(str.matches("^[a-zA-Z ]*$") && (!str.equals("")) && (str!=null) && str2.matches("^[a-zA-Z ]*$") && (!str2.equals("")) && (str!=null)){ 10 | str=str.concat(" "); 11 | str=str.concat(str2); 12 | String fin=str.toUpperCase(); 13 | System.out.println(fin); 14 | } 15 | else{ 16 | System.out.println("Invalid name"); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Hibernate/Digitoonz Animations/ManytoMany/src/TestApplication.java: -------------------------------------------------------------------------------- 1 | import org.hibernate.*; 2 | import org.hibernate.cfg.Configuration; 3 | import com.bean.*; 4 | import com.dao.*; 5 | import java.util.*; 6 | 7 | public class TestApplication { 8 | public static void main(String[] args) { 9 | Configuration config=new Configuration(); 10 | SessionFactory sessionFactory =config.configure("hibernate.cfg.xml").buildSessionFactory(); 11 | Session session=sessionFactory.openSession(); 12 | 13 | CricketDAO dao=new CricketDAO(); 14 | dao.setSession(session); 15 | Player player=new Player(); 16 | CricketMatch cricketMatch = new CricketMatch(); 17 | dao.allocatePlayertoMatch(cricketMatch.getMatchId(),player.getPlayerId()); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Python/Rhythm Composer/rhythm.py: -------------------------------------------------------------------------------- 1 | import sys 2 | def find_prime(start,end): 3 | count=0 4 | if start<0 or end<0 or start>end: 5 | print("Invalid range") 6 | sys.exit() 7 | elif start==end or start==0 or end==1: 8 | print("There is no prime numbers in this range") 9 | sys.exit() 10 | else: 11 | for num in range(start,end+1): 12 | if num>1: 13 | for i in range(2,num): 14 | if(num%i==0): 15 | break 16 | else: 17 | print(num) 18 | count+=1 19 | if(count==0): 20 | print("There is no prime numbers in this range") 21 | 22 | a=int(input()) 23 | b=int(input()) 24 | find_prime(a,b) -------------------------------------------------------------------------------- /C#/OpenableInterface/OpenableInterface.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | interface IOpenable 3 | {string OpenSesame();} 4 | public class TreasureBox:IOpenable{ 5 | public string OpenSesame(){ 6 | return "Congratulations, Here is your lucky win"; 7 | } 8 | } 9 | public class Parachute:IOpenable{ 10 | public string OpenSesame(){ 11 | return "Have a thrilling experience flying in air"; 12 | } 13 | } 14 | public class Program{ 15 | public static void Main(){ 16 | Console.WriteLine("Enter the letter found in the paper"); 17 | char c=Console.ReadLine()[0]; 18 | if(c=='T' || c=='t') 19 | Console.WriteLine(new TreasureBox().OpenSesame()); 20 | if(c=='P' || c=='p') 21 | Console.WriteLine(new Parachute().OpenSesame()); 22 | } 23 | } -------------------------------------------------------------------------------- /Hibernate/Digitoonz Animations - Report/ManytoMany/src/com/dao/CricketDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | import org.hibernate.Session; 3 | import org.hibernate.*; 4 | import com.bean.*; 5 | import java.util.*; 6 | 7 | import com.bean.CricketMatch; 8 | public class CricketDAO { 9 | 10 | private Session session; 11 | 12 | public Session getSession() { 13 | return session; 14 | } 15 | 16 | public void setSession(Session session) { 17 | this.session = session; 18 | } 19 | 20 | public CricketMatch viewMatchwithPlayerDetails(int matchId) 21 | { 22 | String hql="from CricketMatch where matchId = :matchId"; 23 | Query q=session.createQuery(hql); 24 | q.setParameter("matchId",matchId); 25 | List list=q.list(); 26 | return list.get(0); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Hibernate/Update phone no/Hibernate_update/src/com/dao/CustomerDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | import com.bean.*; 3 | import org.hibernate.Session; 4 | import org.hibernate.Transaction; 5 | 6 | public class CustomerDAO { 7 | private Session session; 8 | public void setSession(Session session){ 9 | this.session=session; 10 | } 11 | public Session getSession(){ 12 | return session; 13 | } 14 | public Customer updateCustomer(int customerId,long newphoneno){ 15 | Transaction transaction=session.beginTransaction(); 16 | Customer cobj=(Customer)session.get(Customer.class,customerId); 17 | cobj.setPhoneNo(newphoneno); 18 | session.saveOrUpdate(cobj); 19 | transaction.commit(); 20 | return cobj; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /JSP and Servlets/Shopping - HTTP Session/Shopping/src/main/webapp/Logout.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | <% 12 | HttpSession ses = session.getSession(false); 13 | 14 | /* WRITE YOUR SESSION INVALIDATION CODE HERE */ 15 | 16 | %> 17 | 18 |

YOUR CART IS EMPTIED ...



19 | 20 | Back to catalog 21 | 22 | -------------------------------------------------------------------------------- /XML and JSON/Generate XSD 4/employee.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Java/Lucky Number/LuckyNum.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class LuckyNum{ 3 | public static void main(String[] args){ 4 | Scanner sc = new Scanner(System.in); 5 | int n,m,sum = 0; 6 | System.out.println("Enter the car no:"); 7 | m = sc.nextInt(); 8 | if(m<1000){ 9 | System.out.println(m+" is not a valid car number"); 10 | } 11 | else{ 12 | while(m>0){ 13 | n=m%10; 14 | sum=sum+n; 15 | m=m/10; 16 | } 17 | if(sum%3==0 || sum%5==0 || sum%7==0){ 18 | System.out.println("Lucky Number"); 19 | } 20 | else{ 21 | System.out.println("Sorry its not my lucky number"); 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Selenium/Object Identification by id/ShopifyTest/src/com/selenium/pages/UserRegistration.java: -------------------------------------------------------------------------------- 1 | package com.selenium.pages; 2 | 3 | import org.openqa.selenium.By; 4 | import org.openqa.selenium.WebDriver; 5 | 6 | //To check if you have followed the right naming convention for the methods as mentioned in the case study. 7 | 8 | public class UserRegistration{ 9 | private WebDriver driver; 10 | //Define static variable as per requirement 11 | public static String lName; 12 | //Identify the object as per the requirement 13 | public UserRegistration(WebDriver driver) { 14 | this.driver = driver; 15 | } 16 | public void testElements(){ 17 | //Store the placeholder text as per requirement 18 | lName = driver.findElement(By.id("lastname")).getAttribute("placeholder"); 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Spring MVC/ZEE-ZEE Web Portal/LoginApp/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | dispatcher 8 | org.springframework.web.servlet.DispatcherServlet 9 | 1 10 | 11 | 12 | 13 | dispatcher 14 | / 15 | 16 | 17 | 18 | index.html 19 | 20 | 21 | -------------------------------------------------------------------------------- /Spring MVC/Online Help Services/HelpServices/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | dispatcher 8 | org.springframework.web.servlet.DispatcherServlet 9 | 1 10 | 11 | 12 | 13 | dispatcher 14 | / 15 | 16 | 17 | 18 | index.jsp 19 | 20 | 21 | -------------------------------------------------------------------------------- /Web Technology/React/Implement PropTypes/Display.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | //Add REQUIRED IMPORTS 3 | import PropTypes from 'prop-types'; 4 | 5 | class Display extends Component { 6 | //IMPLEMENT YOUR CODE HERE 7 | render(){ 8 | return( 9 |
10 |

{this.props.stockName}

11 |

{this.props.stockQty}

12 |

{this.props.currencyList}

13 |
); 14 | } 15 | } 16 | 17 | 18 | //IMPLEMENT PROPTYPES 19 | Display.propTypes={ 20 | stockName:PropTypes.string.isRequired, 21 | stockQty:PropTypes.number.isRequired, 22 | currencyList:PropTypes.array, 23 | } 24 | Display.defaultProps={ 25 | stockName:"mobile", 26 | stockQty:"10", 27 | currencyList:['dollar','rupee'], 28 | } 29 | export default Display; 30 | 31 | -------------------------------------------------------------------------------- /Java/Find Season/Season.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Season{ 3 | public static void main(String[] args){ 4 | //String a[]={"Spring","Summer","Autumn","Winter"}; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the month:"); 7 | int month = sc.nextInt(); 8 | if(month >=1 && month <=12){ 9 | if(month>=3 && month<=5) 10 | System.out.println("Season:Spring"); 11 | else if(month>=6 && month<=8) 12 | System.out.println("Season:Summer"); 13 | else if(month>=9 && month<=11) 14 | System.out.println("Season:Autumn"); 15 | else 16 | System.out.println("Season:Winter"); 17 | } 18 | else{ 19 | System.out.println("Invalid month"); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /C#/Validate Spelling Correctness/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ProgFundamentals3 //DO NOT CHANGE the name of namespace 8 | { 9 | public class Program //DO NOT CHANGE the name of class 'Program' 10 | { 11 | public static void Main(string[] args) //DO NOT CHANGE 'Main' Signature 12 | { 13 | //Implement your code here 14 | string w="CASABLANCA"; 15 | for(int i=0;i<10;i++){ 16 | Console.Write("Enter letter {0} : ",(i+1)); 17 | if(w[i]!=Console.ReadLine()[0]) 18 | Console.WriteLine("The spelling is wrong"); 19 | } 20 | 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Java/Member Manipulation/Library.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Library{ 3 | private List memberList=new ArrayList(); 4 | public void setMemberList(List l){ 5 | memberList=l; 6 | } 7 | public List getMemberList(){ 8 | return memberList; 9 | } 10 | public void addMember(Member memberObj){ 11 | memberList.add(memberObj); 12 | } 13 | public List viewAllMembers(){ 14 | return memberList; 15 | } 16 | public ListviewMembersByAddress(String address){ 17 | List l=new ArrayList(); 18 | for(Member obj:memberList){ 19 | if(obj.getAddress().equalsIgnoreCase(address)){ 20 | l.add(obj); 21 | } 22 | } 23 | return l; 24 | } 25 | } -------------------------------------------------------------------------------- /XML and JSON/Generate XSD For Breakfast Menu/food.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /C#/Implement Func Delegate/Employee.cs: -------------------------------------------------------------------------------- 1 | //THIS IS FOR REFERENCE ONLY. YOU ARE NOT REQUIRED TO MAKE ANY CHANGES HERE 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace DelegateTemplate 10 | { 11 | public class Employee 12 | { 13 | public int id { get; set; } 14 | public String ename { get; set; } 15 | public String designation { get; set; } 16 | public String empType { get; set; } 17 | 18 | public Employee() { } 19 | public Employee(int id,String ename,String designation, String empType) { 20 | this.id = id; 21 | this.ename = ename; 22 | this.designation = designation; 23 | this.empType = empType; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Hibernate/MaxiMax Store/Onetoone/src/com/bean/BonusCard.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | import javax.persistence.GeneratedValue; 3 | import javax.persistence.GenerationType; 4 | import javax.persistence.*; 5 | 6 | @Entity 7 | public class BonusCard { 8 | @Id 9 | @GeneratedValue(strategy=GenerationType.AUTO) 10 | private int cardNo; 11 | private String cardType; 12 | private int points; 13 | 14 | public int getPoints() { 15 | return points; 16 | } 17 | public void setPoints(int points) { 18 | this.points = points; 19 | } 20 | public int getCardNo() { 21 | return cardNo; 22 | } 23 | public void setCardNo(int cardNo) { 24 | this.cardNo = cardNo; 25 | } 26 | public String getCardType() { 27 | return cardType; 28 | } 29 | public void setCardType(String cardType) { 30 | this.cardType = cardType; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Hibernate/View Customer Details/Hibernate_Select/src/TestApplication.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | import com.dao.*; 3 | import org.hibernate.*; 4 | import org.hibernate.cfg.Configuration; 5 | import java.util.List; 6 | 7 | public class TestApplication { 8 | public static void main(String[] args){ 9 | Configuration config=new Configuration(); 10 | SessionFactory sf=new Configuration().configure("hibernate.cfg.xml").buildSessionFactory(); 11 | Session sess=sf.openSession(); 12 | CustomerDAO dao=new CustomerDAO(); 13 | dao.setSession(sess); 14 | List list=dao.viewCustomers(); 15 | for(Customer customer:list){ 16 | System.out.println(customer.getCustomerId()); 17 | System.out.println(customer.getCustomerName()); 18 | } 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/src/main/java/myfiles/Inventory.java: -------------------------------------------------------------------------------- 1 | package myfiles; 2 | 3 | public class Inventory 4 | { 5 | private int apple=140; 6 | private int orange=70; 7 | private int mango=110; 8 | private int grapes=115; 9 | private int pineapple=90; 10 | 11 | 12 | public int getPrice(String fname) 13 | { 14 | int fprice=0; 15 | 16 | if (fname.equalsIgnoreCase("apple")) fprice=apple; 17 | if (fname.equalsIgnoreCase("orange")) fprice=orange; 18 | if (fname.equalsIgnoreCase("mango")) fprice=mango; 19 | if (fname.equalsIgnoreCase("grapes")) fprice=grapes; 20 | if (fname.equalsIgnoreCase("pineapple")) fprice=pineapple; 21 | 22 | return fprice; 23 | 24 | } 25 | 26 | } -------------------------------------------------------------------------------- /Java/Book Detail/TestBook.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class TestBook{ 3 | public static void main(String args[]){ 4 | int p; 5 | String an, n; 6 | Book b = new Book(); 7 | Scanner s = new Scanner(System.in); 8 | System.out.println("Enter the Book name:"); 9 | n = s.next(); 10 | b.setBookName(n); 11 | System.out.println("Enter the price"); 12 | p=s.nextInt(); 13 | b.setBookPrice(p); 14 | System.out.println("Enter the Author name"); 15 | an=s.next(); 16 | b.setAuthorName(an); 17 | System.out.println("Book Details"); 18 | System.out.println("Book Name:"+b.getBookName()); 19 | System.out.println("Book Price:"+b.getBookPrice()); 20 | System.out.println("Author Name:"+b.getAuthorName()); 21 | } 22 | } -------------------------------------------------------------------------------- /Python/Student Information/employee.py: -------------------------------------------------------------------------------- 1 | class Person: 2 | def __init__(self,name,age): 3 | self.name=name 4 | self.age=age 5 | 6 | class Student(Person): 7 | def __init__(self,name,age,regno,percentage): 8 | super().__init__(name,age) 9 | self.regno=regno 10 | self.percentage=percentage 11 | def display(self): 12 | print("Name:",self.name) 13 | print("Age:",self.age) 14 | print("Rollno:",self.regno) 15 | print("Percentage:",self.percentage) 16 | 17 | print("Enter the student name:") 18 | name=input() 19 | print("Enter the student age:") 20 | age=input() 21 | print("Enter the student rollno:") 22 | regno=input() 23 | print("Enter the student percentage:") 24 | percentage=input() 25 | student_obj=Student(name,age,regno,percentage) 26 | student_obj.display() -------------------------------------------------------------------------------- /Spring Core/Autowiring/Autowiring/src/com/spring/app/Passport.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | import org.springframework.stereotype.Component; 3 | 4 | @Component 5 | public class Passport { 6 | private int passNum; 7 | private String dateOfIssue; 8 | private String dateOfExpiry; 9 | 10 | public int getPassNum(){ 11 | return passNum; 12 | } 13 | public void setPassNum(int passNum){ 14 | this.passNum=passNum; 15 | } 16 | public String getDateOfIssue(){ 17 | return dateOfIssue; 18 | } 19 | public void setDateOfIssue(String dateOfIssue){ 20 | this.dateOfIssue=dateOfIssue; 21 | } 22 | public String getDateOfExpiry(){ 23 | return dateOfExpiry; 24 | } 25 | public void setDateOfExpiry(String dateOfExpiry){ 26 | this.dateOfExpiry=dateOfExpiry; 27 | } 28 | 29 | } 30 | 31 | -------------------------------------------------------------------------------- /Spring MVC/Online Help Services/HelpServices/src/com/model/HelperBean.java: -------------------------------------------------------------------------------- 1 | package com.model; 2 | 3 | public class HelperBean { 4 | 5 | private String serviceType; 6 | private float serviceCostPerHour; 7 | private int noOfHours; 8 | 9 | public void setServiceType(String serviceType){ 10 | this.serviceType=serviceType; 11 | } 12 | public void setServiceCostPerHour(float serviceCostPerHour){ 13 | this.serviceCostPerHour=serviceCostPerHour; 14 | } 15 | public void setNoOfHours(int noOfHours){ 16 | this.noOfHours=noOfHours; 17 | } 18 | public String getServiceType(){ 19 | return this.serviceType; 20 | } 21 | public float getServiceCostPerHour(){ 22 | return this.serviceCostPerHour; 23 | } 24 | public int getNoOfHours(){ 25 | return this.noOfHours; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /C#/Publisher Subscriber Model/Subscriber1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace DelegateTemplate //DO NOT change the namespace name 8 | { 9 | public class Subscriber1 //DO NOT change the class name 10 | { 11 | private Publisher publisher; 12 | 13 | public Subscriber1(Publisher publisher) 14 | { 15 | this.publisher = publisher; 16 | //subscribe to beforeMessageEvent event here 17 | this.publisher.beforeMessageEvent +=beforeMessageEventHandler; 18 | 19 | } 20 | //Implement Event Handler 21 | public void beforeMessageEventHandler(string msg){ 22 | Console.WriteLine(msg); 23 | } 24 | 25 | 26 | } 27 | } -------------------------------------------------------------------------------- /Python/Vehicle Premium/vehicle.py: -------------------------------------------------------------------------------- 1 | class Vehicle: 2 | def __init__(self,cost,type): 3 | self.__cost=cost 4 | self.__type=type 5 | self.__premium=None 6 | def calculate_premium(self): 7 | if self.__type==1: 8 | self.__premium=0.02*self.__cost 9 | elif self.__type==2: 10 | self.__premium=0.06*self.__cost 11 | elif self.__type==3: 12 | self.__premium=0.08*self.__cost 13 | def get_premium(self): 14 | return self.__premium 15 | 16 | vehicle_cost=float(input("Enter the vehicle cost: ")) 17 | vehicle_type=int(input("Enter the type of the vehicles (1 for 2 wheeler, 2 for 4 wheeler and 3 for other types):")) 18 | vehicle_obj=Vehicle(vehicle_cost,vehicle_type) 19 | vehicle_obj.calculate_premium() 20 | print("The premium amount is: ",vehicle_obj.get_premium()) -------------------------------------------------------------------------------- /Selenium/Object Identification by name/ShopifyTest/src/com/selenium/pages/UserRegistration.java: -------------------------------------------------------------------------------- 1 | package com.selenium.pages; 2 | 3 | import org.openqa.selenium.By; 4 | import org.openqa.selenium.WebDriver; 5 | 6 | //To check if you have followed the right naming convention for the methods as mentioned in the case study. 7 | 8 | public class UserRegistration{ 9 | private WebDriver driver; 10 | 11 | //Define static variable as per requirement 12 | public static String fName; 13 | //Identify the object as per the requirement 14 | 15 | 16 | public UserRegistration(WebDriver driver) { 17 | this.driver = driver; 18 | } 19 | 20 | public void testElements(){ 21 | 22 | //Store the placeholder text as per requirement 23 | fName = driver.findElement(By.name("fname")).getAttribute("placeholder"); 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | FortiMilligrade 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | 19 | 1603950267266 20 | 21 | 30 22 | 23 | org.eclipse.core.resources.regexFilterMatcher 24 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Java/Triangle Validation/Triangle.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Triangle{ 3 | public static void main(String[] args){ 4 | int a,b,c; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the value for side1"); 7 | a=sc.nextInt(); 8 | System.out.println("Enter the value for side2"); 9 | b=sc.nextInt(); 10 | System.out.println("Enter the value for side3"); 11 | c=sc.nextInt(); 12 | if(a<=0 || b<=0 || c<=0){ 13 | System.out.println("Invalid Input"); 14 | return; 15 | } 16 | else{ 17 | if((a+b)>c && (a+c)>b && (b+c)>a) 18 | System.out.println("Sides form a Triangle"); 19 | else 20 | System.out.println("Sides does not form a Triangle"); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Maven/MavenJavaApp/MavenJavaApp/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.build.maven.java 6 | MavenJavaApp 7 | 1.0-SNAPSHOT 8 | jar 9 | 10 | 11 | 12 | com.build.java 13 | MavenJavaApp 14 | 1.0-SNAPSHOT 15 | 16 | 17 | 18 | 19 | 20 | MavenJavaApp 21 | http://maven.apache.org 22 | 23 | -------------------------------------------------------------------------------- /C#/Fruit list - ArrayList/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | public class Program //DO NOT change the class name 6 | { 7 | //Declare ArrayList as 'static' 8 | static ArrayList fruitList=new ArrayList(); 9 | public static void Main(string[] args) //DO NOT change the 'Main' method signature 10 | { 11 | string flag="no"; 12 | string fruit; 13 | do 14 | { 15 | //Implement code here 16 | Console.WriteLine("Enter Fruit Name"); 17 | fruit=Console.ReadLine(); 18 | Console.WriteLine("Add another fruit(yes/no)"); 19 | flag=Console.ReadLine(); 20 | Program.fruitList.Add(fruit); 21 | }while(flag=="yes"); 22 | // Console.WriteLine(fruitList.Count); 23 | } 24 | } -------------------------------------------------------------------------------- /Selenium/Object Identification by cssSelector/ShopifyTest/src/com/selenium/pages/UserRegistration.java: -------------------------------------------------------------------------------- 1 | package com.selenium.pages; 2 | 3 | import org.openqa.selenium.By; 4 | import org.openqa.selenium.WebDriver; 5 | 6 | //To check if you have followed the right naming convention for the methods as mentioned in the case study. 7 | 8 | public class UserRegistration{ 9 | private WebDriver driver; 10 | 11 | //Define static variable as per requirement 12 | public static String uName; 13 | 14 | //Identify the object as per the requirement 15 | 16 | 17 | public UserRegistration(WebDriver driver) { 18 | this.driver = driver; 19 | } 20 | 21 | public void testElements(){ 22 | 23 | //Store the placeholder text as per requirement 24 | uName = driver.findElement(By.cssSelector("input#username")).getAttribute("placeholder"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /C#/BooleanResult/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | class Program 3 | { 4 | static void Main(string[] args) 5 | { 6 | Console.WriteLine("Enter the value for x"); 7 | //Implement code here 8 | int x = Convert.ToInt32(Console.ReadLine()); 9 | Console.WriteLine("Enter the value for y"); 10 | //Implement code here 11 | int y=Convert.ToInt32(Console.ReadLine()); 12 | //Implement code here 13 | bool a =true; 14 | if(x0) && (pfpercentage>=0)) 18 | return true; 19 | else 20 | return false; 21 | } 22 | public void findNetSalary(){ 23 | float x=0; 24 | pfamount=(super.getSalary()*pfpercentage)/100; 25 | x=super.getSalary()-pfamount; 26 | setNetsalary(x); 27 | } 28 | } -------------------------------------------------------------------------------- /XML and JSON/Generate XSD For Mobile Store/mobile.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /C#/Publisher Subscriber Model/Subscriber2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace DelegateTemplate //DO NOT change the namespace name 8 | { 9 | public class Subscriber2 //DO NOT change the class name 10 | { 11 | private Publisher publisher; 12 | 13 | public Subscriber2(Publisher publisher) 14 | { 15 | this.publisher = publisher; 16 | //subscribe to beforeMessageEvent event 17 | this.publisher.beforeMessageEvent+=beforeMessageEventHandler; 18 | this.publisher.newMessage(); 19 | 20 | } 21 | 22 | //Implement Event Handler 23 | public void beforeMessageEventHandler(string msg){ 24 | Console.WriteLine(msg); 25 | } 26 | 27 | } 28 | } -------------------------------------------------------------------------------- /Java/Number of New Words/UniqueWords.java: -------------------------------------------------------------------------------- 1 | //import the necessary packages if needed 2 | import java.util.*; 3 | @SuppressWarnings("unchecked")//Do not delete this line 4 | public class UniqueWords 5 | { 6 | public static void main (String[] args) { 7 | Scanner sc=new Scanner(System.in); 8 | System.out.println("Enter Student's Article"); 9 | String str=sc.nextLine(); 10 | String word[]=str.split("[\\s,;:.?!]+"); 11 | TreeSet set=new TreeSet(String.CASE_INSENSITIVE_ORDER); 12 | for(String w:word) 13 | set.add(w); 14 | System.out.println("Number of words "+word.length+"\nNumber of unique words "+set.size()); 15 | System.out.println("The words are"); 16 | int i=1; 17 | for(Object w:set){ 18 | System.out.println(i+". "+w); 19 | i++; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Selenium/Logo Identification by Absolute xPath/ShopifyTest/src/com/selenium/pages/UserRegistration.java: -------------------------------------------------------------------------------- 1 | package com.selenium.pages; 2 | //import org.openqa.selenium.WebElement; 3 | import org.openqa.selenium.By; 4 | import org.openqa.selenium.WebDriver; 5 | 6 | //To check if you have followed the right naming convention for the methods as mentioned in the case study. 7 | 8 | public class UserRegistration{ 9 | private WebDriver driver; 10 | 11 | //Define static variable as per requirement 12 | public static String logoSrc; 13 | 14 | //Identify the object as per the requirement 15 | 16 | public UserRegistration(WebDriver driver) { 17 | this.driver = driver; 18 | } 19 | 20 | public void testElements(){ 21 | 22 | //Store the placeholder text as per requirement 23 | logoSrc = driver.findElement(By.xpath("/html/body/form/div[1]/img")).getAttribute("src"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Java/Bill Generation/SnacksDetails.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class SnacksDetails{ 3 | public static void main(String[] args){ 4 | int pi,puff,co; 5 | Scanner sc = new Scanner(System.in); 6 | System.out.println("Enter the no of pizzas bought:"); 7 | pi=sc.nextInt(); 8 | System.out.println("Enter the no of puffs bought:"); 9 | puff=sc.nextInt(); 10 | System.out.println("Enter the no of cool drinks bought:"); 11 | co = sc.nextInt(); 12 | int Total; 13 | Total = (100*pi)+(20*puff)+(10*co); 14 | System.out.println("Bill Details"); 15 | System.out.println("No of pizzas:"+pi); 16 | System.out.println("No of puffs:"+puff); 17 | System.out.println("No of cooldrinks:"+co); 18 | System.out.println("Total price="+Total); 19 | System.out.println("ENJOY THE SHOW!!!"); 20 | } 21 | } -------------------------------------------------------------------------------- /Maven/MavenTestApp/MavenTestApp/src/test/java/com/build/maven/java/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.command.build.maven.java; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Maven/MavenAppCommand/MavenAppCommand/src/test/java/com/build/maven/java/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.command.build.maven.java; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Hibernate/Digitoonz Animations/ManytoMany/src/com/bean/Player.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | import static javax.persistence.GenerationType.IDENTITY; 3 | import javax.persistence.GeneratedValue; 4 | import javax.persistence.*; 5 | 6 | @Entity 7 | public class Player { 8 | @Id 9 | @GeneratedValue(strategy = IDENTITY) 10 | private int playerId; 11 | private String playerName; 12 | private int runsScored; 13 | 14 | 15 | public int getPlayerId() { 16 | return playerId; 17 | } 18 | public void setPlayerId(int playerId) { 19 | this.playerId = playerId; 20 | } 21 | public String getPlayerName() { 22 | return playerName; 23 | } 24 | public void setPlayerName(String playerName) { 25 | this.playerName = playerName; 26 | } 27 | public int getRunsScored() { 28 | return runsScored; 29 | } 30 | public void setRunsScored(int runsScored) { 31 | this.runsScored = runsScored; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Java/Add Flight using JDBC/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Main{ 3 | public static void main(String[] args){ 4 | Scanner sc=new Scanner(System.in); 5 | FlightManagementSystem f=new FlightManagementSystem(); 6 | System.out.println("Enter flight details"); 7 | int id=sc.nextInt(); 8 | sc.nextLine(); 9 | String src=sc.nextLine(); 10 | String dest=sc.nextLine(); 11 | int seats=sc.nextInt(); 12 | sc.nextLine(); 13 | double fare=sc.nextDouble(); 14 | Flight ff=new Flight(id, src, dest, seats, fare); 15 | boolean b=f.addFlight(ff); 16 | if(b){ 17 | System.out.println("Flight details added successfully"); 18 | } 19 | else{ 20 | System.out.println("Addition not done"); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Java/Palindrome/Palindrome.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.lang.*; 3 | 4 | public class Palindrome{ 5 | public static void main(String[] args){ 6 | Scanner s = new Scanner(System.in); 7 | System.out.println("Enter the word :"); 8 | String word = s.nextLine(); 9 | boolean has=false; 10 | for(int i=0;i0){ 14 | for(int i=1;i<=n;i++){ 15 | if(n%i==0){ 16 | //joiner.add(String.valueOf(i)); 17 | //String out = joiner.toString(); 18 | System.out.print(i); 19 | if(n==i) 20 | System.out.print(""); 21 | else 22 | System.out.print(", "); 23 | } 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /Hibernate/Component Mapping/ComponentMapping/src/com/bean/Address.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | import javax.persistence.Embeddable; 4 | @Embeddable 5 | public class Address { 6 | private String doorNo; 7 | private String streetName; 8 | private String district; 9 | private String pincode; 10 | public String getDoorNo() { 11 | return doorNo; 12 | } 13 | public void setDoorNo(String doorNo) { 14 | this.doorNo = doorNo; 15 | } 16 | public String getStreetName() { 17 | return streetName; 18 | } 19 | public void setStreetName(String streetName) { 20 | this.streetName = streetName; 21 | } 22 | public String getDistrict() { 23 | return district; 24 | } 25 | public void setDistrict(String district) { 26 | this.district = district; 27 | } 28 | public String getPincode() { 29 | return pincode; 30 | } 31 | public void setPincode(String pincode) { 32 | this.pincode = pincode; 33 | } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Hibernate/Digitoonz Animations/ManytoMany/src/com/dao/CricketDAO.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | import org.hibernate.Session; 3 | import org.hibernate.Transaction; 4 | import com.bean.*; 5 | import java.util.*; 6 | 7 | public class CricketDAO { 8 | 9 | private Session session; 10 | 11 | public Session getSession() { 12 | return session; 13 | } 14 | 15 | public void setSession(Session session) { 16 | this.session = session; 17 | } 18 | 19 | public void allocatePlayertoMatch(int matchId,int playerId) 20 | { 21 | Transaction transaction=session.beginTransaction(); 22 | Player player=(Player)session.get(Player.class,playerId); 23 | CricketMatch cricketMatch = (CricketMatch)session.get(CricketMatch.class,matchId); 24 | 25 | Set list=cricketMatch.getPlayers(); 26 | list.add(player); 27 | cricketMatch.setPlayers(list); 28 | session.save(cricketMatch); 29 | transaction.commit(); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Java/Member Manipulation/Member.java: -------------------------------------------------------------------------------- 1 | public class Member 2 | { 3 | private int memberId; 4 | private String memberName; 5 | private String address; 6 | 7 | public Member() 8 | { 9 | 10 | } 11 | public Member(int id,String name,String add) 12 | { 13 | memberId=id; 14 | memberName=name; 15 | address=add; 16 | } 17 | public void setMemberId(int id) 18 | { 19 | memberId=id; 20 | } 21 | public void setMemberName(String name) 22 | { 23 | memberName=name; 24 | } 25 | public void setAddress(String add) 26 | { 27 | address=add; 28 | } 29 | public int getMemberId() 30 | { 31 | return memberId; 32 | } 33 | public String getMemberName() 34 | { 35 | return memberName; 36 | } 37 | public String getAddress() 38 | { 39 | return address; 40 | } 41 | 42 | } -------------------------------------------------------------------------------- /Web Technology/jQuery/Check Box Using JQuery/jqcheckbox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 14 | 15 | Red 16 | Green 17 | Blue 18 | Black 19 |
20 |
21 |

0 are checked

22 |
23 | 24 | -------------------------------------------------------------------------------- /Spring Core/Currency Converter-XML/Currency/src/com/spring/app/CurrencyConverter.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import java.util.*; 4 | public class CurrencyConverter { 5 | private MapmObj; 6 | public Map getMObj(){ 7 | return mObj; 8 | } 9 | public void setMObj(Map mObj){ 10 | this.mObj=mObj; 11 | } 12 | public int getTotalCurrencyValue(String str){ 13 | StringBuffer curr=new StringBuffer(); 14 | StringBuffer val=new StringBuffer(); 15 | for(int i=0;i 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |

Distributed Artificial Intelligence (DAI)

22 |
23 |
24 |

Artificial Super Intelligence (ASI)

25 |
26 |
27 |

Intelligence Amplification (IA))

28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Java/Employee Loan Eligibility - Polymorphism/PermanentEmployee.java: -------------------------------------------------------------------------------- 1 | //Make this class inherit the Employee class 2 | 3 | public class PermanentEmployee extends Employee 4 | { 5 | private double basicPay; 6 | 7 | // Getters and Setters 8 | 9 | public double getBasicPay() { 10 | return basicPay; 11 | } 12 | 13 | public void setBasicPay(double basicPay) { 14 | this.basicPay = basicPay; 15 | } 16 | 17 | //1. Write a public 3 argument constructor with arguments – employeeId, employeeName and basicPay. 18 | public PermanentEmployee(int employeeId,String employeeName, double basicPay){ 19 | super(employeeId,employeeName); 20 | this.basicPay=basicPay; 21 | } 22 | 23 | //2. Implement the - public void calculateSalary() - method 24 | public void calculateSalary(){ 25 | salary=basicPay-(basicPay*0.12); 26 | setSalary(salary); 27 | getSalary(); 28 | } 29 | 30 | 31 | } -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/src/main/java/myfiles/Employee.java: -------------------------------------------------------------------------------- 1 | package myfiles; 2 | 3 | public class Employee 4 | { 5 | 6 | private String empid; 7 | private String ename; 8 | private String phone; 9 | private String email; 10 | 11 | public Employee() 12 | { 13 | } 14 | 15 | /* TODO : WRITE YOUR CODE HERE .. CREATE SETTER AND GETTER METHODS */ 16 | public String getEmpid(){ 17 | return empid; 18 | } 19 | public String getEname(){ 20 | return ename; 21 | } 22 | public String getPhone(){ 23 | return phone; 24 | } 25 | public String getEmail(){ 26 | return email; 27 | } 28 | public void setEmpid(String empid){ 29 | this.empid=empid; 30 | } 31 | public void setEname(String ename){ 32 | this.ename=ename; 33 | } 34 | public void setPhone(String phone){ 35 | this.phone=phone; 36 | } 37 | public void setEmail(String email){ 38 | this.email=email; 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /Java/Compute Gain Percentage/Gain.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Gain{ 3 | public static void main(String[] args){ 4 | Scanner sc = new Scanner(System.in); 5 | int sp,cp,rep,p,fin; 6 | double pp; 7 | System.out.println("Price of old scooter:"); 8 | cp = sc.nextInt(); 9 | System.out.println("The amount spent for repair"); 10 | rep=sc.nextInt(); 11 | System.out.println("Sold Price:"); 12 | sp=sc.nextInt(); 13 | fin = cp+rep; 14 | if(sp<=0 || rep<0 || cp<=0){ 15 | System.out.println("Incorrect Inputs"); 16 | } 17 | else if(sp>fin){ 18 | p=sp-fin; 19 | pp=p*100.0/fin; 20 | System.out.println("Gain percentage is "+String.format("%.2f",pp)); 21 | } 22 | else if(sp getBalance()) 30 | return false; 31 | setBalance(amount); 32 | return true; 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /Web Technology/HTML/Simple CALCULATOR/Calculator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 |
Calculator
8 |
9 | Input1
10 | Input2
11 | Select Operation
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /XML and JSON/Generate XSD 2/hotels.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Java/Delete flight Using Flight ID/FlightManagementSystem.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.sql.Connection; 3 | import java.sql.Statement; 4 | import java.sql.SQLException; 5 | 6 | public class FlightManagementSystem{ 7 | public boolean deleteFlight(int flightId){ 8 | DB db=new DB(); 9 | try{ 10 | Connection conn=db.getConnection(); 11 | Statement st=conn.createStatement(); 12 | String q="delete from flight where flightId="+flightId; 13 | int status=st.executeUpdate(q); 14 | if(status>0){ 15 | return true; 16 | } 17 | else{ 18 | return false; 19 | } 20 | } 21 | catch(SQLException e){ 22 | System.out.println("SQL Exception"); 23 | return false; 24 | } 25 | catch(Exception e){ 26 | System.out.println("Error"); 27 | return false; 28 | } 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /Java/Increment Calculation/IncrementCalculation.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class IncrementCalculation{ 3 | public static void main(String[] args) throws Exception{ 4 | int old, sal; 5 | float hike; 6 | //float hike; 7 | Scanner sc=new Scanner(System.in); 8 | System.out.println("Enter the salary"); 9 | old=sc.nextInt(); 10 | System.out.println("Enter the Performance appraisal rating"); 11 | hike=sc.nextFloat(); 12 | if(old<=0.0 || hike<1.0 || hike>5.0){ 13 | System.out.println("Invalid Input"); 14 | } 15 | else if(hike>=1.0 && hike<=3.0){ 16 | sal=old+(old*10/100); 17 | System.out.println(sal); 18 | } 19 | else if(hike>=3.1 && hike<=4.0){ 20 | sal=old+(old*25/100); 21 | System.out.println(sal); 22 | } 23 | else{ 24 | sal=old+(old*30/100); 25 | System.out.println(sal); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Accenture Mock Test/FortiMilligrade (1)/FortiMilligrade/src/com/spring/model/Player.java: -------------------------------------------------------------------------------- 1 | package com.spring.model; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | // use appropriate annotation 6 | @Component 7 | public class Player { 8 | 9 | private String playerName; 10 | private String gender; 11 | private int age; 12 | private String phoneNumber; 13 | public String getPlayerName() { 14 | return playerName; 15 | } 16 | public void setPlayerName(String playerName) { 17 | this.playerName = playerName; 18 | } 19 | public String getGender() { 20 | return gender; 21 | } 22 | public void setGender(String gender) { 23 | this.gender = gender; 24 | } 25 | public int getAge() { 26 | return age; 27 | } 28 | public void setAge(int age) { 29 | this.age = age; 30 | } 31 | public String getPhoneNumber() { 32 | return phoneNumber; 33 | } 34 | public void setPhoneNumber(String phoneNumber) { 35 | this.phoneNumber = phoneNumber; 36 | } 37 | 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /Spring MVC/Online Help Services/HelpServices/src/com/service/HelperService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | import com.model.HelperBean; 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service 6 | public class HelperService { 7 | public double calculateTotalCost(HelperBean helpeBean){ 8 | String type=helpeBean.getServiceType(); 9 | int x; 10 | switch(type){ 11 | case "ACService":helpeBean.setServiceCostPerHour(400f); 12 | x=(helpeBean.getNoOfHours()); 13 | return 400.0*x; 14 | 15 | case "WashingMachineService":helpeBean.setServiceCostPerHour(500f); 16 | x=(helpeBean.getNoOfHours()); 17 | return 500.0*x; 18 | 19 | case "RefrigeratorService":helpeBean.setServiceCostPerHour(300f); 20 | x=(helpeBean.getNoOfHours()); 21 | return 300.0*x; 22 | } 23 | return 0.0; 24 | } 25 | 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Hibernate/Update phone no/Hibernate_update/src/TestApplication.java: -------------------------------------------------------------------------------- 1 | import com.bean.*; 2 | import com.dao.*; 3 | import org.hibernate.*; 4 | import org.hibernate.SessionFactory; 5 | import org.hibernate.Session; 6 | import org.hibernate.cfg.Configuration; 7 | import java.util.*; 8 | import java.io.*; 9 | 10 | public class TestApplication { 11 | public static void main(String args[]) throws IOException{ 12 | BufferedReader sc=new BufferedReader(new InputStreamReader(System.in)); 13 | Configuration config=new Configuration(); 14 | SessionFactory sessionFactory=config.configure("hibernate.cfg.xml").buildSessionFactory(); 15 | CustomerDAO cdao=new CustomerDAO(); 16 | Session session=sessionFactory.openSession(); 17 | cdao.setSession(session); 18 | cdao.updateCustomer(101,Long.parseLong(sc.readLine())); 19 | cdao.updateCustomer(102,Long.parseLong(sc.readLine())); 20 | cdao.updateCustomer(103,Long.parseLong(sc.readLine())); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Hibernate/Object Persistence/CodeSkeleton_ObjectPersistence/src/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | create 10 | org.hibernate.dialect.Oracle10gDialect 11 | jdbc:oracle:thin:@127.0.0.1:1521:XE 12 | oracle.jdbc.driver.OracleDriver 13 | ${hibernate_username} 14 | ${hibernate_password} 15 | true 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Web Technology/React/Create a Welcome Component/Welcome.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | class Welcome extends Component { 4 | //IMPLEMENT YOUR CODE 5 | 6 | render(){ 7 | return( 8 |
9 |

Welcome User

10 |

What is React? React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called "components".

11 | 12 |
13 | ); 14 | } 15 | } 16 | 17 | class DateComp extends Component{ 18 | constructor(){ 19 | super(); 20 | let d=new Date(); 21 | let dat="Dated:"+d.getDate()+"/"+(d.getMonth()+1)+"/"+d.getFullYear(); 22 | this.state={dat:dat}; 23 | } 24 | render(){ 25 | return( 26 |
27 | {this.state.dat} 28 |
29 | ); 30 | } 31 | } 32 | 33 | export {DateComp} 34 | export default Welcome; 35 | -------------------------------------------------------------------------------- /JSP and Servlets/Greeting App/GreetingWeb/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | GreetingWeb 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1603950267277 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Java/Employee Salary Calculation/Employee.java: -------------------------------------------------------------------------------- 1 | public class Employee{ 2 | private int employeeId; 3 | private String employeeName; 4 | private double salary; 5 | private double netSalary; 6 | public void setEmployeeId(int id){ 7 | this.employeeId=id; 8 | } 9 | public int getEmployeeId(){ 10 | return employeeId; 11 | } 12 | public void setEmployeeName(String name){ 13 | this.employeeName=name; 14 | } 15 | public String getEmployeeName(){ 16 | return employeeName; 17 | } 18 | public void setSalary(double sal){ 19 | this.salary=sal; 20 | } 21 | public double getSalary(){ 22 | return salary; 23 | } 24 | public void setNetSalary(double net){ 25 | this.netSalary=net; 26 | } 27 | public void calculateNetSalary(int pfp){ 28 | double netSalary=salary-(salary*pfp/100); 29 | setNetSalary(netSalary); 30 | } 31 | public double getNetSalary(){ 32 | return netSalary; 33 | } 34 | } -------------------------------------------------------------------------------- /Java/Numerology/Numerology.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Numerology{ 3 | public static void main(String[] args){ 4 | Scanner sc=new Scanner(System.in); 5 | int n[][]={{'A',1},{'B',2},{'C',3},{'D',4},{'E',5},{'F',8},{'G',3},{'H',5},{'I',1},{'J',1},{'K',2},{'L',3},{'M',4},{'N',5},{'O',7},{'P',8},{'Q',1},{'R',2},{'S',3},{'T',4},{'U',6},{'V',6},{'W',6},{'X',5},{'Y',1},{'Z',7}}; 6 | System.out.println("Enter your name:"); 7 | String str=sc.nextLine(); 8 | int len=str.length(); 9 | for(int i=0;i 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /JSP and Servlets/Login Scenario/LoginScenario/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | LoginScenario 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1603950267290 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /JSP and Servlets/Shopping - HTTP Session/Shopping/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Shopping 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1603950267312 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Hibernate/Country - State(OneToMany Bi-Directional)/CountryState/src/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | jdbc:oracle:thin:@127.0.0.1:1521:XE 10 | oracle.jdbc.driver.OracleDriver 11 | ${hibernate_username} 12 | ${hibernate_password} 13 | org.hibernate.dialect.Oracle10gDialect 14 | update 15 | true 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Employee 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1603950267253 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /JSP and Servlets/Price List - with Model class/PriceList/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | PriceList 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | 25 | 1603950267302 26 | 27 | 30 28 | 29 | org.eclipse.core.resources.regexFilterMatcher 30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Maven/MavenPlugin/MavenCompilerPlugin/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.build.maven.java 6 | MavenCompilerPlugin 7 | 1.0-SNAPSHOT 8 | jar 9 | 10 | 11 | 12 | MavenCompilerPlugin 13 | http://maven.apache.org 14 | 15 | 16 | 17 | com.build.java 18 | MavenCompilerPlugin 19 | 1.0-SNAPSHOT 20 | 21 | 1.8 22 | 1.8 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Web Technology/React/Async Request/Async.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import axios from 'axios'; 3 | 4 | class Async extends Component { 5 | //IMPLEMENT YOUR CODE HERE. 6 | constructor(props) { 7 | //IMPLEMENT CODE HERE. Declare "articleList" as state variable 8 | super() 9 | this.state = {articleList: []} 10 | this.componentDidMount = this.componentDidMount.bind(this) 11 | } 12 | componentWillMount(){ 13 | //IMPLEMENT ANY CODE REQUIRED 14 | } 15 | render() 16 | { 17 | return( 18 |
19 | {this.state.articleList.map(element => ( 20 |

{element.id} {element.title} {element.date}

))} 21 |
22 | ) 23 | } 24 | async componentDidMount(){ 25 | //IMPLEMENT CODE HERE 26 | try{ 27 | await axios.get("articles.json").then(data => this.setState({ articleList: data.data})) 28 | } 29 | catch(e){} 30 | } 31 | } 32 | 33 | export default Async; 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Web Technology/React/Create Parent and Child Component/Welcome.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | 4 | class Welcome extends Component { 5 | 6 | // IMPLEMENT YOUR CODE HERE 7 | 8 | render(){ 9 | return( 10 |
11 |

Welcome User

12 |

What is React? React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called "components".

13 | 14 |
15 | ); 16 | } 17 | } 18 | 19 | class DateComp extends Component{ 20 | constructor(){ 21 | super(); 22 | let d=new Date(); 23 | let dat="Dated:"+d.getDate()+"/"+(d.getMonth()+1)+"/"+d.getFullYear(); 24 | this.state={dat:dat}; 25 | } 26 | render(){ 27 | return( 28 |
29 | {this.state.dat} 30 |
31 | ); 32 | } 33 | } 34 | 35 | export {DateComp} 36 | export default Welcome; 37 | -------------------------------------------------------------------------------- /Hibernate/MaxiMax Store/Onetoone/src/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | jdbc:oracle:thin:@127.0.0.1:1521:XE 10 | oracle.jdbc.driver.OracleDriver 11 | ${hibernate_username} 12 | ${hibernate_password} 13 | org.hibernate.dialect.Oracle10gDialect 14 | create 15 | true 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Java/Divide two numbers - Use finally/Division.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | public class Division{ 3 | public String divideTwoNumbers(int num1, int num2){ 4 | int quot=-1; 5 | try{ 6 | quot=num1/num2; 7 | } 8 | catch(ArithmeticException e){ 9 | }finally{ 10 | if(quot!=-1) 11 | return ("The answer is "+quot+". Thanks for using the application."); 12 | else 13 | return ("Division by zero is not possible. Thanks for using the application."); 14 | } 15 | } 16 | public static void main(String[] args){ 17 | Division div=new Division(); 18 | System.out.println("Enter the numbers"); 19 | Scanner sc=new Scanner(System.in); 20 | int num1=sc.nextInt(); 21 | int num2=sc.nextInt(); 22 | try{ 23 | System.out.println(div.divideTwoNumbers(num1,num2)); 24 | } 25 | catch(ArithmeticException e){ 26 | System.out.println(e.getMessage()); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Python/Search Student Data/update_dictionary.py: -------------------------------------------------------------------------------- 1 | import sys 2 | l=[] 3 | l1=[] 4 | n=int(input('Enter the no of student details to be created :')) 5 | if(n<=0): 6 | print('Invalid Input') 7 | sys.exit(0) 8 | else: 9 | for i in range(0,n): 10 | name=input('Name:') 11 | age=int(input('Age:')) 12 | if(age>=10 and age<=20): 13 | loc=input('Location:') 14 | d={'Name':name,'Age':age,'Location':loc} 15 | l.append(d) 16 | else: 17 | print('Invalid Input') 18 | sys.exit(0) 19 | 20 | print("Here's the list of student details :") 21 | for i in l: 22 | print(i) 23 | 24 | 25 | t=input('Enter the training location:') 26 | for i in l: 27 | if(i['Location'].casefold()==t.casefold()): 28 | l1.append(i['Name']) 29 | 30 | if len(l1)>0: 31 | print('Student(s) enrolled in this training location:') 32 | for i in l1: 33 | print(i) 34 | else: 35 | print('Invalid location') -------------------------------------------------------------------------------- /Hibernate/Component Mapping/ComponentMapping/src/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | jdbc:oracle:thin:@127.0.0.1:1521:XE 10 | oracle.jdbc.driver.OracleDriver 11 | ${hibernate_username} 12 | ${hibernate_password} 13 | org.hibernate.dialect.Oracle10gDialect 14 | create 15 | true 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Hibernate/View Customer Details/Hibernate_Select/src/com/bean/Customer.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | import javax.persistence.*; 3 | @Entity 4 | @Table(name="customer_master") 5 | 6 | public class Customer { 7 | @Id 8 | @GeneratedValue(strategy=GenerationType.AUTO) 9 | private int customerId; 10 | private String customerName; 11 | private String emailId; 12 | private long phoneNo; 13 | 14 | public int getCustomerId(){ 15 | return customerId; 16 | } 17 | public void setCustomerId(int customerId){ 18 | this.customerId=customerId; 19 | } 20 | public String getCustomerName(){ 21 | return customerName; 22 | } 23 | public void setCustomerName(String customerName){ 24 | this.customerName=customerName; 25 | } 26 | public String getEmailId(){ 27 | return emailId; 28 | } 29 | public void setEmailId(String emailId){ 30 | this.emailId=emailId; 31 | } 32 | public long getPhoneNo(){ 33 | return phoneNo; 34 | } 35 | public void setPhoneNo(long phoneNo){ 36 | this.phoneNo=phoneNo; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Web Technology/HTML/ZEN Bank - Login/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 14 | 15 | 16 |

ZEN BANK - LOGIN

17 | User Name 18 |
19 | Password
20 | 21 |
22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Hibernate/Country - State(OneToMany Bi-Directional)/CountryState/src/com/bean/State.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | import javax.persistence.*; 3 | 4 | @Entity 5 | @Table(name="State") 6 | public class State { 7 | @Id 8 | private String stateName; 9 | private String language; 10 | private long population; 11 | @ManyToOne(fetch=FetchType.LAZY, optional=false) 12 | @JoinColumn(name="countryName") 13 | 14 | private Country country; 15 | public void setStateName(String stateName){ 16 | this.stateName=stateName; 17 | } 18 | public void setLanguage(String language){ 19 | this.language=language; 20 | } 21 | public void setPopulation(long population){ 22 | this.population=population; 23 | } 24 | public void setCountry(Country country){ 25 | this.country=country; 26 | } 27 | public String getStateName(){ 28 | return stateName; 29 | } 30 | public String getLanguage(){ 31 | return language; 32 | } 33 | public long getPopulation(){ 34 | return population; 35 | } 36 | public Country getCountry(){ 37 | return country; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Hibernate/Digitoonz Animations/ManytoMany/src/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | jdbc:oracle:thin:@127.0.0.1:1521:XE 11 | oracle.jdbc.driver.OracleDriver 12 | ${hibernate_username} 13 | ${hibernate_password} 14 | org.hibernate.dialect.Oracle10gDialect 15 | update 16 | true 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Hibernate/View Customer Details/Hibernate_Select/src/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | update 10 | org.hibernate.dialect.Oracle10gDialect 11 | jdbc:oracle:thin:@127.0.0.1:1521:XE 12 | ${hibernate_username} 13 | ${hibernate_password} 14 | oracle.jdbc.driver.OracleDriver 15 | true 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /JSP and Servlets/Employee Registration - Use Bean/Employee/src/main/webapp/userdetails.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 |

You have entered below details:

13 | 14 | 15 |
16 |
17 |
18 |
19 | 20 |

21 | Back to Registration 22 | 23 | -------------------------------------------------------------------------------- /Java/BankAccountDetails/Account.java: -------------------------------------------------------------------------------- 1 | public class Account{ 2 | private int accountId; 3 | private String accountType; 4 | private int balance; 5 | 6 | public int getAccountId(){ 7 | return this.accountId; 8 | } 9 | public void setAccountId(int accountid){ 10 | this.accountId=accountid; 11 | } 12 | public String getAccountType(){ 13 | return this.accountType; 14 | } 15 | public void setAccountType(String accountType){ 16 | this.accountType=accountType; 17 | } 18 | public int getBalance(){ 19 | return this.balance; 20 | } 21 | public void setBalance(int balance){ 22 | this.balance=balance; 23 | } 24 | public boolean withdraw(int amt){ 25 | if(balance>=amt){ 26 | balance=balance-amt;; 27 | System.out.println("Balance amount after withdraw: "+balance); 28 | return true; 29 | } 30 | else{ 31 | System.out.println("Sorry!!! No enough balance"); 32 | return false; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Java/Sort the first and second half of an array/ArraySort.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class ArraySort{ 3 | public static void main(String args[]){ 4 | Scanner sc=new Scanner(System.in); 5 | System.out.println("Enter the size of an array:"); 6 | int n=sc.nextInt(); 7 | if(n>0){ 8 | Integer[] arr=new Integer[n]; 9 | System.out.println("Enter the elements:"); 10 | for(int i=0;i 2 | 5 | 6 | 7 | 8 | 9 | update 10 | org.hibernate.dialect.Oracle10gDialect 11 | jdbc:oracle:thin:@127.0.0.1:1521:XE 12 | ${hibernate_username} 13 | ${hibernate_password} 14 | oracle.jdbc.driver.OracleDriver 15 | true 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Java/Add Flight using JDBC/DB.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | import java.io.FileInputStream; 4 | import java.io.IOException; 5 | import java.sql.Connection; 6 | import java.sql.DriverManager; 7 | import java.sql.SQLException; 8 | import java.util.Properties; 9 | 10 | public class DB { 11 | 12 | private static Connection con = null; 13 | private static Properties props = new Properties(); 14 | 15 | 16 | //ENSURE YOU DON'T CHANGE THE BELOW CODE WHEN YOU SUBMIT 17 | public static Connection getConnection() throws ClassNotFoundException, SQLException { 18 | try{ 19 | 20 | FileInputStream fis = null; 21 | fis = new FileInputStream("database.properties"); 22 | props.load(fis); 23 | 24 | // load the Driver Class 25 | Class.forName(props.getProperty("DB_DRIVER_CLASS")); 26 | 27 | // create the connection now 28 | con = DriverManager.getConnection(props.getProperty("DB_URL"),props.getProperty("DB_USERNAME"),props.getProperty("DB_PASSWORD")); 29 | } 30 | catch(IOException e){ 31 | e.printStackTrace(); 32 | } 33 | return con; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Java/Contact Details of Hosteller/Student.java: -------------------------------------------------------------------------------- 1 | public class Student{ 2 | protected int studentId; 3 | protected String name; 4 | protected int departmentId; 5 | protected String gender; 6 | protected String phone; 7 | public int getStudentId(){ 8 | return this.studentId; 9 | } 10 | public void setStudentId(int studentId){ 11 | this.studentId=studentId; 12 | } 13 | public String getName(){ 14 | return this.name; 15 | } 16 | public void setName(String name){ 17 | this.name=name; 18 | } 19 | public int getDepartmentId(){ 20 | return this.departmentId; 21 | } 22 | public void setDepartmentId(int departmentId){ 23 | this.departmentId=departmentId; 24 | } 25 | public String getGender(){ 26 | return this.gender; 27 | } 28 | public void setGender(String gender){ 29 | this.gender=gender; 30 | } 31 | public String getPhone(){ 32 | return this.phone; 33 | } 34 | public void setPhone(String phone){ 35 | this.phone=phone; 36 | } 37 | } --------------------------------------------------------------------------------