├── Spring Core, Maven ├── Go Go Parcel Service │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── charges.properties │ │ │ └── java │ │ │ └── com │ │ │ └── spring │ │ │ ├── exception │ │ │ └── InvalidParcelWeightException.java │ │ │ ├── model │ │ │ ├── ServiceChargeInfo.java │ │ │ └── Courier.java │ │ │ └── bo │ │ │ └── CourierBO.java │ ├── target │ │ └── classes │ │ │ ├── charges.properties │ │ │ └── com │ │ │ └── spring │ │ │ ├── bo │ │ │ └── CourierBO.class │ │ │ ├── main │ │ │ └── Driver.class │ │ │ ├── model │ │ │ ├── Courier.class │ │ │ └── ServiceChargeInfo.class │ │ │ ├── service │ │ │ └── CourierService.class │ │ │ └── exception │ │ │ └── InvalidParcelWeightException.class │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ └── .idea │ │ ├── .gitignore │ │ ├── encodings.xml │ │ ├── modules.xml │ │ ├── misc.xml │ │ ├── libraries │ │ ├── Maven__junit_junit_3_8_1.xml │ │ ├── Maven__commons_logging_commons_logging_1_2.xml │ │ ├── Maven__org_springframework_spring_aop_4_3_10_RELEASE.xml │ │ ├── Maven__org_springframework_spring_core_4_3_10_RELEASE.xml │ │ ├── Maven__org_springframework_spring_beans_4_3_10_RELEASE.xml │ │ ├── Maven__org_springframework_spring_context_4_3_10_RELEASE.xml │ │ └── Maven__org_springframework_spring_expression_4_3_10_RELEASE.xml │ │ ├── compiler.xml │ │ └── jarRepositories.xml ├── EBanking │ └── accounts.properties ├── Patient Management │ └── PatientManagement │ │ ├── PatientManagement.iml │ │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ │ ├── target │ │ ├── classes │ │ │ ├── patient_details.properties │ │ │ └── com │ │ │ │ └── cts │ │ │ │ └── patient │ │ │ │ ├── Main.class │ │ │ │ ├── model │ │ │ │ └── Patient.class │ │ │ │ ├── config │ │ │ │ └── AppConfig.class │ │ │ │ └── service │ │ │ │ └── PatientService.class │ │ └── test-classes │ │ │ └── com │ │ │ └── cts │ │ │ └── patient │ │ │ └── AppTest.class │ │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── patient_details.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── cts │ │ │ │ └── patient │ │ │ │ ├── Main.java │ │ │ │ └── config │ │ │ │ └── AppConfig.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── cts │ │ │ └── patient │ │ │ └── AppTest.java │ │ └── .idea │ │ ├── .gitignore │ │ ├── encodings.xml │ │ ├── misc.xml │ │ ├── compiler.xml │ │ └── jarRepositories.xml ├── Billing Software Application │ ├── connection.properties │ ├── ProductDao.java │ ├── createScripts.sql │ └── BillingException.java ├── Constructor Injection │ ├── Driver.java │ ├── pom.xml │ └── applicationContext.xml ├── Passport Service │ ├── HeadPassportOffice.java │ ├── Document.java │ ├── AppConfig.java │ └── ChennaiPassportOffice.java ├── EngineAnalysis │ ├── PetrolEngine.java │ ├── DieselEngine.java │ ├── Car.java │ └── Engine.java ├── DBConfig-SetterBasedInjection │ ├── EmployeeDAO.java │ ├── pom.xml │ ├── Main.java │ └── DBConfig.java ├── SpringAopDemo │ └── AopConfig.java ├── Customer-Address-Scope │ ├── beans.xml │ ├── Address.java │ ├── pom.xml │ ├── Customer.java │ └── Driver.java ├── CurrencyConverter-Collections │ ├── Driver.java │ ├── beans.xml │ ├── pom.xml │ └── CurrencyConverter.java ├── Customer-Address Inner Bean │ ├── pom.xml │ ├── AddressBook.java │ └── Address.java ├── EZEE Transport │ ├── Vehicle.java │ └── Main.java └── Autowiring │ ├── Driver.java │ └── Employee.java ├── Java Programming Fundamentals ├── Retriving Data from file │ ├── log.txt │ ├── README.md │ └── FileDemo.java ├── Shape - Area Volume Calculator │ ├── Spatial.java │ ├── Shape.java │ ├── Sphere.java │ ├── Triangle.java │ ├── Rectangle.java │ └── Cube.java ├── Validate Name │ └── Validate.java ├── Check Number Type │ ├── NumberType.java │ └── NumberTypeUtility.java ├── Vehicle-Loan-Insurance - Use Interface │ ├── Loan.java │ ├── Insurance.java │ └── Main.java ├── Bank Account - Interface │ ├── MaintenanceCharge.java │ ├── CurrentAccount.java │ └── SavingsAccount.java ├── Collage Account │ └── TuitionFee.java ├── Travel Agency │ ├── question.pdf │ └── CommissionInfo.java ├── DreamTek Company │ └── picture.jpg ├── String Concatenation │ ├── question.pdf │ └── javacode.java ├── Search for Trains - JDBC │ ├── question.pdf │ └── Database.properties ├── Employee Loan Eligibility │ ├── question.pdf │ └── Employee.java ├── Placement Enrollment Count │ └── question.pdf ├── Auditing │ └── EmployeeAudit.java ├── Retrieve customer count based on loan type │ ├── database.properties.txt │ └── script.sql ├── Retrieve ID and Price of mobiles with in the range │ ├── database.properties.txt │ ├── script.sql │ └── Main.java ├── Register a Candidate - User defined Exception(with throw and throws) │ ├── InvalidSalaryException.java │ └── Candidate.java ├── Add Flight using JDBC │ ├── database.properties │ └── Main.java ├── Account Manipulation - Abstract Class │ ├── Main.java │ └── SavingsAccount.java ├── Display Characters │ ├── AsciValue.java │ └── README.md ├── Employee Loan Eligibility - Polymorphism │ ├── Loan.java │ ├── Main.java │ └── PermanentEmployee.java ├── Player Selection System_JDBC │ ├── database.properties │ └── Main.java ├── Contact Details of Hosteller │ └── Hosteller.java ├── Number Palindrome │ └── README.md ├── Bill Generator │ └── README.md ├── InitCap │ └── README.md ├── Validate PAN │ ├── README.md │ └── PanCard.java ├── Book Manipulation │ └── Book.java ├── Persist Employee │ └── Main.java ├── Employee ID Validation │ ├── UserMain.java │ └── README.md ├── Find Season │ └── README.md ├── ZeeZee Bank │ └── README.md ├── Factors of a Number │ ├── README.md │ └── FindFactor.java ├── Employee Promotion │ └── Employee.java ├── Member Manipulation │ ├── Library.java │ └── Member.java ├── Print unique characters │ └── README.md ├── List of prime numbers │ └── README.md ├── Batting Average │ └── com │ │ └── utility │ │ └── Player.java ├── Find and Replace │ └── ReplaceWord.java ├── Lucky Number │ ├── README.md │ └── LuckyNum.java ├── Fruit Basket Estimation │ ├── FruitBasket.java │ └── FruitBasketUtility.java ├── Cumulative sun in an array │ └── CumulativeSum.java ├── Numerology │ └── README.md ├── Insurance Bazaar │ └── com │ │ └── utility │ │ └── Bazaar.java └── Palindrome │ └── README.md ├── .github ├── FUNDING.yml ├── auto_assign.yml ├── config.yml └── no-response.yml ├── SQL Programming ├── Car rental system - add new column │ ├── query.sql │ └── README.md ├── Hostel-Insert Student Records set2 │ ├── ddl4.sql │ ├── database_diagram.png │ └── README.md ├── Hunger eats - change datatype │ ├── sample.sql │ └── README.md ├── Hunger eats - Change the field name │ ├── sample.sql │ └── README.md ├── Hunger eats - update table │ ├── sample.sql │ ├── table_data.png │ └── README.md ├── Total sale daywise │ ├── sample.sql │ └── README.md ├── Customer mail details │ ├── sample.sql │ └── README.md ├── No of time rented by each car │ ├── query.sql │ └── README.md ├── database_1.jpg ├── database_2.png ├── database_3.png ├── Number of Tickets Booked │ ├── query.sql │ └── README.md..txt ├── Password Generation │ ├── query.sql │ └── question.pdf ├── Concatenating Details │ ├── singlerow3.sql │ └── README.md ├── Cars not taken for rent │ ├── query.sql │ └── README.md ├── Hotel_info │ ├── sample.sql │ └── README.md ├── Car & owner details based on car type │ ├── query.sql │ └── README.md ├── Department name based on block number │ ├── bselect3.sql │ └── README.md ├── Customers having gmail id │ ├── query.sql │ └── READEME.md ├── Username and password │ ├── question.docx │ └── query.sql ├── Customer contact details │ ├── query.sql │ └── README.md ├── Customer using HDFC bank │ ├── question.pdf │ └── query.sql ├── Car details based on type and name │ ├── query.sql │ └── README.md ├── Delivery Partner details based on rating │ ├── sample.sql │ └── README.md ├── Credential details │ ├── query.sql │ └── README.md ├── car rental system - Insert values │ ├── table_data.png │ ├── README.md │ └── query.sql ├── Insert Records - Department │ ├── insert.sql │ └── README.md ├── Maruthi car owner details │ ├── query.sql │ └── README.md ├── Rental details based on date │ ├── query.sql │ └── README.md ├── Minimum & Maximum Discount Amount │ ├── database_diagram.png │ ├── group3.sql │ └── README.md ├── Patient Appointment details Based On Month │ ├── database_diagram.png │ ├── join3.sql │ └── README.md ├── Patient Appointment Details based on reason │ ├── database_diagram.png │ ├── query.sql │ └── README.md ├── Car rental system - Create Table │ ├── query.sql │ └── README.md ├── Hotels not taken orders in a specific month │ ├── sample.sql │ └── README.md ├── Student and their Department Based on City │ ├── joins3.sql │ └── README.md ├── Hotels that took order more than five times │ └── sample.sql ├── Hotels that took order based on month │ ├── sample.sql │ └── README.md ├── Order details │ ├── sample.sql │ └── README.md ├── Review of delivery partner based on rating │ ├── sample.sql │ └── README.md ├── Buses based on Source and Destination │ ├── readme.md │ └── query.sql └── Movie-Modify the datatype set2 │ ├── dml2.sql │ └── README.md ├── Unit Testing, Code Quality ├── Test Call Back │ └── TestCallback │ │ ├── TestCallback.iml │ │ ├── src │ │ ├── main │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── cts │ │ │ │ └── academy │ │ │ │ ├── dao │ │ │ │ └── TrainerCohortMapDAO.java │ │ │ │ ├── model │ │ │ │ └── Cohort.java │ │ │ │ └── test │ │ │ │ └── Main.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── cts │ │ │ └── academy │ │ │ └── AppTest.java │ │ ├── .idea │ │ ├── .gitignore │ │ ├── encodings.xml │ │ ├── misc.xml │ │ ├── compiler.xml │ │ └── jarRepositories.xml │ │ └── target │ │ ├── classes │ │ └── com │ │ │ └── cts │ │ │ └── academy │ │ │ ├── test │ │ │ ├── Main.class │ │ │ ├── TrainerCohortMapDAOTest$1.class │ │ │ └── TrainerCohortMapDAOTest.class │ │ │ ├── model │ │ │ └── Cohort.class │ │ │ └── dao │ │ │ └── TrainerCohortMapDAO.class │ │ └── test-classes │ │ └── com │ │ └── cts │ │ └── academy │ │ └── AppTest.class ├── Movie Ticket Booking │ ├── .settings │ │ ├── org.eclipse.jdt.apt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── target │ │ ├── classes │ │ │ ├── BookAMovie.class │ │ │ ├── MovieTicket.class │ │ │ └── InvalidMovieTicketException.class │ │ └── test-classes │ │ │ ├── Main.class │ │ │ └── BookAMovieTest.class │ └── src │ │ ├── main │ │ └── java │ │ │ └── InvalidMovieTicketException.java │ │ └── test │ │ └── java │ │ └── Main.java ├── Project Allocation Refactoring │ ├── bin │ │ └── project │ │ │ ├── Employee.class │ │ │ ├── Project.class │ │ │ ├── EmployeeDAO.class │ │ │ ├── ProjectDAO.class │ │ │ ├── ProjectAllocation.class │ │ │ └── ProjectAllocationDAO.class │ ├── .classpath │ ├── src │ │ └── project │ │ │ ├── EmployeeDAO.java │ │ │ └── ProjectDAO.java │ ├── .project │ └── .settings │ │ └── org.eclipse.jdt.core.prefs ├── Product Login Test suite │ ├── TestSuiteRunner.java │ ├── LoginDAO.java │ ├── ProductDAO.java │ ├── Login.java │ ├── UserInterface.java │ └── Product.java ├── TestMockDB │ ├── AccountTransactionException.java │ └── Main.java ├── Verify Call - JUnit using Mockito │ ├── Book.java │ ├── GenerateISBN.java │ └── Main.java ├── LMS Refactoring │ ├── BookDAO.java │ ├── Book.java │ └── MemberDAO.java ├── Testing Using Assertion │ └── UserInterface.java ├── Electricity Bill │ ├── UserInterface.java │ └── EBBill.java └── Parameterized │ ├── RainbowJewellersService.java │ └── RainbowJewellers.java ├── Spring MVC and Spring Boot ├── ICT │ ├── image_1.png │ ├── image_2.png │ ├── image_3.png │ ├── image_4.png │ ├── image_5.png │ ├── image_6.png │ ├── image_7.png │ ├── image_8.png │ ├── image_9.png │ ├── image_10.png │ ├── image_11.png │ ├── image_12.png │ └── TMS │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ ├── messages_de.properties │ │ │ │ ├── messages_fr.properties │ │ │ │ └── messages.properties │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ ├── service │ │ │ │ │ └── TaxService.java │ │ │ │ │ └── TmsApplication.java │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ └── jsp │ │ │ │ └── result.jsp │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── TmsApplicationTests.java │ │ └── .gitignore ├── Body Mass Index │ ├── application.properties │ ├── BodyMassIndexApplication.java │ └── bmiStatus.jsp ├── Online Help Service │ └── HelpServices │ │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── application.properties │ │ │ ├── webapp │ │ │ │ └── WEB-INF │ │ │ │ │ └── views │ │ │ │ │ └── helpdesk.jsp │ │ │ └── java │ │ │ │ └── com │ │ │ │ ├── example │ │ │ │ └── demo │ │ │ │ │ └── HelpServicesApplication.java │ │ │ │ ├── service │ │ │ │ └── HelperService.java │ │ │ │ └── model │ │ │ │ └── HelperBean.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── demo │ │ │ └── HelpServicesApplicationTests.java │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ └── .gitignore ├── BakingoCakeService │ ├── application.properties │ ├── BakingoCakeServiceApplication.java │ └── orderStatus.jsp ├── Front End-Internationalization │ ├── application.properties │ ├── messages.properties │ ├── messages_fr.properties │ ├── HomeController.java │ ├── InternationalizationApplication.java │ └── Customer.java ├── Age Calculator │ ├── web.xml │ ├── AgeService.java │ └── index.jsp ├── ZeeZeeLogin │ ├── application.properties │ ├── invalid.jsp │ ├── success.jsp │ ├── LoginService.java │ ├── LoginBean.java │ └── LoginAppApplication.java └── HolidayParty-Validations │ ├── application.properties │ ├── thankyou.jsp │ └── HolidayPartyNewApplication.java └── Use Interface Design ├── Simple CALCULATOR ├── calc.jpg ├── demo.jpeg ├── reset.jpg └── calculator.jpg ├── Bill Calculator ├── question.pdf └── csscode.css ├── EMI Calculator ├── question.pdf └── jscode.js ├── FeedBack Details ├── question.pdf ├── htmlcode.html └── jscode.js ├── ACTB Connection Portal ├── demo_1.png └── demo_2.png ├── Outlook Inverter Palace └── question.pdf ├── Learning Material Styling ├── question.pdf └── csscode.css ├── Rate Card For Boat Riding └── question.pdf ├── Trainer Feedback Rating Chart └── question.pdf ├── Fixed and Reducing Interest Loan Estimator └── question.pdf └── Mercury Drug Delivery Service - Partner Invite └── question.pdf /Spring Core, Maven/Go Go Parcel Service/src/main/resources/charges.properties: -------------------------------------------------------------------------------- 1 | chargePerKg=20.0 -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/charges.properties: -------------------------------------------------------------------------------- 1 | chargePerKg=20.0 -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retriving Data from file/log.txt: -------------------------------------------------------------------------------- 1 | Welcome to the learning of Streams -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | github: [thesaravanakumar] 3 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Shape - Area Volume Calculator/Spatial.java: -------------------------------------------------------------------------------- 1 | public interface Spatial { 2 | } 3 | -------------------------------------------------------------------------------- /SQL Programming/Car rental system - add new column/query.sql: -------------------------------------------------------------------------------- 1 | alter table cars 2 | add column car_regno varchar(10); -------------------------------------------------------------------------------- /SQL Programming/Hostel-Insert Student Records set2/ddl4.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE CUSTOMER_MASTER 2 | MODIFY COLUMN PHONE_NO(10); -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - change datatype/sample.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE customers 2 | MODIFY COLUMN customer_id int; -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - Change the field name/sample.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE hotel_details 2 | CHANGE rating hotel_rating INT; -------------------------------------------------------------------------------- /Spring Core, Maven/EBanking/accounts.properties: -------------------------------------------------------------------------------- 1 | current=CurrentAccount 2 | recurring=RecurringAccount 3 | fixed=FixedAccount -------------------------------------------------------------------------------- /Java Programming Fundamentals/Validate Name/Validate.java: -------------------------------------------------------------------------------- 1 | public interface Validate { 2 | boolean validateName(String name); 3 | } 4 | -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - update table/sample.sql: -------------------------------------------------------------------------------- 1 | UPDATE customers 2 | SET phone_no = 9876543210 3 | WHERE customer_id = "CUST1004"; -------------------------------------------------------------------------------- /SQL Programming/Total sale daywise/sample.sql: -------------------------------------------------------------------------------- 1 | select order_date, sum(order_amount) as total_sale 2 | from orders 3 | group by order_date; -------------------------------------------------------------------------------- /Java Programming Fundamentals/Check Number Type/NumberType.java: -------------------------------------------------------------------------------- 1 | public interface NumberType { 2 | boolean checkNumber(int num); 3 | } 4 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Vehicle-Loan-Insurance - Use Interface/Loan.java: -------------------------------------------------------------------------------- 1 | public interface Loan { 2 | double issueLoan(); 3 | } 4 | -------------------------------------------------------------------------------- /SQL Programming/Customer mail details/sample.sql: -------------------------------------------------------------------------------- 1 | select concat(customer_id, ' mail id is ', email_id) as customer_mail_info 2 | from customers; -------------------------------------------------------------------------------- /SQL Programming/No of time rented by each car/query.sql: -------------------------------------------------------------------------------- 1 | select car_id, count(car_id) 2 | from rentals 3 | group by car_id 4 | order by car_id; -------------------------------------------------------------------------------- /SQL Programming/database_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/database_1.jpg -------------------------------------------------------------------------------- /SQL Programming/database_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/database_2.png -------------------------------------------------------------------------------- /SQL Programming/database_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/database_3.png -------------------------------------------------------------------------------- /SQL Programming/Number of Tickets Booked/query.sql: -------------------------------------------------------------------------------- 1 | select user_id, count(bd_id) as `no_of_times` 2 | from bookingdetails 3 | group by user_id asc; -------------------------------------------------------------------------------- /SQL Programming/Password Generation/query.sql: -------------------------------------------------------------------------------- 1 | select name, concat(substr(NAME,1,3), substr(PHNO,1,3)) as password from users 2 | order by NAME; 3 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Vehicle-Loan-Insurance - Use Interface/Insurance.java: -------------------------------------------------------------------------------- 1 | public interface Insurance { 2 | double takeInsurance(); 3 | } 4 | -------------------------------------------------------------------------------- /SQL Programming/Concatenating Details/singlerow3.sql: -------------------------------------------------------------------------------- 1 | select concat(address, ', ', city) as address 2 | from student 3 | order by concat(address, city) desc; -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/TestCallback.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /SQL Programming/Cars not taken for rent/query.sql: -------------------------------------------------------------------------------- 1 | select car_id, car_name, car_type 2 | from cars 3 | where car_id not in (select distinct car_id from rentals); -------------------------------------------------------------------------------- /SQL Programming/Hotel_info/sample.sql: -------------------------------------------------------------------------------- 1 | select concat(hotel_name, ' is a ', hotel_type, ' hotel') as hotel_info 2 | from hotel_details 3 | order by hotel_name desc; -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/PatientManagement.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_1.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_2.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_3.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_4.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_5.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_6.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_7.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_8.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_9.png -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_10.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_11.png -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/image_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/image_12.png -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Body Mass Index/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9090 2 | 3 | spring.mvc.view.prefix=/WEB-INF/views/ 4 | spring.mvc.view.suffix=.jsp 5 | 6 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix=/WEB-INF/views/ 2 | spring.mvc.view.suffix=.jsp -------------------------------------------------------------------------------- /Use Interface Design/Simple CALCULATOR/calc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Simple CALCULATOR/calc.jpg -------------------------------------------------------------------------------- /SQL Programming/Car & owner details based on car type/query.sql: -------------------------------------------------------------------------------- 1 | select car_id, car_name, owner_id 2 | from cars 3 | where car_type in ("Hatchback", "SUV") 4 | order by car_id; -------------------------------------------------------------------------------- /SQL Programming/Department name based on block number/bselect3.sql: -------------------------------------------------------------------------------- 1 | select department_name 2 | from department 3 | where department_block_number = 3 4 | order by department_name; -------------------------------------------------------------------------------- /SQL Programming/Password Generation/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Password Generation/question.pdf -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/BakingoCakeService/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=9090 3 | spring.mvc.view.prefix=/WEB-INF/views/ 4 | spring.mvc.view.suffix=.jsp 5 | 6 | -------------------------------------------------------------------------------- /Use Interface Design/Bill Calculator/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Bill Calculator/question.pdf -------------------------------------------------------------------------------- /Use Interface Design/EMI Calculator/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/EMI Calculator/question.pdf -------------------------------------------------------------------------------- /Use Interface Design/Simple CALCULATOR/demo.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Simple CALCULATOR/demo.jpeg -------------------------------------------------------------------------------- /Use Interface Design/Simple CALCULATOR/reset.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Simple CALCULATOR/reset.jpg -------------------------------------------------------------------------------- /Java Programming Fundamentals/Bank Account - Interface/MaintenanceCharge.java: -------------------------------------------------------------------------------- 1 | public interface MaintenanceCharge { 2 | float calculateMaintenanceCharge(float noOfYears); 3 | } 4 | -------------------------------------------------------------------------------- /SQL Programming/Customers having gmail id/query.sql: -------------------------------------------------------------------------------- 1 | select customer_id, customer_name, address, phone_no 2 | from customers 3 | where email_id like "%gmail%" 4 | order by customer_id; -------------------------------------------------------------------------------- /SQL Programming/Username and password/question.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Username and password/question.docx -------------------------------------------------------------------------------- /Use Interface Design/FeedBack Details/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/FeedBack Details/question.pdf -------------------------------------------------------------------------------- /Java Programming Fundamentals/Collage Account/TuitionFee.java: -------------------------------------------------------------------------------- 1 | public interface TuitionFee { 2 | int calculateTuitionFees(String courseType, int basicFee, int noOfSemesters); 3 | } 4 | -------------------------------------------------------------------------------- /SQL Programming/Customer contact details/query.sql: -------------------------------------------------------------------------------- 1 | select customer_id, customer_name, ifnull(address, ifnull(email_id, "NA")) as contact_details 2 | from customes 3 | order by customer_id; -------------------------------------------------------------------------------- /SQL Programming/Customer using HDFC bank/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Customer using HDFC bank/question.pdf -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/target/classes/patient_details.properties: -------------------------------------------------------------------------------- 1 | pid=P1000 2 | pname=ABC 3 | disease=fever 4 | sex=female 5 | admit_status=yes 6 | age=55 -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Use Interface Design/ACTB Connection Portal/demo_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/ACTB Connection Portal/demo_1.png -------------------------------------------------------------------------------- /Use Interface Design/ACTB Connection Portal/demo_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/ACTB Connection Portal/demo_2.png -------------------------------------------------------------------------------- /Use Interface Design/Simple CALCULATOR/calculator.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Simple CALCULATOR/calculator.jpg -------------------------------------------------------------------------------- /Java Programming Fundamentals/Travel Agency/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Java Programming Fundamentals/Travel Agency/question.pdf -------------------------------------------------------------------------------- /SQL Programming/Car details based on type and name/query.sql: -------------------------------------------------------------------------------- 1 | select car_id, car_name, car_type 2 | from cars 3 | where car_name like "Maruthi%" 4 | and car_type = "Sedan" 5 | order by car_id; -------------------------------------------------------------------------------- /SQL Programming/Delivery Partner details based on rating/sample.sql: -------------------------------------------------------------------------------- 1 | SELECT partner_id, partner_name, phone_no 2 | from delivery_partners 3 | where rating between 3 and 5 4 | order by partner_id; -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - update table/table_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Hunger eats - update table/table_data.png -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/src/main/resources/patient_details.properties: -------------------------------------------------------------------------------- 1 | pid=P1000 2 | pname=ABC 3 | disease=fever 4 | sex=female 5 | admit_status=yes 6 | age=55 -------------------------------------------------------------------------------- /Use Interface Design/Outlook Inverter Palace/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Outlook Inverter Palace/question.pdf -------------------------------------------------------------------------------- /.github/auto_assign.yml: -------------------------------------------------------------------------------- 1 | addReviewers: true 2 | 3 | addAssignees: true 4 | 5 | reviewers: 6 | - thesaravanakumar 7 | 8 | skipKeywords: 9 | - wip 10 | 11 | numberOfReviewers: 0 12 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/DreamTek Company/picture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Java Programming Fundamentals/DreamTek Company/picture.jpg -------------------------------------------------------------------------------- /Spring Core, Maven/Billing Software Application/connection.properties: -------------------------------------------------------------------------------- 1 | driver=com.mysql.cj.jdbc.Driver 2 | url=jdbc:mysql://localhost:3306/eshopping?useSSL=false 3 | username=root 4 | password=rajini -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Front End-Internationalization/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8084 2 | spring.mvc.view.prefix = /WEB-INF/views/ 3 | spring.mvc.view.suffix = .jsp 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Use Interface Design/Learning Material Styling/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Learning Material Styling/question.pdf -------------------------------------------------------------------------------- /Use Interface Design/Rate Card For Boat Riding/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Rate Card For Boat Riding/question.pdf -------------------------------------------------------------------------------- /SQL Programming/Credential details/query.sql: -------------------------------------------------------------------------------- 1 | select concat(owner_name, owner_id) as username, concat(left(owner_name, 3), owner_id) as password 2 | from owners 3 | order by concat(owner_name, owner_id); -------------------------------------------------------------------------------- /Java Programming Fundamentals/Shape - Area Volume Calculator/Shape.java: -------------------------------------------------------------------------------- 1 | public abstract class Shape { 2 | public abstract double area(); 3 | 4 | public abstract double volume(); 5 | } 6 | 7 | 8 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/String Concatenation/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Java Programming Fundamentals/String Concatenation/question.pdf -------------------------------------------------------------------------------- /SQL Programming/car rental system - Insert values/table_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/car rental system - Insert values/table_data.png -------------------------------------------------------------------------------- /Use Interface Design/Trainer Feedback Rating Chart/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Trainer Feedback Rating Chart/question.pdf -------------------------------------------------------------------------------- /Java Programming Fundamentals/Search for Trains - JDBC/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Java Programming Fundamentals/Search for Trains - JDBC/question.pdf -------------------------------------------------------------------------------- /SQL Programming/Insert Records - Department/insert.sql: -------------------------------------------------------------------------------- 1 | insert into department (Department_id, Department_name, department_block_number) 2 | values (1, "CSE", 3), 3 | (2, "IT", 3), 4 | (3, "SE", 3); -------------------------------------------------------------------------------- /SQL Programming/Maruthi car owner details/query.sql: -------------------------------------------------------------------------------- 1 | select distinct owner_id, owner_name, address, phone_no 2 | from owners 3 | where owner_id in (select distinct owner_id from cars where car_name like "Maruthi%"); -------------------------------------------------------------------------------- /SQL Programming/Rental details based on date/query.sql: -------------------------------------------------------------------------------- 1 | select rental_id, car_id, customer_id, km_driven 2 | from rentals 3 | where month(pickup_date) = 8 4 | and year(pickup_date) = 2019 5 | order by rental_id; -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/ICT/TMS/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9095 2 | spring.mvc.view.prefix=/WEB-INF/jsp/ 3 | spring.mvc.view.suffix=.jsp 4 | spring.mvc.static-class-path=/resources/** -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee Loan Eligibility/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Java Programming Fundamentals/Employee Loan Eligibility/question.pdf -------------------------------------------------------------------------------- /Java Programming Fundamentals/Placement Enrollment Count/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Java Programming Fundamentals/Placement Enrollment Count/question.pdf -------------------------------------------------------------------------------- /Java Programming Fundamentals/Travel Agency/CommissionInfo.java: -------------------------------------------------------------------------------- 1 | public interface CommissionInfo { 2 | public double calculateCommissionAmount(Ticket ticketObj); 3 | 4 | // Fill the code here 5 | 6 | } 7 | -------------------------------------------------------------------------------- /SQL Programming/Hostel-Insert Student Records set2/database_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Hostel-Insert Student Records set2/database_diagram.png -------------------------------------------------------------------------------- /SQL Programming/Minimum & Maximum Discount Amount/database_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Minimum & Maximum Discount Amount/database_diagram.png -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Auditing/EmployeeAudit.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | 3 | public interface EmployeeAudit { 4 | 5 | // Fill the code 6 | public ArrayList fetchEmployeeDetails(double salary); 7 | } -------------------------------------------------------------------------------- /SQL Programming/Username and password/query.sql: -------------------------------------------------------------------------------- 1 | Select concat(cust_name,cust_id) 2 | as USERNAME, 3 | concat(substring(cust_name,1,3), 4 | substring(cust_phone,-4,4)) as PASSWORD 5 | from customer 6 | order by USER NAME; 7 | -------------------------------------------------------------------------------- /Spring Core, Maven/Billing Software Application/ProductDao.java: -------------------------------------------------------------------------------- 1 | package com.cts.dao; 2 | 3 | import com.cts.bean.Product; 4 | 5 | public interface ProductDao { 6 | 7 | Product getProductDetails(int product_code); 8 | } 9 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retrieve customer count based on loan type/database.properties.txt: -------------------------------------------------------------------------------- 1 | DB_DRIVER_CLASS=com.mysql.jdbc.Driver 2 | DB_URL=jdbc:mysql://localhost:3306/testbase 3 | DB_USERNAME=ritam 4 | DB_PASSWORD=password 5 | -------------------------------------------------------------------------------- /Use Interface Design/Fixed and Reducing Interest Loan Estimator/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Fixed and Reducing Interest Loan Estimator/question.pdf -------------------------------------------------------------------------------- /SQL Programming/Patient Appointment details Based On Month/database_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Patient Appointment details Based On Month/database_diagram.png -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/target/classes/BookAMovie.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Movie Ticket Booking/target/classes/BookAMovie.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/target/test-classes/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Movie Ticket Booking/target/test-classes/Main.class -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retrieve ID and Price of mobiles with in the range/database.properties.txt: -------------------------------------------------------------------------------- 1 | DB_DRIVER_CLASS=com.mysql.jdbc.Driver 2 | DB_URL=jdbc:mysql://localhost:3306/testbase 3 | DB_USERNAME=ritam 4 | DB_PASSWORD=password 5 | -------------------------------------------------------------------------------- /SQL Programming/Patient Appointment Details based on reason/database_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/SQL Programming/Patient Appointment Details based on reason/database_diagram.png -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/target/classes/MovieTicket.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Movie Ticket Booking/target/classes/MovieTicket.class -------------------------------------------------------------------------------- /Use Interface Design/Mercury Drug Delivery Service - Partner Invite/question.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Use Interface Design/Mercury Drug Delivery Service - Partner Invite/question.pdf -------------------------------------------------------------------------------- /SQL Programming/Car rental system - Create Table/query.sql: -------------------------------------------------------------------------------- 1 | create table owners 2 | ( 3 | owner_id VARCHAR(10) primary key, 4 | owner_name varchar(20), 5 | address varchar(20), 6 | phone_no bigint, 7 | email_id varchar(20) 8 | ); -------------------------------------------------------------------------------- /Spring Core, Maven/Constructor Injection/Driver.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import java.util.*; 4 | 5 | public class Driver { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/bo/CourierBO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/bo/CourierBO.class -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/main/Driver.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/main/Driver.class -------------------------------------------------------------------------------- /Spring Core, Maven/Passport Service/HeadPassportOffice.java: -------------------------------------------------------------------------------- 1 | package com.cts.passportService; 2 | 3 | public interface HeadPassportOffice { 4 | 5 | public void doPhotoVerification(); 6 | 7 | public void issuePassport(); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/Employee.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/Project.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/Project.class -------------------------------------------------------------------------------- /SQL Programming/Hotels not taken orders in a specific month/sample.sql: -------------------------------------------------------------------------------- 1 | select hotel_id, hotel_name, hotel_type 2 | from hotel_details 3 | where hotel_id not in (select hotel_id 4 | from orders 5 | where month(order_date) = 5 and year(order_date) = 2019); -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/model/Courier.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/model/Courier.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/src/main/java/InvalidMovieTicketException.java: -------------------------------------------------------------------------------- 1 | public class InvalidMovieTicketException extends Exception { 2 | public InvalidMovieTicketException(String message) { 3 | super(message); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/EmployeeDAO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/EmployeeDAO.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/ProjectDAO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/ProjectDAO.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/target/test-classes/BookAMovieTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Movie Ticket Booking/target/test-classes/BookAMovieTest.class -------------------------------------------------------------------------------- /SQL Programming/Customer using HDFC bank/query.sql: -------------------------------------------------------------------------------- 1 | select distinct u.name, u.address from users u 2 | join bookingdetails b on b.user_id = u.user_id 3 | where u.user_id not in 4 | ( select user_id from bookingdetails where name='HDFC') 5 | order by u.name; 6 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring MVC and Spring Boot/Online Help Service/HelpServices/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/service/CourierService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/service/CourierService.class -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Front End-Internationalization/messages.properties: -------------------------------------------------------------------------------- 1 | #Do not modify the property file 2 | label.custName=Customer Name in English 3 | label.emailId=Email ID in English 4 | label.address=Address in English 5 | label.submit=Login in English 6 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Front End-Internationalization/messages_fr.properties: -------------------------------------------------------------------------------- 1 | #Do not modify the property file 2 | label.custName=Customer Name in French 3 | label.emailId=Email ID in French 4 | label.address=Address in French 5 | label.submit=Login in French 6 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/ProjectAllocation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/ProjectAllocation.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/src/main/java/com/cts/academy/dao/TrainerCohortMapDAO.java: -------------------------------------------------------------------------------- 1 | package com.cts.academy.dao; 2 | 3 | public interface TrainerCohortMapDAO { 4 | void mapTrainerCohort(String trainerId, String cohortCode); 5 | } 6 | -------------------------------------------------------------------------------- /SQL Programming/Department name based on block number/README.md: -------------------------------------------------------------------------------- 1 | # Department name based on block number 2 | 3 | Write a query to display the names of the departments in block number 3. Sort the records in ascending order. 4 | 5 | ![database diagram](../database_1.jpg) -------------------------------------------------------------------------------- /SQL Programming/Patient Appointment Details based on reason/query.sql: -------------------------------------------------------------------------------- 1 | SELECT P.PATIENT_ID, P.P_FIRST_NAME, P.P_AGE, A.APP_NUMBER, A.APP_DATE 2 | FROM PATIENT P, APPOINMENT A 3 | WHERE P.PATIENT_ID = A.PATIENT_ID 4 | AND A.APP_REASON = 'FEVER' 5 | ORDER BY P.PATIENT_ID; -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/model/ServiceChargeInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/model/ServiceChargeInfo.class -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/Main.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/target/classes/InvalidMovieTicketException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Movie Ticket Booking/target/classes/InvalidMovieTicketException.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/ProjectAllocationDAO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Project Allocation Refactoring/bin/project/ProjectAllocationDAO.class -------------------------------------------------------------------------------- /SQL Programming/Student and their Department Based on City/joins3.sql: -------------------------------------------------------------------------------- 1 | select s.student_name, d.department_name 2 | from student s 3 | inner join department d 4 | on s.city = "Coimbatore" 5 | and s.department_id = d.department_id 6 | order by s.student_name; 7 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Age Calculator/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Archetype Created Web Application 5 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ZeeZeeLogin/application.properties: -------------------------------------------------------------------------------- 1 | #Do Not change the key. Value that is port number can be changed 2 | #include other necessary configurations 3 | server.port = 8085 4 | spring.mvc.view.prefix = /WEB-INF/jsp/ 5 | spring.mvc.view.suffix = .jsp 6 | 7 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/test/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/test/Main.class -------------------------------------------------------------------------------- /Java Programming Fundamentals/Register a Candidate - User defined Exception(with throw and throws)/InvalidSalaryException.java: -------------------------------------------------------------------------------- 1 | public class InvalidSalaryException extends Exception { 2 | public InvalidSalaryException(String message) { 3 | super(message); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retriving Data from file/README.md: -------------------------------------------------------------------------------- 1 | # Retrieving Data from file 2 | 3 | Allen started working with I/O in java. Allan's mam has written some contents in the log.txt file. Help Allen to write a java code to display the contents of the file in the console. 4 | -------------------------------------------------------------------------------- /Spring Core, Maven/EngineAnalysis/PetrolEngine.java: -------------------------------------------------------------------------------- 1 | package com.cts.engineAnalysis; 2 | 3 | public class PetrolEngine extends Engine { 4 | 5 | // Type your code here 6 | public int getPerformance() { 7 | 8 | return super.getTorque() * super.getRpm() / 5252; 9 | } 10 | } -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/model/Cohort.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/model/Cohort.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/target/test-classes/com/cts/academy/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Test Call Back/TestCallback/target/test-classes/com/cts/academy/AppTest.class -------------------------------------------------------------------------------- /Spring Core, Maven/EngineAnalysis/DieselEngine.java: -------------------------------------------------------------------------------- 1 | package com.cts.engineAnalysis; 2 | 3 | public class DieselEngine extends Engine { 4 | 5 | // Type your code here 6 | public int getPerformance() { 7 | 8 | return super.getTorque() * super.getRpm() / 63025; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/model/Patient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/model/Patient.class -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/target/test-classes/com/cts/patient/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Patient Management/PatientManagement/target/test-classes/com/cts/patient/AppTest.class -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/HolidayParty-Validations/application.properties: -------------------------------------------------------------------------------- 1 | #include the required configurations. 2 | #Do not change the key server.port. Value for the server.port can be changed 3 | server.port=9091 4 | spring.mvc.view.prefix=/WEB-INF/jsp/ 5 | spring.mvc.view.suffix=.jsp 6 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Add Flight using JDBC/database.properties: -------------------------------------------------------------------------------- 1 | #To test in the local machine 2 | #Enter your own detials 3 | 4 | DB_DRIVER_CLASS=com.mysql.jdbc.Driver 5 | DB_URL=jdbc:mysql://localhost:3306/${sys.DB} 6 | DB_USERNAME=${sys.DB_USERNAME} 7 | DB_PASSWORD=${sys.DB_PASSWORD} -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/config/AppConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/config/AppConfig.class -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /SQL Programming/Hotels that took order more than five times/sample.sql: -------------------------------------------------------------------------------- 1 | select orders.hotel_id, hotel_details.hotel_name, count(orders.order_id) as no_of_orders 2 | from orders, hotel_details 3 | where orders.hotel_id = hotel_details.hotel_id 4 | group by hotel_id 5 | having count(orders.order_id) > 5; -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/exception/InvalidParcelWeightException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Go Go Parcel Service/target/classes/com/spring/exception/InvalidParcelWeightException.class -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/src/main/java/com/spring/exception/InvalidParcelWeightException.java: -------------------------------------------------------------------------------- 1 | package com.spring.exception; 2 | 3 | public class InvalidParcelWeightException extends Exception { 4 | public InvalidParcelWeightException(String message) { 5 | super(message); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /.github/config.yml: -------------------------------------------------------------------------------- 1 | newIssueWelcomeComment: > 2 | Thanks for opening your first issue here! Be sure to follow the issue template! 3 | 4 | newPRWelcomeComment: > 5 | Thanks for opening this pull request! Your Awesome! 🤺 6 | 7 | firstPRMergeComment: > 8 | Congrats on merging your first pull request! 🎉🎉🎉 -------------------------------------------------------------------------------- /SQL Programming/Hotels that took order based on month/sample.sql: -------------------------------------------------------------------------------- 1 | select distinct hotel_details.hotel_id, hotel_details.hotel_name, hotel_details.rating 2 | from hotel_details, orders 3 | where hotel_details.hotel_id = orders.hotel_id 4 | and month(orders.order_date) = 7 5 | order by hotel_details.hotel_id; -------------------------------------------------------------------------------- /SQL Programming/Order details/sample.sql: -------------------------------------------------------------------------------- 1 | select orders.order_id, customers.customer_name, hotel_details.hotel_name, orders.order_amount 2 | from orders, customers, hotel_details 3 | where orders.customer_id = customers.customer_id 4 | and orders.hotel_id = hotel_details.hotel_id 5 | order by orders.order_id; -------------------------------------------------------------------------------- /SQL Programming/Review of delivery partner based on rating/sample.sql: -------------------------------------------------------------------------------- 1 | select partner_id, partner_name, ( 2 | case 3 | when rating >= 4 then "GOOD" 4 | when rating >= 2 and rating < 4 then "AVERAGE" 5 | else "WORST" 6 | end 7 | ) as review 8 | from delivery_partners 9 | order by partner_id; -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/service/PatientService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Spring Core, Maven/Patient Management/PatientManagement/target/classes/com/cts/patient/service/PatientService.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/dao/TrainerCohortMapDAO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/dao/TrainerCohortMapDAO.class -------------------------------------------------------------------------------- /SQL Programming/Student and their Department Based on City/README.md: -------------------------------------------------------------------------------- 1 | # Student and their Department Based on City 2 | 3 | Write a query to display list of students name and their department name who are all from 'Coimbatore'. Sort the result based on students name 4 | 5 | ![database diagram](../database_1.jpg) -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/HolidayParty-Validations/thankyou.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 2 | <%@page isELIgnored="false"%> 3 | 4 | 5 |

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

6 | 7 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ZeeZeeLogin/invalid.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 |

Sorry!! Invalid Credentials. Try again

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ZeeZeeLogin/success.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 |

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

7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/test/TrainerCohortMapDAOTest$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/test/TrainerCohortMapDAOTest$1.class -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/test/TrainerCohortMapDAOTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thesaravanakumar/Cognizant-Early-Engagement/HEAD/Unit Testing, Code Quality/Test Call Back/TestCallback/target/classes/com/cts/academy/test/TrainerCohortMapDAOTest.class -------------------------------------------------------------------------------- /SQL Programming/Patient Appointment details Based On Month/join3.sql: -------------------------------------------------------------------------------- 1 | SELECT DISTINCT P.PATIENT_ID, P.P_FIRST_NAME, P.P_AGE, P.ADDRESS, P.CONTACT_NUMBER 2 | FROM PATIENT P, APPOINTMENT A 3 | WHERE P.PATIENT_ID = A.PATIENT_ID 4 | AND MONTH(A.APP_DATE) = 6 5 | AND YEAR(A.APP_DATE) = 2019 6 | ORDER BY P.PATIENT_ID; 7 | -------------------------------------------------------------------------------- /SQL Programming/Insert Records - Department/README.md: -------------------------------------------------------------------------------- 1 | # Insert Records - Department 2 | 3 | Insert the following records into the department table 4 | 5 | | Department_id | Department_name | department_block_number | 6 | | 1 | CSE | 3 | 7 | | 2 | IT | 3 | 8 | | 3 | SE | 3 | 9 | 10 | ![database diagram](../database_1.jpg) -------------------------------------------------------------------------------- /SQL Programming/Minimum & Maximum Discount Amount/group3.sql: -------------------------------------------------------------------------------- 1 | SELECT A.MIN_DISCOUNT, B.MAX_DISCOUNT 2 | FROM ( 3 | SELECT MIN(DISCOUNT_AMOUNT) AS `MIN_DISCOUNT` 4 | FROM DISCOUNT_MASTER 5 | ) A, 6 | ( 7 | SELECT MAX(DISCOUNT_AMOUNT) AS `MAX_DISCOUNT` 8 | FROM DISCOUNT_MASTER 9 | ) B; -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/src/main/webapp/WEB-INF/views/helpdesk.jsp: -------------------------------------------------------------------------------- 1 | <%@page isELIgnored="false"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 |

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

6 | 7 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /SQL Programming/Hostel-Insert Student Records set2/README.md: -------------------------------------------------------------------------------- 1 | # Movie-Modify the datatype set2 2 | 3 | Refer to the given schema. Assume that the Customer_master table has been already created. 4 | 5 | Write a query to change the data type of the field phone_no in Customer_Master table to int(10). 6 | 7 | ![database diagram](database_diagram.png) -------------------------------------------------------------------------------- /Spring Core, Maven/DBConfig-SetterBasedInjection/EmployeeDAO.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | public class EmployeeDAO { 4 | private DBConfig dbConfig; 5 | 6 | public DBConfig getDbConfig() { 7 | return dbConfig; 8 | } 9 | 10 | public void setDbConfig(DBConfig dbConfig) { 11 | this.dbConfig = dbConfig; 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/test/java/com/TmsApplicationTests.java: -------------------------------------------------------------------------------- 1 | //package com; 2 | // 3 | //import org.junit.jupiter.api.Test; 4 | //import org.springframework.boot.test.context.SpringBootTest; 5 | // 6 | //@SpringBootTest 7 | //class TmsApplicationTests { 8 | // 9 | // @Test 10 | // void contextLoads() { 11 | // } 12 | // 13 | //} 14 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Product Login Test suite/TestSuiteRunner.java: -------------------------------------------------------------------------------- 1 | import org.junit.runner.RunWith; 2 | import org.junit.runners.Suite; 3 | import org.junit.runners.Suite.SuiteClasses; 4 | 5 | //write code here 6 | 7 | @RunWith(Suite.class) 8 | @SuiteClasses({LoginTest.class, ProductTest.class}) 9 | public class TestSuiteRunner { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/TestMockDB/AccountTransactionException.java: -------------------------------------------------------------------------------- 1 | package com.cts.bank.exception; 2 | 3 | public class AccountTransactionException extends Exception { 4 | 5 | public AccountTransactionException() { 6 | super(); 7 | } 8 | 9 | public AccountTransactionException(String message) { 10 | super(message); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Vehicle-Loan-Insurance - Use Interface/Main.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | public static void main(String[] args) { 3 | Vehicle vehicle = new Vehicle("WB3535", "Hero Spender Plus", "2 wheeler", 80000); 4 | System.out.println(vehicle.issueLoan()); 5 | System.out.println(vehicle.takeInsurance()); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ZeeZeeLogin/LoginService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.bean.LoginBean; 6 | 7 | @Service 8 | public class LoginService { 9 | 10 | public boolean validate(LoginBean bean) { 11 | 12 | return bean.getUserName().equalsIgnoreCase(bean.getPassword()); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /SQL Programming/Number of Tickets Booked/README.md..txt: -------------------------------------------------------------------------------- 1 | # Number of Tickets Booked 2 | 3 | Write a query to display the user id and number of time tickets was booked by each user. Give an alias name as no_of_times. Sort the result based on the user_id. 4 | 5 | > **Note:** 6 | > Evaluate only the respective query to get the desired result. 7 | 8 | ![database diagram](../../../database_4.jpg) -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - change datatype/README.md: -------------------------------------------------------------------------------- 1 | # Hunger eats - change datatype 2 | 3 | Refer to the given schema. Assume that the 'Customers' table has been already created. 4 | 5 | Write a query to change the data type of the field customer_id in Customers table to int. 6 | 7 | *Note: Letters in bold represents the attribute name* 8 | 9 | ![database diagram](database_3.png) 10 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/src/test/java/com/example/demo/HelpServicesApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class HelpServicesApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SQL Programming/No of time rented by each car/README.md: -------------------------------------------------------------------------------- 1 | # No of time rented by each car 2 | 3 | Write a query to display car id and number of times car taken for rental. Give an alias name to the number of times car taken for rental as 'NO_OF_TRIPS'. Sort the records based on car id in ascending order. 4 | 5 | > (HINT: Use Rentals table to retrieve records.) 6 | 7 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /SQL Programming/Cars not taken for rent/README.md: -------------------------------------------------------------------------------- 1 | # Cars not taken for rent 2 | 3 | Write a query to display car id, car name, car type of cars which was not taken for rent. Sort the result based on car id. 4 | 5 | > HINT: Use Cars and Rentals tables to retrieve records. 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /SQL Programming/Car rental system - add new column/README.md: -------------------------------------------------------------------------------- 1 | # Car rental system - add new column 2 | 3 | Refer to the given schema. Assume, CARS table has been already created. Write an appropriate query for the given requirement. 4 | Requirement 1: Add a new column Car_Regno VARCHAR(10) to the Cars table. 5 | 6 | *Note: Letters in the bold represents the attribute name.* 7 | 8 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /SQL Programming/Car rental system - Create Table/README.md: -------------------------------------------------------------------------------- 1 | # Car rental system - Create Table 2 | 3 | Refer to the given schema. 4 | 5 | Write a query to create the Owners table with the specified columns and constraints. 6 | 7 | *Note: Letters in bold represents the table name* 8 | 9 | *Note: Maintain the same sequence of column order, as specified in the question description* 10 | 11 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/java/com/service/TaxService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.model.UserClaim; 6 | 7 | @Service 8 | public interface TaxService { 9 | /** 10 | * Calculate Tax 11 | * 12 | * @param userClaim UserClaim bean 13 | * @return Calculated tax 14 | */ 15 | public double calculateTax(UserClaim userClaim); 16 | } 17 | -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - Change the field name/README.md: -------------------------------------------------------------------------------- 1 | # Hunger eats - Change the field name 2 | 3 | Write appropriate query/queries for the given requirement. Assume, Hotel_Details table has been already created. 4 | 5 | Requirement 1: Change the name of the existing field Rating to Hotel_Rating in the Hotel_Details table. 6 | 7 | *Note: Letters in the bold represents the attributes* 8 | 9 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /SQL Programming/Order details/README.md: -------------------------------------------------------------------------------- 1 | # Order details 2 | 3 | Write a query to display order id, customer name, hotel name, and order amount of all orders. Sort the result based on order id in ascending order. 4 | 5 | > HINT: Use Customers, Hotel_details and Orders tables to retrieve records. 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /SQL Programming/Total sale daywise/README.md: -------------------------------------------------------------------------------- 1 | # Total sale daywise 2 | 3 | Write a query to display order_date, total order amount in each day. Give an alias name for total order amount as ‘TOTAL_SALE’. Sort the result based on order_date. 4 | 5 | > HINT : Use Orders table to retrieve records. 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /Use Interface Design/Bill Calculator/csscode.css: -------------------------------------------------------------------------------- 1 | h1{ 2 | text-align:center; 3 | color:#FF00FF; 4 | font-style:italic; 5 | font-weight:bold; 6 | } 7 | 8 | table{ 9 | text-align:left; 10 | margin-left:35%; 11 | border-spacing:10px; 12 | border-width:10%; 13 | border-style:solid; 14 | background-color:#F899A4; 15 | } 16 | td{ 17 | border-style:ridge; 18 | padding:10px; 19 | } 20 | -------------------------------------------------------------------------------- /SQL Programming/Buses based on Source and Destination/readme.md: -------------------------------------------------------------------------------- 1 | # Buses based on Source and Destination 2 | 3 | Write a query to display the list of bus numbers and names where the source and destination of a bus is the destination and source of another bus. Display the unique records in ascending order by bus_no. 4 | 5 | > **Note:** 6 | > Evaluate only the respective query to get the desired result. 7 | 8 | ![database diagram](../../../database_4.jpg) -------------------------------------------------------------------------------- /SQL Programming/Concatenating Details/README.md: -------------------------------------------------------------------------------- 1 | # Concatenating Details 2 | 3 | Write a query to display address details by concatenating address and city of students . Give an alias as Address and sort the result based on the concatenated column in descending order 4 | 5 | > Example: 6 | 7 | Address - Toms Town 8 | 9 | City - Bangalore 10 | 11 | > Output: 12 | 13 | Toms Town, Bangalore 14 | 15 | ![database diagram](../database_1.jpg) -------------------------------------------------------------------------------- /Java Programming Fundamentals/Bank Account - Interface/CurrentAccount.java: -------------------------------------------------------------------------------- 1 | public class CurrentAccount extends Account implements MaintenanceCharge { 2 | public CurrentAccount(String accountNumber, String customerName, double balance) { 3 | super(accountNumber, customerName, balance); 4 | } 5 | 6 | @Override 7 | public float calculateMaintenanceCharge(float noOfYears) { 8 | return (100.0f + noOfYears) + 200.0f; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Bank Account - Interface/SavingsAccount.java: -------------------------------------------------------------------------------- 1 | public class SavingsAccount extends Account implements MaintenanceCharge { 2 | public SavingsAccount(String accountNumber, String customerName, double balance) { 3 | super(accountNumber, customerName, balance); 4 | } 5 | 6 | @Override 7 | public float calculateMaintenanceCharge(float noOfYears) { 8 | return (50.0f * noOfYears) + 50.0f; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /SQL Programming/Rental details based on date/README.md: -------------------------------------------------------------------------------- 1 | # Rental details based on date 2 | 3 | Write a query to display rental id, car id, customer id and km driven of rentals taken during 'AUGUST 2019'. Sort the result based on rental id. 4 | 5 | > (HINT : Use Rentals table to retrieve records. Eg: return date: 2019-08-12 ) 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Use Interface Design/EMI Calculator/jscode.js: -------------------------------------------------------------------------------- 1 | function calculateEMI(){ 2 | var P = document.getElementById("principalAmount").value; 3 | var r = document.getElementById("interestRate").value; 4 | var R = (r/100)/12; 5 | var N = document.getElementById("tenure").value; 6 | var EMI = (P * R * Math.pow((1+R),N)/(Math.pow((1+R),N)-1)).toFixed(2); 7 | document.getElementById("result").innerHTML = "EMI is Rs."+EMI; 8 | return false; 9 | } 10 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Account Manipulation - Abstract Class/Main.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | public static void main(String[] args) { 3 | Customer customer = new Customer(101, "Ritam", "ritam@email.com"); 4 | SavingsAccount savingsAccount = new SavingsAccount(1001, customer, 10000, 500); 5 | 6 | if (savingsAccount.withdraw(9000)) { 7 | System.out.println(savingsAccount.getBalance()); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /SQL Programming/Customer contact details/README.md: -------------------------------------------------------------------------------- 1 | # Customer contact details 2 | 3 | Write a query to display the customer id, customer name and contact details of customers. If address is missing, display the email id. If both address and email is missing then display ‘NA’. Give an alias name as CONTACT_DETAILS.Sort the results based on customer id in ascending order. 4 | 5 | > (HINT : Use Customers table to retrieve records.) 6 | 7 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Java Programming Fundamentals/Display Characters/AsciValue.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | 3 | class AsciValue { 4 | public static void main(String[] args) { 5 | Scanner scanner = new Scanner(System.in); 6 | 7 | System.out.println("Enter the digits:"); 8 | 9 | for (int i = 0; i < 4; ++i) { 10 | int input = scanner.nextInt(); 11 | System.out.println(input + "-" + (char) input); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/src/test/java/com/cts/patient/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.cts.patient; 2 | 3 | import static org.junit.Assert.assertTrue; 4 | 5 | import org.junit.Test; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | { 12 | /** 13 | * Rigorous Test :-) 14 | */ 15 | @Test 16 | public void shouldAnswerWithTrue() 17 | { 18 | assertTrue( true ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/src/test/java/com/cts/academy/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.cts.academy; 2 | 3 | import static org.junit.Assert.assertTrue; 4 | 5 | import org.junit.Test; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | { 12 | /** 13 | * Rigorous Test :-) 14 | */ 15 | @Test 16 | public void shouldAnswerWithTrue() 17 | { 18 | assertTrue( true ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /SQL Programming/Delivery Partner details based on rating/README.md: -------------------------------------------------------------------------------- 1 | # Delivery Partner details based on rating 2 | 3 | Write a query to display partner id, partner name, phone number of delivery partners whose rating is between 3 to 5, sort the result based on partner id. 4 | 5 | > (Hint: Use Delivery_partners table to retrieve records.) 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /SQL Programming/Minimum & Maximum Discount Amount/README.md: -------------------------------------------------------------------------------- 1 | # Minimum & Maximum Discount Amount 2 | 3 | Write a query to display the minimum discount amount and the maximum discount amount offered as per the coupon. Give an alias name as MIN_DISCOUNT to the minimum discount amount and MAX_DISCOUNT to the maximum discount amount. 4 | 5 | > NOTE: 6 | 7 | Maintain the same sequence of column order, as specified in the question description 8 | 9 | ![database diagram](database_diagram.png) -------------------------------------------------------------------------------- /SQL Programming/car rental system - Insert values/README.md: -------------------------------------------------------------------------------- 1 | # car rental system - Insert values 2 | 3 | Refer to the given schema diagram. Insert the below records into Rentals Table. Assume the rentals table has been already created. 4 | 5 | ![table data](table_data.png) 6 | 7 | *Note: Letters in bold represent the attributes.* 8 | 9 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 10 | 11 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /SQL Programming/Customers having gmail id/READEME.md: -------------------------------------------------------------------------------- 1 | # Customers having gmail id 2 | 3 | Write a query to display customer id, customer name, address, and phone number of customers having Gmail id. Sort the result based on customer id. 4 | 5 | > (HINT: Use Customers table to retrieve records. Email id='xxxxx@gmail.com'.Data is case sensitive.) 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /SQL Programming/Car details based on type and name/README.md: -------------------------------------------------------------------------------- 1 | # Car details based on type and name 2 | 3 | Write a query to display car id, car name and car type of Maruthi company 'Sedan' type cars. Sort the result based on car id. 4 | 5 | > (HINT : Use Cars table to retrieve records.car name='Maruthi Swift'.car type='Sedan'.Data is case sensitive.) 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/no-response.yml: -------------------------------------------------------------------------------- 1 | daysUntilClose: 14 2 | 3 | responseRequiredLabel: more-information-needed 4 | 5 | closeComment: > 6 | This issue has been automatically closed because there has been no response 7 | to our request for more information from the original author. With only the 8 | information that is currently in the issue, we don't have enough information 9 | to take action. Please reach out if you have or find the answers we need so 10 | that we can investigate further. Thank you... -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee Loan Eligibility - Polymorphism/Loan.java: -------------------------------------------------------------------------------- 1 | public class Loan { 2 | public double calculateLoanAmount(Employee employee) { 3 | double loan = 0.0; 4 | 5 | if (employee instanceof PermanentEmployee) { 6 | loan = employee.getSalary() * 15.0 / 100.0; 7 | } else if (employee instanceof TemporaryEmployee) { 8 | loan = employee.getSalary() * 10.0 / 100.0; 9 | } 10 | 11 | return loan; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Player Selection System_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=com.mysql.jdbc.Driver 8 | DB_URL=jdbc:mysql://localhost:3306/pss 9 | DB_USERNAME=root 10 | DB_PASSWORD= 11 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Search for Trains - 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=com.mysql.jdbc.Driver 8 | DB_URL=jdbc:mysql://localhost:3306/tms 9 | DB_USERNAME=root 10 | DB_PASSWORD= 11 | -------------------------------------------------------------------------------- /SQL Programming/Patient Appointment details Based On Month/README.md: -------------------------------------------------------------------------------- 1 | # Patient Appointment details Based On Month 2 | 3 | Refer to the schema. Write a query to display unique patient id, patient first name, patient age, address and contact number of all the patients who booked appointments in the month of JUNE 2019. Sort the records based on patient id. 4 | 5 | > Hint: 6 | 7 | Use Patient & Appointment tables. The appointment date will be in the format 'YYYY-MM-DD'. 8 | 9 | ![database diagram](database_diagram.png) -------------------------------------------------------------------------------- /Spring Core, Maven/SpringAopDemo/AopConfig.java: -------------------------------------------------------------------------------- 1 | package com.cts.SpringAopDemo; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.context.annotation.EnableAspectJAutoProxy; 6 | 7 | //Type your code here 8 | //Type your code here 9 | //Type your code here 10 | 11 | @Configuration 12 | @ComponentScan("com.cts.SpringAopDemo") 13 | @EnableAspectJAutoProxy 14 | public class AopConfig { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ZeeZeeLogin/LoginBean.java: -------------------------------------------------------------------------------- 1 | package com.bean; 2 | 3 | public class LoginBean { 4 | private String userName; 5 | private String password; 6 | 7 | public String getUserName() { 8 | return userName; 9 | } 10 | 11 | public void setUserName(String userName) { 12 | this.userName = userName; 13 | } 14 | 15 | public String getPassword() { 16 | return password; 17 | } 18 | 19 | public void setPassword(String password) { 20 | this.password = password; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /SQL Programming/car rental system - Insert values/query.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO rentals 2 | VALUES 3 | ("R001", "C007", "V004", "2018-03-10", "2018-03-10", 800, 9000), 4 | ("R002", "C001", "V007", "2018-03-11", "2018-03-12", 200, 3000), 5 | ("R003", "C007", "V003", "2018-04-15", "2018-04-15", 100, 1500), 6 | ("R004", "C007", "V001", "2018-05-16", "2018-05-18", 1000, 10000), 7 | ("R005", "C004", "V005", "2018-05-10", "2018-05-12", 900, 11000), 8 | ("R006", "C004", "V006", "2018-05-20", "2018-05-21", 200, 2500); -------------------------------------------------------------------------------- /SQL Programming/Hotels that took order based on month/README.md: -------------------------------------------------------------------------------- 1 | # Hotels that took order based on month 2 | 3 | Write a query to display distinct hotel id, hotel name, and rating of hotels that have taken order in the month of July. Sort the result based on hotel id in ascending order. 4 | 5 | > (HINT: Use Hotel_details and Orders tables to retrieve records.Order date='2019-07-14') 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/src/main/java/com/spring/model/ServiceChargeInfo.java: -------------------------------------------------------------------------------- 1 | package com.spring.model; 2 | 3 | import java.util.Map; 4 | 5 | public class ServiceChargeInfo { 6 | private Map locationServiceCharge; 7 | 8 | public Map getLocationServiceCharge() { 9 | return locationServiceCharge; 10 | } 11 | 12 | public void setLocationServiceCharge(Map locationServiceCharge) { 13 | this.locationServiceCharge = locationServiceCharge; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ZeeZeeLogin/LoginAppApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan("com") 9 | public class LoginAppApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(LoginAppApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /SQL Programming/Car & owner details based on car type/README.md: -------------------------------------------------------------------------------- 1 | # Car & owner details based on car type 2 | 3 | Write a query to display car id, car name and owner id of all the cars whose car type is 'Hatchback' or 'SUV'. Sort the result based on car id. 4 | 5 | > (Hint: Use CARS tables to retrieve records. Data is case-sensitive. E.g: Car_type='Hatchback'. Use IN operator) 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_2.png) 10 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Verify Call - JUnit using Mockito/Book.java: -------------------------------------------------------------------------------- 1 | package com.cts.utility; 2 | 3 | public class Book { 4 | private String name; 5 | private String isbn; 6 | public Book(String name) { 7 | super(); 8 | this.name = name; 9 | } 10 | public String getIsbn() { 11 | return isbn; 12 | } 13 | public void setIsbn(String isbn) { 14 | this.isbn = isbn; 15 | } 16 | public String getName() { 17 | return name; 18 | } 19 | 20 | public String toString() { 21 | return name+" "+isbn; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Front End-Internationalization/HomeController.java: -------------------------------------------------------------------------------- 1 | package controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.ModelAttribute; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | 7 | import model.Customer; 8 | 9 | @Controller 10 | public class HomeController { 11 | 12 | @RequestMapping("/getdetails") 13 | public String home(@ModelAttribute("customer") Customer obj) { 14 | 15 | return "home"; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /SQL Programming/Hotels not taken orders in a specific month/README.md: -------------------------------------------------------------------------------- 1 | # Hotels not taken orders in a specific month 2 | 3 | Write a query to display hotel id, hotel name and hotel type of hotels which has not taken any orders in the month of 'MAY 19'. Sort the result based on hotel id in ascending order. 4 | 5 | > HINT: Use Hotel_details and Orders tables to retrieve records. Eg: order_date= 2019-05-12 6 | 7 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 8 | 9 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /SQL Programming/Hunger eats - update table/README.md: -------------------------------------------------------------------------------- 1 | # Hunger eats - update table 2 | 3 | Refer to the given schema diagram and sample records inserted into the Customers table. 4 | 5 | ![table data][table_data.png] 6 | 7 | Update records based on the given requirement. 8 | 9 | > Requirement 1: update the phone no of the Customers whose id is 'CUST1004' to the new phone no '9876543210' 10 | 11 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 12 | 13 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address-Scope/beans.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Body Mass Index/BodyMassIndexApplication.java: -------------------------------------------------------------------------------- 1 | package com.cognizant.bmi; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan("com.*") 9 | public class BodyMassIndexApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(BodyMassIndexApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /SQL Programming/Buses based on Source and Destination/query.sql: -------------------------------------------------------------------------------- 1 | select distinct s1.bus_no, 2 | b.bus_name 3 | from schedule s1 4 | inner join schedule s2 on s1.source = s2.destination 5 | and s1.destination = s2.source 6 | inner join buses b on s1.bus_no = b.bus_no 7 | order by s1.bus_no; 8 | 9 | select distinct s1.bus_no, 10 | b.bus_name 11 | from schedule s1, 12 | schedule s2, 13 | buses b 14 | where s1.source = s2.destination 15 | and s1.destination = s2.source 16 | and s1.bus_no = b.bus_no 17 | order by s1.bus_no; -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/BakingoCakeService/BakingoCakeServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.cognizant; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan("com.*") 9 | public class BakingoCakeServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(BakingoCakeServiceApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/HolidayParty-Validations/HolidayPartyNewApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan("com") 9 | public class HolidayPartyNewApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(HolidayPartyNewApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /SQL Programming/Patient Appointment Details based on reason/README.md: -------------------------------------------------------------------------------- 1 | # Patient Appointment Details based on reason 2 | 3 | Refer to the given schema. 4 | 5 | Write a query to display the patient id, patient first name, patient age, appointment number and the date of appointment of those patients whose reason for the appointment is 'FEVER'. Sort the records based on patient id. 6 | 7 | > Hint: 8 | 9 | Use the Appointment table and Patient table to retrieve the records. Data is case-sensitive 10 | 11 | ![database datagram](database_diagram.png) 12 | 13 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/resources/messages_de.properties: -------------------------------------------------------------------------------- 1 | label.employeeId=Employee ID in German 2 | label.expenseType=Expense Type in German 3 | label.expenseAmount=Expense Amount in German 4 | error.employeeId=Employee ID cannot be empty in German 5 | error.employeeId.size=Employee ID should be at least 5 characters in German 6 | error.expenseAmount=Expense Amount cannot be empty in German 7 | error.expenseAmount.numeric=Expense amount should be numeric only in German 8 | error.expenseAmount.negative=Expense amount should not be a negative number in German -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/resources/messages_fr.properties: -------------------------------------------------------------------------------- 1 | label.employeeId=Employee ID in French 2 | label.expenseType=Expense Type in French 3 | label.expenseAmount=Expense Amount in French 4 | error.employeeId=Employee ID cannot be empty in French 5 | error.employeeId.size=Employee ID should be at least 5 characters in French 6 | error.expenseAmount=Expense Amount cannot be empty in French 7 | error.expenseAmount.numeric=Expense amount should be numeric only in French 8 | error.expenseAmount.negative=Expense amount should not be a negative number in French -------------------------------------------------------------------------------- /SQL Programming/Review of delivery partner based on rating/README.md: -------------------------------------------------------------------------------- 1 | # Review of delivery partner based on rating 2 | 3 | Write a query to display partner id,partner name and review of the delivery partner, give alias name for partner review as 'REVIEW', sort the result based on partner id in ascending order. 4 | 5 | *Note: Review is based on the following condition* 6 | 7 | IF rating>=4 then 'GOOD' 8 | 9 | IF rating between >=2 and <4 then 'AVERAGE' 10 | 11 | IF rating <2 then 'WORST' 12 | 13 | > HINT : Use Delivery_partners table to retrieve records. -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Body Mass Index/bmiStatus.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | BMI Status 8 | 9 | 10 |

11 | Id:${validUser.userId}
12 | Name: ${validUser.name}
13 | Height: ${validUser.height}
14 | Weight: ${validUser.weight}
15 | BMI: ${bmi}
16 | Status: You are ${BMIstatus}
17 |

18 | 19 | 20 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | label.employeeId=Employee ID in English 2 | label.expenseType=Expense Type in English 3 | label.expenseAmount=Expense Amount in English 4 | error.employeeId=Employee ID cannot be empty in English 5 | error.employeeId.size=Employee ID should be at least 5 characters in English 6 | error.expenseAmount=Expense Amount cannot be empty in English 7 | error.expenseAmount.numeric=Expense amount should be numeric only in English 8 | error.expenseAmount.negative=Expense amount should not be a negative number in English 9 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/src/main/java/com/example/demo/HelpServicesApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan("com.*") 9 | public class HelpServicesApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(HelpServicesApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Verify Call - JUnit using Mockito/GenerateISBN.java: -------------------------------------------------------------------------------- 1 | package com.cts.utility; 2 | 3 | // System Under Test 4 | public class GenerateISBN { 5 | private Book book; // Dependency that has to be mocked 6 | 7 | public GenerateISBN(Book book) { 8 | super(); 9 | this.book = book; 10 | } 11 | 12 | // Method to be tested 13 | public Book assignISBN(String isbn) { 14 | if(isbn.matches("ISBN[0-9]{4}")) { 15 | book.setIsbn(isbn); 16 | }else { 17 | throw new RuntimeException("Invalid Code"); 18 | } 19 | return book; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__junit_junit_3_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Product Login Test suite/LoginDAO.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | 3 | public class LoginDAO { 4 | ArrayList loginlist = new ArrayList(); 5 | 6 | public boolean addLogin(Login obj) { 7 | boolean flag = false; 8 | if (obj != null) 9 | flag = loginlist.add(obj); 10 | 11 | return flag; 12 | } 13 | 14 | public boolean deleteLogin(Login obj) { 15 | boolean flag = false; 16 | if(obj != null) 17 | flag = loginlist.remove(obj); 18 | 19 | return flag; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Contact Details of Hosteller/Hosteller.java: -------------------------------------------------------------------------------- 1 | public class Hosteller extends Student { 2 | private String hostelName; 3 | private int roomNumber; 4 | 5 | public String getHostelName() { 6 | return hostelName; 7 | } 8 | 9 | public void setHostelName(String hostelName) { 10 | this.hostelName = hostelName; 11 | } 12 | 13 | public int getRoomNumber() { 14 | return roomNumber; 15 | } 16 | 17 | public void setRoomNumber(int roomNumber) { 18 | this.roomNumber = roomNumber; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 3 | org.eclipse.jdt.core.compiler.compliance=1.7 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.7 10 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/webapp/WEB-INF/jsp/result.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 |

The tax claim for ${ userClaim.expenseType } with expense amount 11 | ${ userClaim.expenseAmt } is ${ amount }

12 | 13 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Add Flight using JDBC/Main.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | public static void main(String[] args) { 3 | Flight flight = new Flight(100, "NYC", "LA", 100, 100.0); 4 | FlightManagementSystem flightManagementSystem = new FlightManagementSystem(); 5 | boolean isFlightAdded = flightManagementSystem.addFlight(flight); 6 | 7 | if (isFlightAdded) { 8 | System.out.println("Flight details added successfully"); 9 | } else { 10 | System.out.println("Addition not done"); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SQL Programming/Maruthi car owner details/README.md: -------------------------------------------------------------------------------- 1 | # Maruthi car owner details 2 | 3 | Write a query to display distinct owner id, owner name, address, and phone no of owners who owns 'Maruthi' company car. Sort the result based on owner id. 4 | 5 | *Note: If car_name contains a string 'Maruthi' it is a Maruthi company car.* 6 | 7 | **Example: 'Maruthi swift','Maruthi 800'** 8 | 9 | > HINT: Use Owners and Cars tables to retrieve records. 10 | 11 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 12 | 13 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Front End-Internationalization/InternationalizationApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan({ "controller", "model" }) 9 | public class InternationalizationApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(InternationalizationApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 3 | org.eclipse.jdt.core.compiler.compliance=1.7 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.7 10 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Product Login Test suite/ProductDAO.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | 3 | public class ProductDAO { 4 | ArrayList productlist = new ArrayList(); 5 | 6 | public boolean addProduct(Product obj) { 7 | boolean flag = false; 8 | if(obj != null) 9 | flag = productlist.add(obj); 10 | 11 | return flag; 12 | } 13 | 14 | public boolean deleteProduct(Product obj) { 15 | boolean flag = false; 16 | if(obj != null) 17 | flag = productlist.remove(obj); 18 | 19 | return flag; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Check Number Type/NumberTypeUtility.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class NumberTypeUtility { 4 | public static NumberType idOdd() { 5 | return (num) -> num % 2 != 0; 6 | } 7 | 8 | public static void main(String[] args) { 9 | Scanner scanner = new Scanner(System.in); 10 | int num = scanner.nextInt(); 11 | 12 | if (idOdd().checkNumber(num)) { 13 | System.out.println(num + " is odd"); 14 | } else { 15 | System.out.println(num + " is not odd"); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Shape - Area Volume Calculator/Sphere.java: -------------------------------------------------------------------------------- 1 | public class Sphere extends Shape implements Spatial { 2 | private double radius; 3 | 4 | public double getRadius() { 5 | return radius; 6 | } 7 | 8 | public void setRadius(double radius) { 9 | this.radius = radius; 10 | } 11 | 12 | @Override 13 | public double area() { 14 | return 4.0 * Math.PI * Math.pow(radius, 2); 15 | } 16 | 17 | @Override 18 | public double volume() { 19 | return (4.0 * Math.PI * radius * radius * radius) / 3; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Spring Core, Maven/EngineAnalysis/Car.java: -------------------------------------------------------------------------------- 1 | package com.cts.engineAnalysis; 2 | 3 | public class Car { 4 | 5 | private String name; 6 | private Engine engine; 7 | 8 | // Constructor for constructor-injection 9 | public Car(String name, Engine engine) { 10 | super(); 11 | this.name = name; 12 | this.engine = engine; 13 | } 14 | 15 | // Type your code here 16 | 17 | public void getReport() { 18 | 19 | // Type your code here 20 | System.out.println( 21 | name + " car with " + engine.getFuel() + " engine gives " + engine.getPerformance() + " horsepower"); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 3 | org.eclipse.jdt.core.compiler.compliance=1.7 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.7 10 | -------------------------------------------------------------------------------- /Spring Core, Maven/CurrencyConverter-Collections/Driver.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import java.util.Scanner; 4 | 5 | import org.springframework.context.ConfigurableApplicationContext; 6 | import org.springframework.context.support.ClassPathXmlApplicationContext; 7 | 8 | 9 | public class Driver { 10 | 11 | public static void main(String[] args) { 12 | ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("beans.xml"); 13 | CurrencyConverter currencyConverter = (CurrencyConverter) context.getBean("currencyConverter"); 14 | 15 | context.close(); 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/BakingoCakeService/orderStatus.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="java.util.Date"%> 2 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 3 | pageEncoding="ISO-8859-1"%> 4 | 5 | 6 | 7 | 8 | Order Status 9 | 10 | 11 |

12 | Your order has been successfully placed,
13 | Order Id is: ${orderId}
14 | Order Date: ${orderDate}
15 | Amount in dollar: $${cake.getPrice()}
16 | Amount in Rupees: Rs.${indianPrice}
17 |

18 | 19 | 20 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Product Login Test suite/Login.java: -------------------------------------------------------------------------------- 1 | public class Login { 2 | private String userName; 3 | private String Password; 4 | 5 | public Login(String userName, String password) { 6 | super(); 7 | this.userName = userName; 8 | this.Password = password; 9 | } 10 | public String getUserName() { 11 | return userName; 12 | } 13 | public void setUserName(String userName) { 14 | this.userName = userName; 15 | } 16 | public String getPassword() { 17 | return Password; 18 | } 19 | public void setPassword(String password) { 20 | this.Password = password; 21 | } 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/ICT/TMS/src/main/java/com/TmsApplication.java: -------------------------------------------------------------------------------- 1 | package com; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.ComponentScan; 6 | 7 | @SpringBootApplication 8 | @ComponentScan("com.*") 9 | public class TmsApplication { 10 | /** 11 | * Starting point of the application 12 | * 13 | * @param args Arguments passed to the application 14 | */ 15 | public static void main(String[] args) { 16 | SpringApplication.run(TmsApplication.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Number Palindrome/README.md: -------------------------------------------------------------------------------- 1 | # Number Palindrome 2 | 3 | George and Tintin plays by telling numbers. George says a number to Tintin. Tintin should first reverse the number and check if it is same as the original. If yes, Tintin should say “Palindrome”. If not, he should say “Not a Palindrome”. If the number is negative, print “Invalid Input”. Help Tintin by writing a program. 4 | 5 | > Sample Input 1 : 6 | 7 | 21212 8 | 9 | > Sample Output 1 : 10 | 11 | Palindrome 12 | 13 | 14 | > Sample Input 2 : 15 | 16 | 6186 17 | 18 | > Sample Output 2 : 19 | 20 | Not a Palindrome -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/TestMockDB/Main.java: -------------------------------------------------------------------------------- 1 | package com.cts.bank.test; 2 | 3 | import org.junit.runner.JUnitCore; 4 | import org.junit.runner.Result; 5 | 6 | public class Main { 7 | 8 | public static void main(String[] args) { 9 | Result result = JUnitCore.runClasses(AccountDAOTest.class); 10 | if (result.getFailureCount() == 0) { 11 | System.out.println("All Test cases Cleared"); 12 | } else { 13 | System.out.println("One or more test case(s) failed"); 14 | System.out.println("==============================="); 15 | result.getFailures().forEach(x -> System.out.println(x.getMessage())); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Movie Ticket Booking/src/test/java/Main.java: -------------------------------------------------------------------------------- 1 | import org.junit.runner.JUnitCore; 2 | import org.junit.runner.Result; 3 | import org.junit.runner.notification.Failure; 4 | 5 | public class Main { 6 | public static void main(String args[]) { 7 | Result result = JUnitCore.runClasses(BookAMovieTest.class); 8 | 9 | if (result.getFailureCount() == 0) { 10 | System.out.println("No Failures"); 11 | } else { 12 | for (Failure failure : result.getFailures()) { 13 | System.out.println(failure.toString()); 14 | } 15 | } 16 | 17 | System.out.println("Result " + result.wasSuccessful()); 18 | } 19 | } -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/src/main/java/com/cts/academy/model/Cohort.java: -------------------------------------------------------------------------------- 1 | package com.cts.academy.model; 2 | 3 | public class Cohort { 4 | private String cohortCode; 5 | private String trainerId; 6 | 7 | public String getCohortCode() { 8 | return cohortCode; 9 | } 10 | 11 | public void setCohortCode(String cohortCode) { 12 | this.cohortCode = cohortCode; 13 | } 14 | 15 | public String getTrainerId() { 16 | return trainerId; 17 | } 18 | 19 | public void setTrainerId(String trainerId) { 20 | this.trainerId = trainerId; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee Loan Eligibility/Employee.java: -------------------------------------------------------------------------------- 1 | //DO NOT EDIT OR DELETE 2 | public class Employee { 3 | private String empId; 4 | private String empName; 5 | private double salary; 6 | 7 | public String getEmpId() { 8 | return empId; 9 | } 10 | public void setEmpId(String empId) { 11 | this.empId = empId; 12 | } 13 | public String getEmpName() { 14 | return empName; 15 | } 16 | public void setEmpName(String empName) { 17 | this.empName = empName; 18 | } 19 | public double getSalary() { 20 | return salary; 21 | } 22 | public void setSalary(double salary) { 23 | this.salary = salary; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address-Scope/Address.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | public class Address { 4 | private String street; 5 | private String city; 6 | private int pincode; 7 | 8 | public String getStreet() { 9 | return street; 10 | } 11 | 12 | public void setStreet(String street) { 13 | this.street = street; 14 | } 15 | 16 | public String getCity() { 17 | return city; 18 | } 19 | 20 | public void setCity(String city) { 21 | this.city = city; 22 | } 23 | 24 | public int getPincode() { 25 | return pincode; 26 | } 27 | 28 | public void setPincode(int pincode) { 29 | this.pincode = pincode; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /SQL Programming/Movie-Modify the datatype set2/dml2.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO STUDENT_DETAILS 2 | VALUES 3 | ("S1001", "Varsha", "ECE", "1999-06-12", "CHENNAI", "9845712345", "varsha123@gmail.com"), 4 | ("S1002", "William", "ECE", "1999-02-04", "CALCUTTA", "6845712345", "william123@gmail.com"), 5 | ("S1003", "Basha", "EEE", "1999-06-14", "DELHI", "9945712345", "basha222@gmail.com"), 6 | ("S1004", "Catherine", "CSE", "1998-08-16", "DELHI", "6785712345", "cathu123@gmail.com"), 7 | ("S1005", "Kate", "ECE", "1999-06-30", "BANGALORE", "7685712345", "katedd@gmail.com"), 8 | ("S1006", "Michel", "ECE", "1998-06-04", "COIMBATORE", "6645712345", "michel000@gmail.com"); -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Verify Call - JUnit using Mockito/Main.java: -------------------------------------------------------------------------------- 1 | package com.cts.test; 2 | 3 | import org.junit.runner.JUnitCore; 4 | import org.junit.runner.Result; 5 | 6 | public class Main { 7 | 8 | public static void main(String[] args) { 9 | Result result = JUnitCore.runClasses(GenerateISBNTest.class); 10 | if(result.getFailureCount() == 0) { 11 | System.out.println("All Test cases Cleared"); 12 | }else { 13 | System.out.println("One or more test case(s) failed"); 14 | System.out.println("==============================="); 15 | result.getFailures().forEach(x -> System.out.println(x.getMessage())); 16 | } 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /SQL Programming/Hotel_info/README.md: -------------------------------------------------------------------------------- 1 | # Hotel_info 2 | 3 | Refer to the schema. Write a query to display the hotel name along with the type. Display the details in the below format. 4 | 5 | Give an alias name as `hotel_info`. Sort the result in descending order. 6 | 7 | > For Example: 8 | 9 | Hotel_name - 'A2B' 10 | 11 | Hotel_type - 'VEG' 12 | 13 | Sample Output: 14 | 15 | | hotel_info | 16 | | ---------- | 17 | | A2B is a VEG hotel | 18 | 19 | 20 | > HINT: Use Hotel_details table to retrieve records. 21 | 22 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 23 | 24 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /Spring Core, Maven/Constructor Injection/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | com.springcore 6 | constructorinjection 7 | 0.0.1-SNAPSHOT 8 | 9 | 10 | 11 | org.springframework 12 | spring-context 13 | 4.3.10.RELEASE 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/src/main/java/com/cts/patient/Main.java: -------------------------------------------------------------------------------- 1 | package com.cts.patient; 2 | 3 | import com.cts.patient.service.PatientService; 4 | import org.springframework.context.ApplicationContext; 5 | import org.springframework.context.annotation.AnnotationConfigApplicationContext; 6 | 7 | public class Main { 8 | public static void main(String[] args) { 9 | ApplicationContext context = new AnnotationConfigApplicationContext(com.cts.patient.config.AppConfig.class); 10 | PatientService patientService = context.getBean(PatientService.class); 11 | patientService.getPatientDetails(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address-Scope/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | SpringFundamentals 4 | Scope-Customer 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | org.springframework 9 | spring-context 10 | 4.3.10.RELEASE 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Spring Core, Maven/EngineAnalysis/Engine.java: -------------------------------------------------------------------------------- 1 | package com.cts.engineAnalysis; 2 | 3 | public abstract class Engine { 4 | 5 | private int torque; 6 | private int rpm; 7 | private String fuel; 8 | 9 | public int getTorque() { 10 | return torque; 11 | } 12 | 13 | public void setTorque(int torque) { 14 | this.torque = torque; 15 | } 16 | 17 | public int getRpm() { 18 | return rpm; 19 | } 20 | 21 | public void setRpm(int rpm) { 22 | this.rpm = rpm; 23 | } 24 | 25 | public String getFuel() { 26 | return fuel; 27 | } 28 | 29 | public void setFuel(String fuel) { 30 | this.fuel = fuel; 31 | } 32 | 33 | public abstract int getPerformance(); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Bill Generator/README.md: -------------------------------------------------------------------------------- 1 | # Bill Generation 2 | 3 | Tom went to a movie with his friends in a multiplex theatre and during break time he bought pizzas, puffs and cool drinks. Consider the following prices : 4 | 5 | Rs.100/pizza 6 | Rs.20/puffs 7 | Rs.10/cooldrink 8 | Generate a bill for What Tom has bought. 9 | 10 | ### Sample Input 1: 11 | 12 | Enter the no of pizzas bought:10 13 | Enter the no of puffs bought:12 14 | Enter the no of cool drinks bought:5 15 | 16 | ### Sample Output 1: 17 | 18 | Bill Details 19 | No of pizzas:10 20 | No of puffs:12 21 | No of cooldrinks:5 22 | Total price=1290 23 | ENJOY THE SHOW!!! -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee Loan Eligibility - Polymorphism/Main.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | public static void main(String[] args) { 3 | PermanentEmployee permanentEmployee = new PermanentEmployee(101, "Ritam", 100000); 4 | TemporaryEmployee temporaryEmployee = new TemporaryEmployee(102, "Chakraborty", 6, 100); 5 | 6 | Loan loan = new Loan(); 7 | double permanentEmployeeLoan = loan.calculateLoanAmount(permanentEmployee); 8 | double temporaryEmployeeLoan = loan.calculateLoanAmount(temporaryEmployee); 9 | 10 | System.out.println(permanentEmployeeLoan); 11 | System.out.println(temporaryEmployeeLoan); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/InitCap/README.md: -------------------------------------------------------------------------------- 1 | # InitCap 2 | 3 | Write a program to convert the first character of each word in a sentence to uppercase. 4 | 5 | If the first character of each word in the given sentence is already in upper case, then print "First character of each word is already in uppercase". 6 | 7 | > Sample Input 1: 8 | 9 | Enter the String: 10 | Work hard to get what you like 11 | 12 | > Sample Output 1: 13 | 14 | Work Hard To Get What You Like 15 | 16 | --- 17 | 18 | > Sample Input 2: 19 | 20 | Enter the String: 21 | Work Hard To Get What You Like 22 | 23 | > Sample Output 2: 24 | 25 | First character of each word is already in uppercase -------------------------------------------------------------------------------- /Spring Core, Maven/DBConfig-SetterBasedInjection/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | DBConfig 4 | DBConfig 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | org.springframework 10 | spring-context 11 | 4.3.10.RELEASE 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Spring Core, Maven/CurrencyConverter-Collections/beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address-Scope/Customer.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | public class Customer { 4 | 5 | private int custId; 6 | private String custName; 7 | private Address address; 8 | 9 | public int getCustId() { 10 | return custId; 11 | } 12 | 13 | public void setCustId(int custId) { 14 | this.custId = custId; 15 | } 16 | 17 | public String getCustName() { 18 | return custName; 19 | } 20 | 21 | public void setCustName(String custName) { 22 | this.custName = custName; 23 | } 24 | 25 | public Address getAddress() { 26 | return address; 27 | } 28 | 29 | public void setAddress(Address address) { 30 | this.address = address; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /SQL Programming/Customer mail details/README.md: -------------------------------------------------------------------------------- 1 | # Customer mail details 2 | 3 | Refer to the schema. Write a query to display the customer mail details. Display the details in the below format. 4 | 5 | Give an alias name as CUSTOMER_MAIL_INFO. Sort the result in ascending order. 6 | 7 | > For Example: 8 | 9 | Customer_id - 'CUST001' 10 | 11 | Email_id - 'mano@hotmail.com' 12 | 13 | > Sample Output: 14 | 15 | CUSTOMER_MAIL_INFO 16 | CUST001 mail id is mano@hotmail.com 17 | 18 | 19 | > HINT: Use Customers table to retrieve records. 20 | 21 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 22 | 23 | ![database diagram](../database_3.png) -------------------------------------------------------------------------------- /Java Programming Fundamentals/Validate PAN/README.md: -------------------------------------------------------------------------------- 1 | # Validate PAN 2 | 3 | Write a program to check the PAN card no is valid or not. Generally a PAN no is a mix of both numbers and alphabets. It should have exactly 10 characters, in which, the first 5 characters should be upper case, the next 4 should be numbers, and last one should be an upper case character. If the PAN no doesn't match the pattern print "Invalid PAN no". 4 | 5 | > Sample Input 1: 6 | 7 | Enter the PAN no: 8 | ASDFG7896K 9 | 10 | > Sample Output 1: 11 | 12 | Valid PAN no 13 | 14 | --- 15 | 16 | > Sample Input 2: 17 | 18 | Enter the PAN no: 19 | 7896ABC8K 20 | 21 | > Sample Output 2: 22 | 23 | Invalid PAN no -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address Inner Bean/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | CustomerInnerBean 4 | CustomerInnerBean 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | org.springframework 10 | spring-context 11 | 4.3.10.RELEASE 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Spring Core, Maven/EZEE Transport/Vehicle.java: -------------------------------------------------------------------------------- 1 | package com.cts.eezee.model; 2 | 3 | import java.util.Map; 4 | 5 | public class Vehicle { 6 | private String source; 7 | private Map destinationMap; 8 | 9 | public Vehicle(String source) { 10 | super(); 11 | this.source = source; 12 | } 13 | 14 | public String getSource() { 15 | return source; 16 | } 17 | 18 | public void setSource(String source) { 19 | this.source = source; 20 | } 21 | 22 | public Map getDestinationMap() { 23 | return destinationMap; 24 | } 25 | 26 | public void setDestinationMap(Map destinationMap) { 27 | this.destinationMap = destinationMap; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Spring Core, Maven/CurrencyConverter-Collections/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.springcore 4 | DebitCard-Annotation 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | org.springframework 10 | spring-context 11 | 4.3.10.RELEASE 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Book Manipulation/Book.java: -------------------------------------------------------------------------------- 1 | public class Book { 2 | private int isbnno; 3 | private String bookName; 4 | private String author; 5 | 6 | public int getIsbnno() { 7 | return isbnno; 8 | } 9 | 10 | public void setIsbnno(int isbnno) { 11 | this.isbnno = isbnno; 12 | } 13 | 14 | public String getBookName() { 15 | return bookName; 16 | } 17 | 18 | public void setBookName(String bookName) { 19 | this.bookName = bookName; 20 | } 21 | 22 | public String getAuthor() { 23 | return author; 24 | } 25 | 26 | public void setAuthor(String author) { 27 | this.author = author; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Persist Employee/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | import java.util.Arrays; 3 | 4 | public class Main { 5 | public static void main(String[] args) { 6 | Employee employee = new Employee(101, "Ritam", 9.5f); 7 | Employee employee1 = new Employee(102, "Asif", 8.5f); 8 | ArrayList employees = new ArrayList<>(Arrays.asList(employee, employee1)); 9 | EmployeeUtility employeeUtility = new EmployeeUtility(); 10 | employeeUtility.addEmployee("database.emp", employees); 11 | Employee employee2 = employeeUtility.viewEmployeeById("database.emp", 101); 12 | System.out.println(employee2.getName()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Shape - Area Volume Calculator/Triangle.java: -------------------------------------------------------------------------------- 1 | public class Triangle extends Shape { 2 | private double base; 3 | private double height; 4 | 5 | public double getBase() { 6 | return base; 7 | } 8 | 9 | public void setBase(double base) { 10 | this.base = base; 11 | } 12 | 13 | public double getHeight() { 14 | return height; 15 | } 16 | 17 | public void setHeight(double height) { 18 | this.height = height; 19 | } 20 | 21 | @Override 22 | public double area() { 23 | return 0.5 * base * height; 24 | } 25 | 26 | @Override 27 | public double volume() { 28 | return -1; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Spring Core, Maven/Billing Software Application/createScripts.sql: -------------------------------------------------------------------------------- 1 | create database if not exists eshopping; 2 | use eshopping; 3 | drop table if exists product; 4 | 5 | create table product 6 | ( 7 | product_code int primary key, 8 | product_name varchar(50) null, 9 | product_category varchar(50) null, 10 | product_desc varchar(50) null, 11 | product_price decimal(8,2) null 12 | ); 13 | 14 | 15 | 16 | insert into product values(1001,'mobile','electronics','smart phone',35000); 17 | insert into product values(1002,'LEDTV','electronics','TV',45000); 18 | insert into product values(1003,'Teddy','toys','soft toy',800); 19 | insert into product values(1004,'Pencil','stationary','A pack of 12 pencils',80); 20 | 21 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/src/main/java/com/spring/bo/CourierBO.java: -------------------------------------------------------------------------------- 1 | package com.spring.bo; 2 | 3 | import java.util.Map; 4 | 5 | import com.spring.model.Courier; 6 | 7 | public class CourierBO { 8 | public double calculateCourierCharge(Courier cObj, String city) { 9 | Map locationServiceCharge = cObj.getServiceCharge().getLocationServiceCharge(); 10 | int weight = cObj.getWeight(); 11 | float chargePerKg = cObj.getChargePerKg(); 12 | double totalCharge = weight * chargePerKg; 13 | 14 | if (locationServiceCharge.containsKey(city)) { 15 | float charge = locationServiceCharge.get(city); 16 | totalCharge += charge; 17 | } 18 | 19 | return totalCharge; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retriving Data from file/FileDemo.java: -------------------------------------------------------------------------------- 1 | import java.io.File; 2 | import java.io.FileReader; 3 | import java.io.IOException; 4 | 5 | public class FileDemo { 6 | public static void main(String[] args) { 7 | try { 8 | FileReader fileReader = new FileReader(new File("log.txt")); 9 | int n; 10 | StringBuilder stringBuilder = new StringBuilder(); 11 | 12 | while ((n = fileReader.read()) != -1) { 13 | stringBuilder.append((char) n); 14 | } 15 | 16 | System.out.println(stringBuilder.toString()); 17 | } catch (IOException e) { 18 | e.printStackTrace(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Shape - Area Volume Calculator/Rectangle.java: -------------------------------------------------------------------------------- 1 | public class Rectangle extends Shape { 2 | private double length; 3 | private double width; 4 | 5 | public double getLength() { 6 | return length; 7 | } 8 | 9 | public void setLength(double length) { 10 | this.length = length; 11 | } 12 | 13 | public double getWidth() { 14 | return width; 15 | } 16 | 17 | public void setWidth(double width) { 18 | this.width = width; 19 | } 20 | 21 | @Override 22 | public double area() { 23 | return length * width; 24 | } 25 | 26 | @Override 27 | public double volume() { 28 | return -1; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Spring Core, Maven/Autowiring/Driver.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import org.springframework.context.ConfigurableApplicationContext; 4 | import org.springframework.context.annotation.AnnotationConfigApplicationContext; 5 | 6 | public class Driver { 7 | public static void main(String[] args) { 8 | ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfig.class); 9 | 10 | Employee employee = (Employee) context.getBean(Employee.class); 11 | 12 | System.out.println("EmpID : " + employee.getEmpId()); 13 | System.out.println("EmpName : " + employee.getEmpName()); 14 | System.out.println(employee.getPassObj().toString()); 15 | 16 | context.close(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee ID Validation/UserMain.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | import java.util.regex.Matcher; 3 | import java.util.regex.Pattern; 4 | 5 | class UserMain { 6 | public static void main(String[] args) { 7 | Scanner scanner = new Scanner(System.in); 8 | String id; 9 | Pattern pattern = Pattern.compile("^GBL/\\d{3}/\\d{4}$"); 10 | 11 | System.out.println("Enter your ID"); 12 | id = scanner.next(); 13 | 14 | Matcher matcher = pattern.matcher(id); 15 | 16 | if (matcher.matches()) { 17 | System.out.println("Login success"); 18 | } else { 19 | System.out.println("Incorrect ID"); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Spring Core, Maven/Passport Service/Document.java: -------------------------------------------------------------------------------- 1 | package com.cts.passportService; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class Document { 7 | 8 | private String name; 9 | private String idProof; 10 | private String city; 11 | 12 | public String getName() { 13 | return name; 14 | } 15 | 16 | public void setName(String name) { 17 | this.name = name; 18 | } 19 | 20 | public String getIdProof() { 21 | return idProof; 22 | } 23 | 24 | public void setIdProof(String idProof) { 25 | this.idProof = idProof; 26 | } 27 | 28 | public String getCity() { 29 | return city; 30 | } 31 | 32 | public void setCity(String city) { 33 | this.city = city; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Front End-Internationalization/Customer.java: -------------------------------------------------------------------------------- 1 | package model; 2 | 3 | public class Customer { 4 | private String customerName; 5 | private String emailid; 6 | private String address; 7 | 8 | public String getCustomerName() { 9 | return customerName; 10 | } 11 | 12 | public void setCustomerName(String customerName) { 13 | this.customerName = customerName; 14 | } 15 | 16 | public String getEmailid() { 17 | return emailid; 18 | } 19 | 20 | public void setEmailid(String emailid) { 21 | this.emailid = emailid; 22 | } 23 | 24 | public String getAddress() { 25 | return address; 26 | } 27 | 28 | public void setAddress(String address) { 29 | this.address = address; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Validate PAN/PanCard.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | import java.util.regex.Matcher; 3 | import java.util.regex.Pattern; 4 | 5 | class PanCard { 6 | public static void main(String[] args) { 7 | Scanner scanner = new Scanner(System.in); 8 | Pattern pattern = Pattern.compile("^[A-Z]{5}(\\d){4}[A-Z]$"); 9 | String panNo; 10 | 11 | System.out.println("Enter the PAN no:"); 12 | panNo = scanner.next(); 13 | 14 | Matcher matcher = pattern.matcher(panNo); 15 | 16 | if (matcher.matches()) { 17 | System.out.println("Valid PAN no"); 18 | } else { 19 | System.out.println("Invalid PAN no"); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/LMS Refactoring/BookDAO.java: -------------------------------------------------------------------------------- 1 | package library; 2 | 3 | import java.util.ArrayList; 4 | 5 | public class BookDAO { 6 | 7 | ArrayList l = new ArrayList(); 8 | 9 | public void addBook(Book obj){ 10 | l.add(obj); 11 | } 12 | 13 | public void removeBook(Book obj) 14 | { 15 | l.remove(obj); 16 | } 17 | 18 | public void viewBookDAO() 19 | { 20 | for(int i=0;i 2 | 3 | 4 | 5 | 6 |

Feedback for the ART OF LIVING session

7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
Enter the Feedback
19 |

Feedback Details

20 | 21 | 22 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Find Season/README.md: -------------------------------------------------------------------------------- 1 | # Find Season 2 | 3 | Reaya's teacher has asked her to prepare well for the lesson on seasons. When her teacher tells a month, she needs to say the season corresponding to that month. Write a program to solve the above task. 4 | 5 | Spring - March to May, 6 | Summer - June to August, 7 | Autumn - September to November and, 8 | Winter - December to February. 9 | Month should be in the range 1 to 12. If not the output should be "Invalid month". 10 | 11 | > Sample Input 1: 12 | 13 | Enter the month:11 14 | 15 | > Sample Output 1: 16 | 17 | Season:Autumn 18 | 19 | --- 20 | 21 | > Sample Input 2: 22 | 23 | Enter the month:13 24 | 25 | > Sample Output 2: 26 | Invalid month 27 | 28 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/ZeeZee Bank/README.md: -------------------------------------------------------------------------------- 1 | # ZeeZee Bank 2 | 3 | > Sample Input and Output 1: 4 | 5 | Enter the account number: 6 | 9876543210 7 | Enter initial balance: 8 | 15000 9 | Enter the amount to be deposited: 10 | 1500 11 | Available balance is:16500.00 12 | Enter the amount to be withdrawn: 13 | 500 14 | Available balance is:16000.00 15 | 16 | > Sample Input and Output 2: 17 | 18 | Enter the account number: 19 | 9876543210 20 | Enter initial balance: 21 | 15000 22 | Enter the amount to be deposited: 23 | 1500 24 | Available balance is:16500.00 25 | Enter the amount to be withdrawn: 26 | 18500 27 | Insufficient balance 28 | Available balance is:16500.00 -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__org_springframework_spring_aop_4_3_10_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Use Interface Design/FeedBack Details/jscode.js: -------------------------------------------------------------------------------- 1 | var Feedback=[]; 2 | function addFeedback(){ 3 | var string=document.getElementById("feedback").value; 4 | Feedback.push(string); 5 | document.getElementById("feedback").value = ""; 6 | document.getElementById("result").innerHTML = "

" + "Feedback Details " + "

"+"Successfully Added Feedback Details!"; 7 | } 8 | 9 | function displayFeedback(){ 10 | document.getElementById("result").innerHTML=""; 11 | document.getElementById("result").innerHTML += "

" + "Feedback Details " + "

"; 12 | for (var i=0;i"+Feedback[i]+"
"; 14 | } 15 | Feedback=[]; 16 | } 17 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee Loan Eligibility - Polymorphism/PermanentEmployee.java: -------------------------------------------------------------------------------- 1 | public class PermanentEmployee extends Employee { 2 | private double basicPay; 3 | 4 | public PermanentEmployee(int employeeId, String employeeName, double basicPay) { 5 | super(employeeId, employeeName); 6 | this.basicPay = basicPay; 7 | } 8 | 9 | public double getBasicPay() { 10 | return basicPay; 11 | } 12 | 13 | public void setBasicPay(double basicPay) { 14 | this.basicPay = basicPay; 15 | } 16 | 17 | @Override 18 | public void calculateSalary() { 19 | double pfAmount = basicPay * 0.12; 20 | double salary = basicPay - pfAmount; 21 | setSalary(salary); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Spring Core, Maven/Constructor Injection/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__org_springframework_spring_core_4_3_10_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Use Interface Design/Learning Material Styling/csscode.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #00FFFF; 3 | font-family: arial; 4 | font-size: 12px; 5 | } 6 | h1{ 7 | font-size: 2.5em; 8 | } 9 | dd{ 10 | font-size: 1.5em; 11 | } 12 | p{ 13 | color: #FF0000; 14 | font-size: 1.7em; 15 | line-height: 1.5; 16 | } 17 | .reasons{ 18 | color: #FF0F70; 19 | font-weight: bold; 20 | line-height: 1.5; 21 | font-size: 1.5em; 22 | 23 | } 24 | #description01{ 25 | font-style: italic; 26 | color: #F500FF; 27 | } 28 | #description07{ 29 | font-style: italic; 30 | color: #FF4500; 31 | font-weight: bold; 32 | } 33 | em{ 34 | color: #FF0000; 35 | font-weight: bold; 36 | background-color: #00FFFF; 37 | } 38 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__org_springframework_spring_beans_4_3_10_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Testing Using Assertion/UserInterface.java: -------------------------------------------------------------------------------- 1 | import org.junit.runner.JUnitCore; 2 | import org.junit.runner.Result; 3 | import org.junit.runner.notification.Failure; 4 | 5 | public class UserInterface { 6 | public static void main(String args[]) { 7 | Result result = JUnitCore.runClasses(CustomerTest.class); 8 | 9 | if(result.getFailureCount() == 0) 10 | System.out.println("There are No Failures...\n Test Passed..."); 11 | else { 12 | for(Failure failure: result.getFailures()) { 13 | System.out.println("The Test execution failed...\n" + failure.getMessage()); 14 | } 15 | } 16 | System.out.println("Result" + result.wasSuccessful()); 17 | } 18 | } -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Electricity Bill/UserInterface.java: -------------------------------------------------------------------------------- 1 | import org.junit.runner.JUnitCore; 2 | import org.junit.runner.Result; 3 | import org.junit.runner.notification.Failure; 4 | 5 | public class UserInterface 6 | { 7 | public static void main(String args[]) 8 | { 9 | Result result = JUnitCore.runClasses(EBBillTest.class); 10 | 11 | if (result.getFailureCount() == 0) 12 | System.out.println("There are No Failures...\n Test Passed..."); 13 | else { 14 | for(Failure failure: result.getFailures()) { 15 | System.out.println("The Test execution failed...\n" + failure.getMessage()); 16 | } 17 | } 18 | System.out.println("Result" + result.wasSuccessful()); 19 | } 20 | } -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Product Login Test suite/UserInterface.java: -------------------------------------------------------------------------------- 1 | import org.junit.runner.JUnitCore; 2 | import org.junit.runner.Result; 3 | import org.junit.runner.notification.Failure; 4 | 5 | public class UserInterface { 6 | public static void main(String args[]) { 7 | Result result = JUnitCore.runClasses(TestSuiteRunner.class); 8 | 9 | if(result.getFailureCount() == 0) 10 | System.out.println("There are No Failures...\n Test Passed..."); 11 | else { 12 | for(Failure failure: result.getFailures()) { 13 | System.out.println("The Test execution failed...\n" + failure.getMessage()); 14 | } 15 | } 16 | System.out.println("Result" + result.wasSuccessful()); 17 | } 18 | } -------------------------------------------------------------------------------- /Java Programming Fundamentals/Factors of a Number/README.md: -------------------------------------------------------------------------------- 1 | # Factors of a Number 2 | 3 | Betsy teaches her daughter to find the factors of a given number. When she provides a number to her daughter, she should tell the factors of that number. Help her to do this, by writing a program. 4 | 5 | Write a class FindFactor.java and write the main method in it. 6 | 7 | ## Note 8 | 9 | > If the input provided is negative, ignore the sign and provide the output. If the input is zero If the input is zero the output should be “No Factors”. 10 | 11 | 12 | > Sample Input 1 : 13 | 14 | 54 15 | 16 | > Sample Output 1 : 17 | 18 | 1, 2, 3, 6, 9, 18, 27, 54 19 | 20 | 21 | > Sample Input 2 : 22 | 23 | -1869 24 | 25 | > Sample Output 2 : 26 | 27 | 1, 3, 7, 21, 89, 267, 623, 1869 -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address Inner Bean/AddressBook.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | public class AddressBook { 4 | private String phoneNumber; 5 | private Address tempAddress; 6 | 7 | // Single-parameter constructor specifically for injecting 'tempAddress' 8 | // through constructor-based injection 9 | public AddressBook(Address tempAddress) { 10 | this.tempAddress = tempAddress; 11 | } 12 | 13 | public String getPhoneNumber() { 14 | return phoneNumber; 15 | } 16 | 17 | public void setPhoneNumber(String phoneNumber) { 18 | this.phoneNumber = phoneNumber; 19 | } 20 | 21 | public Address getTempAddress() { 22 | return tempAddress; 23 | } 24 | 25 | public void setTempAddress(Address tempAddress) { 26 | this.tempAddress = tempAddress; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__org_springframework_spring_context_4_3_10_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee ID Validation/README.md: -------------------------------------------------------------------------------- 1 | # Employee ID Validation 2 | 3 | Global Info Technologies has approached you to develop an application to maintain the work details of their employees. 4 | 5 | Imagine you are developing the login module. In that module,you will have to validate the id with the format given from the client. 6 | 7 | The format is "GBL/001/0417", here the first three letters are standard. 8 | Create a class UserMain and implement the functionalities which are required. 9 | 10 | > Sample Input 1: 11 | 12 | Enter your ID 13 | GBL/020/0715 14 | 15 | > Sample Output 1: 16 | 17 | Login success 18 | 19 | --- 20 | 21 | > Sample Input 2: 22 | 23 | Enter your ID 24 | ABC/120/0215 25 | 26 | > Sample Output 2: 27 | 28 | Incorrect ID -------------------------------------------------------------------------------- /Java Programming Fundamentals/Factors of a Number/FindFactor.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | import java.util.StringJoiner; 3 | 4 | class FindFactor { 5 | public static void main(String[] args) { 6 | Scanner scanner = new Scanner(System.in); 7 | int num = scanner.nextInt(); 8 | num = Math.abs(num); 9 | 10 | if (num == 0) { 11 | System.out.println("No Factors"); 12 | } else { 13 | StringJoiner stringJoiner = new StringJoiner(", "); 14 | 15 | for (int i = 1; i <= num; ++i) { 16 | if (num % i == 0) { 17 | stringJoiner.add(String.valueOf(i)); 18 | } 19 | } 20 | 21 | System.out.println(stringJoiner.toString()); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Parameterized/RainbowJewellersService.java: -------------------------------------------------------------------------------- 1 | package com.cts.rainbowjewellers.service; 2 | 3 | public class RainbowJewellersService { 4 | 5 | private final double ratepergram = 4450.00; 6 | private double makingcharges; 7 | private double gst; 8 | private double totalprice; 9 | 10 | public double calculategoldprice(double gram) { 11 | double totalpriceofgold = 0.0d; 12 | totalprice = gram * ratepergram; 13 | makingcharges = (totalprice * 10) / 100; 14 | gst = (totalprice + makingcharges) * 3 / 100; 15 | totalpriceofgold = totalprice + makingcharges + gst; 16 | return totalpriceofgold; 17 | } 18 | 19 | public static void main(String args[]){ 20 | System.out.println(new RainbowJewellersService().calculategoldprice(20)); 21 | } 22 | } 23 | 24 | 25 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Display Characters/README.md: -------------------------------------------------------------------------------- 1 | # Display Characters 2 | 3 | Rohan wants a magic board, which displays a character for a corresponding number for his science exhibition. Help him to develop such application. 4 | 5 | For example when the digits 65,66,67,68 are entered, the alphabet ABCD are to be displayed. 6 | 7 | [Assume the number of inputs should be always 4 ] 8 | 9 | > Sample Input 1: 10 | 11 | Enter the digits: 12 | 65 13 | 66 14 | 67 15 | 68 16 | 17 | > Sample Output 1: 18 | 19 | 65-A 20 | 66-B 21 | 67-C 22 | 68-D 23 | 24 | 25 | > Sample Input 2: 26 | 27 | Enter the digits: 28 | 115 29 | 116 30 | 101 31 | 112 32 | 33 | 34 | > Sample Output 2: 35 | 36 | 115-s 37 | 116-t 38 | 101-e 39 | 112-p -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/libraries/Maven__org_springframework_spring_expression_4_3_10_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Register a Candidate - User defined Exception(with throw and throws)/Candidate.java: -------------------------------------------------------------------------------- 1 | public class Candidate { 2 | private String name; 3 | private String gender; 4 | private double expectedSalary; 5 | 6 | public String getName() { 7 | return name; 8 | } 9 | 10 | public void setName(String name) { 11 | this.name = name; 12 | } 13 | 14 | public String getGender() { 15 | return gender; 16 | } 17 | 18 | public void setGender(String gender) { 19 | this.gender = gender; 20 | } 21 | 22 | public double getExpectedSalary() { 23 | return expectedSalary; 24 | } 25 | 26 | public void setExpectedSalary(double expectedSalary) { 27 | this.expectedSalary = expectedSalary; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Employee Promotion/Employee.java: -------------------------------------------------------------------------------- 1 | public class Employee { 2 | private String empName; 3 | private String empId; 4 | private double empSalary; 5 | 6 | public Employee(String empName, String empId, double empSalary) { 7 | super(); 8 | this.empName = empName; 9 | this.empId = empId; 10 | this.empSalary = empSalary; 11 | } 12 | public String getEmpName() { 13 | return empName; 14 | } 15 | public void setEmpName(String empName) { 16 | this.empName = empName; 17 | } 18 | public String getEmpId() { 19 | return empId; 20 | } 21 | public void setEmpId(String empId) { 22 | this.empId = empId; 23 | } 24 | public double getEmpSalary() { 25 | return empSalary; 26 | } 27 | public void setEmpSalary(double empSalary) { 28 | this.empSalary = empSalary; 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /Unit Testing, Code Quality/LMS Refactoring/Book.java: -------------------------------------------------------------------------------- 1 | package library; 2 | 3 | public class Book { 4 | private final String bookId; 5 | private final String bookTitle; 6 | private final String authorName; 7 | private final String publisherName; 8 | 9 | public String getBookId() { 10 | return bookId; 11 | } 12 | public String getBookTitle() { 13 | return bookTitle; 14 | } 15 | public String getAuthorName() { 16 | return authorName; 17 | } 18 | public String getPublisherName() { 19 | return publisherName; 20 | } 21 | 22 | public Book(String bookId, String bookTitle, String authorName, String publisherName) { 23 | super(); 24 | this.bookId = bookId; 25 | this.bookTitle = bookTitle; 26 | this.authorName = authorName; 27 | this.publisherName = publisherName; 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Spring Core, Maven/Autowiring/Employee.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Component; 5 | 6 | @Component 7 | public class Employee { 8 | private int empId; 9 | private String empName; 10 | 11 | @Autowired 12 | private Passport passObj; 13 | 14 | public int getEmpId() { 15 | return empId; 16 | } 17 | 18 | public void setEmpId(int empId) { 19 | this.empId = empId; 20 | } 21 | 22 | public String getEmpName() { 23 | return empName; 24 | } 25 | 26 | public void setEmpName(String empName) { 27 | this.empName = empName; 28 | } 29 | 30 | public Passport getPassObj() { 31 | return passObj; 32 | } 33 | 34 | public void setPassObj(Passport passObj) { 35 | this.passObj = passObj; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retrieve ID and Price of mobiles with in the range/script.sql: -------------------------------------------------------------------------------- 1 | create table mobile 2 | ( 3 | productId int, 4 | brandName varchar(30), 5 | modelName varchar(30), 6 | memory varchar(10), 7 | price int, 8 | colour varchar(30) 9 | ); 10 | 11 | desc mobile; 12 | 13 | insert into mobile 14 | values (104, "Redmi", "Note7Pro", "128GB", 11999, "Nebula Red/Black/Neptune Blue"), 15 | (146, "Lenovo", "K9", "32GB", 5999, "Black/Blue"), 16 | (951, "Samsung", "A50", "64GB", 20999, "Black/White/Blue"), 17 | (964, "Samsung", "S9", "128GB", 61900, "Black/Coral Blue/Lilac Purple"); 18 | 19 | select * 20 | from mobile; 21 | 22 | select productId, price 23 | from mobile 24 | where price between 5000 and 20000 25 | order by productId; 26 | 27 | truncate mobile; -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Age Calculator/AgeService.java: -------------------------------------------------------------------------------- 1 | package com.cognizant; 2 | 3 | import java.time.LocalDate; 4 | import java.time.Period; 5 | import java.time.format.DateTimeFormatter; 6 | 7 | public class AgeService { 8 | 9 | public String calculateAge(String date) { 10 | 11 | // add the code as per the requirement 12 | 13 | // Current date 14 | LocalDate today = LocalDate.now(); 15 | 16 | // Parsed dob from client 17 | LocalDate dob = LocalDate.parse(date, DateTimeFormatter.ofPattern("yyyy-MM-dd")); 18 | 19 | // Calculating the age by finding time period between today and dob 20 | Period age = Period.between(dob, today); 21 | 22 | // Returning the required output format 23 | return "you are " + age.getYears() + " years, " + age.getMonths() + " months, " + age.getDays() + " days old."; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /SQL Programming/Credential details/README.md: -------------------------------------------------------------------------------- 1 | # Credential details 2 | 3 | Refer to the schema. Write a query to display the username and password of all owners. Give an alias name as USERNAME and PASSWORD. Sort the result based on the username in ascending order. 4 | 5 | Username and password is generated as mentioned below 6 | 7 | USERNAME: concatenate the owner's name with owner id. 8 | 9 | PASSWORD: concatenate first 3 character of owner name with owner id. 10 | 11 | > For Example: 12 | 13 | Owner_id - 01 14 | 15 | Owner_name - jeeva 16 | 17 | > Sample Output: 18 | 19 | USERNAME PASSWORD 20 | jeeva01 jee01 21 | 22 | 23 | > HINT: Use Owners table to retrieve records. 24 | 25 | *NOTE: Maintain the same sequence of column order, as specified in the question description* 26 | 27 | ![database diagram](../database_2.png) -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/src/main/java/com/cts/patient/config/AppConfig.java: -------------------------------------------------------------------------------- 1 | package com.cts.patient.config; 2 | 3 | import com.cts.patient.model.Patient; 4 | import com.cts.patient.service.PatientService; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.ComponentScan; 7 | import org.springframework.context.annotation.Configuration; 8 | import org.springframework.context.annotation.PropertySource; 9 | 10 | @Configuration 11 | @ComponentScan("com.cts.patient") 12 | @PropertySource("classpath:patient_details.properties") 13 | public class AppConfig { 14 | @Bean 15 | Patient patient() { 16 | return new Patient(); 17 | } 18 | 19 | @Bean 20 | PatientService patientService() { 21 | return new PatientService(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Spring Core, Maven/Billing Software Application/BillingException.java: -------------------------------------------------------------------------------- 1 | package com.cts.service; 2 | 3 | public class BillingException extends Exception { 4 | 5 | public BillingException() { 6 | super(); 7 | // TODO Auto-generated constructor stub 8 | } 9 | 10 | public BillingException(String arg0, Throwable arg1, boolean arg2, boolean arg3) { 11 | super(arg0, arg1, arg2, arg3); 12 | // TODO Auto-generated constructor stub 13 | } 14 | 15 | public BillingException(String arg0, Throwable arg1) { 16 | super(arg0, arg1); 17 | // TODO Auto-generated constructor stub 18 | } 19 | 20 | public BillingException(String arg0) { 21 | super(arg0); 22 | // TODO Auto-generated constructor stub 23 | } 24 | 25 | public BillingException(Throwable arg0) { 26 | super(arg0); 27 | // TODO Auto-generated constructor stub 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Spring Core, Maven/EZEE Transport/Main.java: -------------------------------------------------------------------------------- 1 | package com.cts.eezee; 2 | 3 | import java.text.ParseException; 4 | import org.springframework.context.ConfigurableApplicationContext; 5 | import org.springframework.context.support.ClassPathXmlApplicationContext; 6 | 7 | import com.cts.eezee.model.Booking; 8 | import com.cts.eezee.service.TransportService; 9 | 10 | public class Main { 11 | 12 | public static void main(String[] args) throws ParseException { 13 | 14 | // code here 15 | ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("bean.xml"); 16 | 17 | TransportService transportService = (TransportService) context.getBean("transportService"); 18 | Booking booking = (Booking) context.getBean("booking"); 19 | 20 | transportService.registerBooking(booking); 21 | 22 | context.close(); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address Inner Bean/Address.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | public class Address { 4 | private String houseName; 5 | private String street; 6 | private String city; 7 | private String state; 8 | 9 | public String getHouseName() { 10 | return houseName; 11 | } 12 | 13 | public void setHouseName(String houseName) { 14 | this.houseName = houseName; 15 | } 16 | 17 | public String getStreet() { 18 | return street; 19 | } 20 | 21 | public void setStreet(String street) { 22 | this.street = street; 23 | } 24 | 25 | public String getCity() { 26 | return city; 27 | } 28 | 29 | public void setCity(String city) { 30 | this.city = city; 31 | } 32 | 33 | public String getState() { 34 | return state; 35 | } 36 | 37 | public void setState(String state) { 38 | this.state = state; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/src/project/EmployeeDAO.java: -------------------------------------------------------------------------------- 1 | package project; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class EmployeeDAO { 7 | private final List employeeList = new ArrayList<>(); 8 | 9 | public void addEmployee(Employee employee) { 10 | employeeList.add(employee); 11 | } 12 | 13 | public void removeEmployee(Employee employee) { 14 | employeeList.remove(employee); 15 | } 16 | 17 | public void viewEmployee() { 18 | for (Employee employee : employeeList) { 19 | System.out.println("Employee Id:" + employee.getEmployeeId()); 20 | System.out.println("Employee Name:" + employee.getEmployeeName()); 21 | System.out.println("Email Id:" + employee.getEmailId()); 22 | System.out.println("Designation: " + employee.getDesignation()); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Spring Core, Maven/DBConfig-SetterBasedInjection/Main.java: -------------------------------------------------------------------------------- 1 | package com.app.driver; 2 | 3 | import org.springframework.context.ConfigurableApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | import com.spring.app.DBConfig; 7 | import com.spring.app.EmployeeDAO; 8 | 9 | public class Main { 10 | 11 | public static void main(String[] args) { 12 | ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("beans.xml"); 13 | EmployeeDAO empDAO = (EmployeeDAO) context.getBean("employeeDAO"); 14 | 15 | DBConfig dbConfig = empDAO.getDbConfig(); 16 | 17 | System.out.println(dbConfig.getDriverName()); 18 | System.out.println(dbConfig.getUrl()); 19 | System.out.println(dbConfig.getUserName()); 20 | System.out.println(dbConfig.getPassword()); 21 | 22 | context.close(); 23 | } 24 | } -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/src/main/java/com/service/HelperService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | import com.model.HelperBean; 6 | 7 | @Service 8 | public class HelperService { 9 | public double calculateTotalCost(HelperBean helperBean) { 10 | String serviceType = helperBean.getServiceType(); 11 | int noOfHours = helperBean.getNoOfHours(); 12 | float costPerHour = 0.0f; 13 | 14 | if (serviceType.equals("ACService")) { 15 | costPerHour = 400.0f; 16 | } else if (serviceType.equals("WashingMachineService")) { 17 | costPerHour = 500.0f; 18 | } else if (serviceType.equals("RefrigeratorService")) { 19 | costPerHour = 300.0f; 20 | } 21 | 22 | helperBean.setServiceCostPerHour(costPerHour); 23 | 24 | return noOfHours * costPerHour; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ProjectAllocationRefactoring 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 | 1609409464271 20 | 21 | 30 22 | 23 | org.eclipse.core.resources.regexFilterMatcher 24 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/src/main/java/com/cts/academy/test/Main.java: -------------------------------------------------------------------------------- 1 | package com.cts.academy.test; 2 | 3 | import org.junit.runner.JUnitCore; 4 | import org.junit.runner.Result; 5 | import org.junit.runner.notification.Failure; 6 | 7 | public class Main { 8 | public static void main(String[] args) { 9 | Result result = JUnitCore.runClasses(TrainerCohortMapDAOTest.class); 10 | if (result.getFailureCount() == 0) { 11 | System.out.println("All Test cases Cleared"); 12 | } else { 13 | System.out.println("One or more test case(s) failed"); 14 | System.out.println("==============================="); 15 | for (Failure failure : result.getFailures()) { 16 | System.out.println(failure.getMessage()); 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Member Manipulation/Library.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | import java.util.List; 3 | import java.util.stream.Collectors; 4 | 5 | public class Library { 6 | private List memberList = new ArrayList<>(); 7 | 8 | public List getMemberList() { 9 | return memberList; 10 | } 11 | 12 | public void setMemberList(List memberList) { 13 | this.memberList = memberList; 14 | } 15 | 16 | public void addMember(Member member) { 17 | memberList.add(member); 18 | } 19 | 20 | public List viewAllMembers() { 21 | return memberList; 22 | } 23 | 24 | public List viewMembersByAddress(String address) { 25 | return memberList.stream().filter(member -> member.getAddress().contains(address)).collect(Collectors.toList()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/String Concatenation/javacode.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Authority 3 | { 4 | public static void main (String[] args) { 5 | Scanner sc=new Scanner(System.in); 6 | System.out.println("Inmate's name:"); 7 | String name=sc.nextLine(); 8 | System.out.println("Inmate's father's name:"); 9 | String fname=sc.nextLine(); 10 | name=name.concat(" ").concat(fname); 11 | char []chars=name.toCharArray(); 12 | for(char c:chars) 13 | { 14 | if(Character.isDigit(c)||c=='+'||c=='!'||c=='@'||c=='#'||c=='%'||c=='$'||c=='^'||c=='&'||c=='*') 15 | { 16 | System.out.println("Invalid name"); 17 | System.exit(0); 18 | } 19 | } 20 | System.out.println(name.toUpperCase()); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Print unique characters/README.md: -------------------------------------------------------------------------------- 1 | # Print unique characters 2 | 3 | Write a program to print all the unique characters in a given sentence. 4 | 5 | The sentence should have only alphabets . 6 | 7 | If the sentence is not valid display the message "Invalid Sentence". 8 | 9 | If unique characters are not found print "No unique characters". 10 | 11 | If unique characters are found print those characters as shown in sample output. 12 | 13 | > Sample Input 1: 14 | 15 | Enter the sentence: 16 | java is an object oriented programming language 17 | 18 | > Sample Output 1: 19 | 20 | Unique characters: 21 | v 22 | s 23 | b 24 | c 25 | d 26 | p 27 | l 28 | u 29 | 30 | --- 31 | 32 | > Sample Input 2: 33 | 34 | Welcome to 12house 35 | 36 | > Sample Output 2: 37 | 38 | Invalid Sentence -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Electricity Bill/EBBill.java: -------------------------------------------------------------------------------- 1 | 2 | import java.util.Scanner; 3 | 4 | public class EBBill { 5 | private int units; 6 | 7 | public EBBill(int units) { 8 | this.units = units; 9 | } 10 | 11 | public double calculateBillAmount() { 12 | double amount=0.0; 13 | 14 | if (units > 0) { 15 | if (units <= 50) 16 | amount = units * 2.60; 17 | else if (units <= 100) 18 | amount = 130 + ((units - 50) * 3.25); 19 | else if (units <= 200) 20 | amount = 130 + 162.50 + ((units - 100 ) * 5.26); 21 | else if (units <= 1000) 22 | amount = 130 + 162.50 + 526 + ((units - 200 ) * 7.75); 23 | else if (units <= 5000) 24 | amount = 130 + 162.50 + 526 + 6200 + ((units - 1000) * 10); 25 | else 26 | amount = 0.0; 27 | } 28 | return amount; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Account Manipulation - Abstract Class/SavingsAccount.java: -------------------------------------------------------------------------------- 1 | public class SavingsAccount extends Account { 2 | private double minimumBalance; 3 | 4 | public SavingsAccount(int accountNumber, Customer customerObj, double balance, double minimumBalance) { 5 | super(accountNumber, customerObj, balance); 6 | this.minimumBalance = minimumBalance; 7 | } 8 | 9 | public double getMinimumBalance() { 10 | return minimumBalance; 11 | } 12 | 13 | public void setMinimumBalance(double minimumBalance) { 14 | this.minimumBalance = minimumBalance; 15 | } 16 | 17 | @Override 18 | public boolean withdraw(double amount) { 19 | if (balance - amount > minimumBalance) { 20 | balance -= amount; 21 | 22 | return true; 23 | } 24 | 25 | return false; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/List of prime numbers/README.md: -------------------------------------------------------------------------------- 1 | # List of prime numbers 2 | 3 | To speed up his composition of generating unpredictable rhythms, A.R.Rahman wants the list of prime numbers available in a range of numbers.Can you help him out? 4 | 5 | Write a java program to print all prime numbers in the interval [a,b] (a and b, both inclusive). 6 | 7 | ## Note 8 | 9 | > Input 1 should be lesser than Input 2. Both the inputs should be positive. 10 | > Range must always be greater than zero. 11 | > If any of the condition mentioned above fails, then display "Provide valid input" 12 | > Use a minimum of one for loop and one while loop 13 | 14 | 15 | > Sample Input 1: 16 | 17 | 2 18 | 15 19 | 20 | > Sample Output 1: 21 | 22 | 2 3 5 7 11 13 23 | 24 | 25 | > Sample Input 2: 26 | 27 | 8 28 | 5 29 | 30 | > Sample Output 2: 31 | 32 | Provide valid input -------------------------------------------------------------------------------- /Spring Core, Maven/DBConfig-SetterBasedInjection/DBConfig.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | public class DBConfig { 4 | private String driverName; 5 | private String url; 6 | private String userName; 7 | private String password; 8 | 9 | public String getDriverName() { 10 | return driverName; 11 | } 12 | 13 | public void setDriverName(String driverName) { 14 | this.driverName = driverName; 15 | } 16 | 17 | public String getUrl() { 18 | return url; 19 | } 20 | 21 | public void setUrl(String url) { 22 | this.url = url; 23 | } 24 | 25 | public String getUserName() { 26 | return userName; 27 | } 28 | 29 | public void setUserName(String userName) { 30 | this.userName = userName; 31 | } 32 | 33 | public String getPassword() { 34 | return password; 35 | } 36 | 37 | public void setPassword(String password) { 38 | this.password = password; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Batting Average/com/utility/Player.java: -------------------------------------------------------------------------------- 1 | package com.utility; 2 | 3 | import java.util.List; 4 | 5 | public class Player { 6 | private List scoreList; 7 | 8 | public List getScoreList() { 9 | return scoreList; 10 | } 11 | 12 | public void setScoreList(List scoreList) { 13 | this.scoreList = scoreList; 14 | } 15 | 16 | public double getAverageRunScored() { 17 | if (scoreList.isEmpty()) { 18 | return 0.0; 19 | } 20 | 21 | int size = scoreList.size(); 22 | int totalScore = 0; 23 | 24 | for (int score : scoreList) { 25 | totalScore += score; 26 | } 27 | 28 | return (double) totalScore / (double) size; 29 | } 30 | 31 | public void addScoreDetails(int score) { 32 | scoreList.add(score); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Online Help Service/HelpServices/src/main/java/com/model/HelperBean.java: -------------------------------------------------------------------------------- 1 | package com.model; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class HelperBean { 7 | private String serviceType; 8 | private float serviceCostPerHour; 9 | private int noOfHours; 10 | 11 | public String getServiceType() { 12 | return serviceType; 13 | } 14 | 15 | public void setServiceType(String serviceType) { 16 | this.serviceType = serviceType; 17 | } 18 | 19 | public float getServiceCostPerHour() { 20 | return serviceCostPerHour; 21 | } 22 | 23 | public void setServiceCostPerHour(float serviceCostPerHour) { 24 | this.serviceCostPerHour = serviceCostPerHour; 25 | } 26 | 27 | public int getNoOfHours() { 28 | return noOfHours; 29 | } 30 | 31 | public void setNoOfHours(int noOfHours) { 32 | this.noOfHours = noOfHours; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/.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=11 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=11 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.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=11 15 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Retrieve customer count based on loan type/script.sql: -------------------------------------------------------------------------------- 1 | create table loan 2 | ( 3 | loanId int, 4 | accHolderName varchar(30), 5 | loanType varchar(30), 6 | contactNumber varchar(30), 7 | rateOfInterest double(6, 2), 8 | tenureOfLoan double(6, 2) 9 | ); 10 | 11 | desc loan; 12 | 13 | insert into loan 14 | values (25, "Jordan", "Education", 9865007313, 10.45, 4), 15 | (88, "Kaushik", "Vehicle", 9965655073, 8.70, 7), 16 | (142, "Rohith", "Education", 9758462310, 10.45, 2.5), 17 | (845, "Adam Haynes", "Home", 7373848565, 7.90, 15), 18 | (1021, "Tamil Iniya", "Education", 9876543210, 10.45, 5), 19 | (1654, "Imam Azad", "Personal", 8451203694, 11.25, 5), 20 | (2578, "James", "Gold", 9154762358, 9.15, 1); 21 | 22 | select * from loan; 23 | 24 | select count(loanId) 25 | from loan 26 | where loanType = "Home"; -------------------------------------------------------------------------------- /Java Programming Fundamentals/Find and Replace/ReplaceWord.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | class ReplaceWord { 4 | public static void main(String[] args) { 5 | Scanner scanner = new Scanner(System.in); 6 | String sentence, word, replacement; 7 | 8 | System.out.println("Enter the string:"); 9 | sentence = scanner.nextLine(); 10 | 11 | System.out.println("Enter the word to be searched:"); 12 | word = scanner.nextLine(); 13 | 14 | System.out.println("Enter the word to be replaced:"); 15 | replacement = scanner.nextLine(); 16 | 17 | String replacedSentence = sentence.replace(word, replacement); 18 | 19 | if (replacedSentence.equals(sentence)) { 20 | System.out.println("The word " + word + " not found"); 21 | } else { 22 | System.out.println(replacedSentence); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Player Selection System_JDBC/Main.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | 3 | public class Main { 4 | public static void main(String[] args) { 5 | 6 | // fill your code here 7 | 8 | Scanner s = new Scanner(System.in); 9 | 10 | System.out.println("Enter the minimum height"); 11 | double minHeight = s.nextDouble(); 12 | 13 | System.out.println("Enter the maximum weight"); 14 | double maxWeight = s.nextDouble(); 15 | s.close(); 16 | 17 | PlayerSelectionSystem pss = new PlayerSelectionSystem(); 18 | 19 | List playerList = pss.playersBasedOnHeightWeight(minHeight, maxWeight); 20 | 21 | if (playerList.isEmpty()) { 22 | System.out.printf("No players are with minimum height of %.1f and maximum weight of %.1f", minHeight, 23 | maxWeight); 24 | return; 25 | } 26 | 27 | for (String player : playerList) { 28 | System.out.println(player); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Spring Core, Maven/CurrencyConverter-Collections/CurrencyConverter.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import java.util.Map; 4 | 5 | public class CurrencyConverter { 6 | private Map mObj; 7 | 8 | public Map getmObj() { 9 | return mObj; 10 | } 11 | 12 | public void setmObj(Map mObj) { 13 | this.mObj = mObj; 14 | } 15 | 16 | public int getTotalCurrencyValue(String value) { 17 | for (Map.Entry entry : mObj.entrySet()) { 18 | String currencyName = entry.getKey(); 19 | String uppercaseValue = value.toUpperCase(); 20 | 21 | if (uppercaseValue.contains(currencyName)) { 22 | int conversionRate = Integer.parseInt(entry.getValue()); 23 | int totalCurrency = Integer.parseInt(uppercaseValue.substring(0, uppercaseValue.indexOf(currencyName))); 24 | return totalCurrency * conversionRate; 25 | } 26 | } 27 | return 0; 28 | } 29 | 30 | } -------------------------------------------------------------------------------- /Java Programming Fundamentals/Lucky Number/README.md: -------------------------------------------------------------------------------- 1 | # Lucky Number 2 | 3 | William planned to choose a four digit lucky number for his car. His lucky numbers are 3,5 and 7. Help him find the number, whose sum is divisible by 3 or 5 or 7. 4 | Provide a valid car number, Fails to provide a valid input then display that number is not a valid car number. 5 | Note : The input other than 4 digit positive number[includes negative and 0] is considered as invalid. 6 | Refer the samples, to read and display the data. 7 | 8 | > Sample Input 1: 9 | Enter the car no:1234 10 | 11 | > Sample Output 1: 12 | Lucky Number 13 | 14 | --- 15 | 16 | > Sample Input 2: 17 | 18 | Enter the car no:1214 19 | 20 | > Sample Output 2: 21 | 22 | Sorry its not my lucky number 23 | 24 | --- 25 | 26 | > Sample Input 3: 27 | 28 | Enter the car no:14 29 | 30 | > Sample Output 3: 31 | 32 | 14 is not a valid car number 33 | 34 | -------------------------------------------------------------------------------- /Spring Core, Maven/Customer-Address-Scope/Driver.java: -------------------------------------------------------------------------------- 1 | package com.spring.app; 2 | 3 | import org.springframework.context.ConfigurableApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Driver { 7 | public static void main(String[] args) { 8 | ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml"); 9 | // Creating the first customer object and updating the city 10 | Customer custObj1 = (Customer) ctx.getBean("custObj"); 11 | custObj1.getAddress().setCity("Greenville"); 12 | System.out.println("Customer City of first Customer: " + custObj1.getAddress().getCity()); 13 | 14 | // Creating the Second customer object 15 | Customer custObj2 = (Customer) ctx.getBean("custObj"); 16 | System.out.println("Default customer City of second Customer: " + custObj2.getAddress().getCity()); 17 | 18 | ctx.close(); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /Java Programming Fundamentals/Fruit Basket Estimation/FruitBasket.java: -------------------------------------------------------------------------------- 1 | public class FruitBasket { 2 | private String fruitName; 3 | private int weightInKgs; 4 | private int pricePerKg; 5 | 6 | public String getFruitName() { 7 | return fruitName; 8 | } 9 | public void setFruitName(String fruitName) { 10 | this.fruitName = fruitName; 11 | } 12 | public int getWeightInKgs() { 13 | return weightInKgs; 14 | } 15 | public void setWeightInKgs(int weightInKgs) { 16 | this.weightInKgs = weightInKgs; 17 | } 18 | public int getPricePerKg() { 19 | return pricePerKg; 20 | } 21 | public void setPricePerKg(int pricePerKg) { 22 | this.pricePerKg = pricePerKg; 23 | } 24 | public FruitBasket(String fruitName, int weightInKgs, int pricePerKg) { 25 | super(); 26 | this.fruitName = fruitName; 27 | this.weightInKgs = weightInKgs; 28 | this.pricePerKg = pricePerKg; 29 | } 30 | public FruitBasket() { 31 | super(); 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /Spring MVC and Spring Boot/Age Calculator/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | isELIgnored="false" pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 |
12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
Enter Name :
Select Birth Date :
27 |
28 |
29 |
30 |

${name} ${message}

31 | 32 | 33 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Cumulative sun in an array/CumulativeSum.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | import java.util.StringJoiner; 3 | 4 | class CumulativeSum { 5 | public static void main(String[] args) { 6 | Scanner scanner = new Scanner(System.in); 7 | int n; 8 | 9 | System.out.println("Enter number of elements"); 10 | n = scanner.nextInt(); 11 | 12 | if (n <= 0) { 13 | System.out.println("Invalid Range"); 14 | } else { 15 | int sum = 0; 16 | StringJoiner stringJoiner = new StringJoiner(" "); 17 | 18 | System.out.println("Enter the elements"); 19 | 20 | for (int i = 0; i < n; ++i) { 21 | int num = scanner.nextInt(); 22 | sum += num; 23 | stringJoiner.add(String.valueOf(sum)); 24 | } 25 | 26 | System.out.println(stringJoiner.toString()); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Project Allocation Refactoring/src/project/ProjectDAO.java: -------------------------------------------------------------------------------- 1 | package project; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class ProjectDAO { 7 | private final List projectList = new ArrayList<>(); 8 | 9 | public void addProject(Project project) { 10 | projectList.add(project); 11 | } 12 | 13 | public void removeProject(Project project) { 14 | projectList.remove(project); 15 | } 16 | 17 | public void viewProject() { 18 | for (Project project : projectList) { 19 | System.out.println("Project Id:" + project.getProjectId()); 20 | System.out.println("Project Name:" + project.getProjectName()); 21 | System.out.println("Project Manager Name:" + project.getProjectManagerName()); 22 | System.out.println("Duration:" + project.getDuration()); 23 | System.out.println("Start Date:" + project.getStartDate()); 24 | System.out.println("End Date:" + project.getEndDate()); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Fruit Basket Estimation/FruitBasketUtility.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | import java.util.List; 3 | import java.util.stream.Stream; 4 | 5 | public class FruitBasketUtility { 6 | private List fruitBasketList=new ArrayList(); 7 | 8 | public List getFruitBasketList() { 9 | return fruitBasketList; 10 | } 11 | 12 | public void setFruitBasketList(List fruitBasketList) { 13 | this.fruitBasketList = fruitBasketList; 14 | } 15 | 16 | public void addToBasket(FruitBasket fbObj) { 17 | // Fill your code here 18 | fruitBasketList.add(fbObj); 19 | 20 | } 21 | 22 | public int calculateBill(Stream fruitBasketStream) { 23 | 24 | int b[]=new int[1]; 25 | // Fill your code here 26 | fruitBasketStream.forEach(a-> 27 | { 28 | int wt=a.getWeightInKgs(); 29 | int pr=a.getPricePerKg(); 30 | b[0]=b[0]+pr*wt; 31 | }); 32 | return b[0]; 33 | 34 | 35 | 36 | } 37 | 38 | } -------------------------------------------------------------------------------- /Java Programming Fundamentals/Lucky Number/LuckyNum.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class LuckyNum { 4 | public static void main(String[] args) { 5 | Scanner scanner = new Scanner(System.in); 6 | int carNo; 7 | 8 | System.out.println("Enter the car no:"); 9 | carNo = scanner.nextInt(); 10 | 11 | if (carNo < 1000 || carNo > 9999) { 12 | System.out.println(carNo + " is not a valid car number"); 13 | } else { 14 | int sum = 0; 15 | 16 | for (char ch : String.valueOf(carNo).toCharArray()) { 17 | sum += Character.digit(ch, 10); 18 | } 19 | 20 | System.out.println(sum); 21 | 22 | if (sum % 3 == 0 || sum % 5 == 0 || sum % 7 == 0) { 23 | System.out.println("Lucky Number"); 24 | } else { 25 | System.out.println("Sorry its not my lucky number"); 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /SQL Programming/Movie-Modify the datatype set2/README.md: -------------------------------------------------------------------------------- 1 | # Hostel-Insert Student Records set2 2 | 3 | Refer to the given schema diagram. Insert the below records into Student_details Table. 4 | 5 | | STUDENT_ID | STUDENT_NAME | DEPARTMENT | DOB | ADDRESS | PHONE_NO | EMAIL_ID | 6 | | ---------- | ------------ | ---------- | --- | ------- | -------- | -------- | 7 | | S1001 | Varsha | ECE | 1999-06-12 | CHENNAI | 9845712345 | varsha123@gmail.com | 8 | | S1002 | William | ECE | 1999-02-04 | CALCUTTA | 6845712345 | william123@gmail.com | 9 | | S1003 | Basha | EEE | 1999-06-14 | DELHI | 9945712345 | basha222@gmail.com | 10 | | S1004 | Catherine | CSE | 1998-08-16 | DELHI | 6785712345 | cathu123@gmail.com | 11 | | S1005 | Kate | ECE | 1999-06-30 | BANGALORE | 7685712345 | katedd@gmail.com | 12 | | S1006 | Michel | ECE | 1998-06-04 | COIMBATORE | 6645712345 | michel000@gmail.com | 13 | 14 | > NOTE: 15 | 16 | Maintain the same sequence of column order, as specified in the question description -------------------------------------------------------------------------------- /Unit Testing, Code Quality/LMS Refactoring/MemberDAO.java: -------------------------------------------------------------------------------- 1 | package library; 2 | 3 | import java.util.ArrayList; 4 | 5 | public class MemberDAO { 6 | ArrayList memberList = new ArrayList(); 7 | 8 | public void addMember(Member obj){ 9 | memberList.add(obj); 10 | } 11 | 12 | public void removeMember(Member obj) 13 | { 14 | memberList.remove(obj); 15 | } 16 | 17 | public void viewMember() 18 | { 19 | for(int i=0;i mobiles = mobileManagementSystem.viewMobileWithInTheRange(minRange, maxRange); 16 | 17 | if (mobiles.isEmpty()) { 18 | System.out.println("No mobiles found for the given range\n" + 19 | "\n"); 20 | } else { 21 | mobiles.forEach((key, value) -> System.out.println(key + ":" + value)); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Spring Core, Maven/Go Go Parcel Service/src/main/java/com/spring/model/Courier.java: -------------------------------------------------------------------------------- 1 | package com.spring.model; 2 | 3 | public class Courier { 4 | private int courierId; 5 | private int weight; 6 | private float chargePerKg; 7 | private ServiceChargeInfo serviceCharge; 8 | 9 | public int getCourierId() { 10 | return courierId; 11 | } 12 | 13 | public void setCourierId(int courierId) { 14 | this.courierId = courierId; 15 | } 16 | 17 | public int getWeight() { 18 | return weight; 19 | } 20 | 21 | public void setWeight(int weight) { 22 | this.weight = weight; 23 | } 24 | 25 | public float getChargePerKg() { 26 | return chargePerKg; 27 | } 28 | 29 | public void setChargePerKg(float chargePerKg) { 30 | this.chargePerKg = chargePerKg; 31 | } 32 | 33 | public ServiceChargeInfo getServiceCharge() { 34 | return serviceCharge; 35 | } 36 | 37 | public void setServiceCharge(ServiceChargeInfo serviceCharge) { 38 | this.serviceCharge = serviceCharge; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Spring Core, Maven/Passport Service/AppConfig.java: -------------------------------------------------------------------------------- 1 | package com.cts.passportService; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.ComponentScan; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | // Type your code here 8 | // Type your code here 9 | 10 | @Configuration 11 | @ComponentScan 12 | public class AppConfig { 13 | 14 | // Type your code here 15 | @Bean 16 | public Document chennaiDocument() { 17 | 18 | Document document = new Document(); 19 | document.setName("Joe"); 20 | document.setIdProof("Driving Licence"); 21 | document.setCity("Chennai"); 22 | 23 | return document; 24 | } 25 | 26 | // Type your code here 27 | @Bean 28 | public Document bangaloreDocument() { 29 | 30 | Document document = new Document(); 31 | document.setName("John"); 32 | document.setIdProof("Aadhaar Card"); 33 | document.setCity("Bangalore"); 34 | 35 | return document; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Spring Core, Maven/Patient Management/PatientManagement/.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Test Call Back/TestCallback/.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Numerology/README.md: -------------------------------------------------------------------------------- 1 | # Numerology 2 | 3 | Write a program to find the numerological value for a given name. 4 | Note: Store the numerological number and the corresponding character in a 2-D array(2*26). Always the given name should be in capital case ,else the name is not valid. Check for the valid name,if the name is invalid print the message "Invalid name".There should not be any space in the name provided. 5 | For example: 6 | A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 7 | 1 2 3 4 5 8 3 5 1 1 2 3 4 5 7 8 1 2 3 4 6 6 6 5 1 7 8 | 9 | > Sample Input 1: 10 | 11 | Enter your name: 12 | SUDHA 13 | 14 | > Sample Output 1: 15 | 16 | Your numerology no is:19 17 | 18 | --- 19 | 20 | > Sample Input 2: 21 | 22 | Enter your name: 23 | kiran 24 | 25 | > Sample Output 2: 26 | 27 | Invalid name 28 | 29 | --- 30 | 31 | > Sample Input 3: 32 | 33 | Enter your name: 34 | ANI34 35 | 36 | > Sample Output 3: 37 | 38 | Invalid name -------------------------------------------------------------------------------- /Java Programming Fundamentals/Member Manipulation/Member.java: -------------------------------------------------------------------------------- 1 | public class Member { 2 | private int memberId; 3 | private String memberName; 4 | private String address; 5 | 6 | public Member() { 7 | } 8 | 9 | public Member(int memberId, String memberName, String address) { 10 | this.memberId = memberId; 11 | this.memberName = memberName; 12 | this.address = address; 13 | } 14 | 15 | public int getMemberId() { 16 | return memberId; 17 | } 18 | 19 | public void setMemberId(int memberId) { 20 | this.memberId = memberId; 21 | } 22 | 23 | public String getMemberName() { 24 | return memberName; 25 | } 26 | 27 | public void setMemberName(String memberName) { 28 | this.memberName = memberName; 29 | } 30 | 31 | public String getAddress() { 32 | return address; 33 | } 34 | 35 | public void setAddress(String address) { 36 | this.address = address; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Shape - Area Volume Calculator/Cube.java: -------------------------------------------------------------------------------- 1 | public class Cube extends Shape implements Spatial { 2 | private double length; 3 | private double width; 4 | private double height; 5 | 6 | public double getLength() { 7 | return length; 8 | } 9 | 10 | public void setLength(double length) { 11 | this.length = length; 12 | } 13 | 14 | public double getWidth() { 15 | return width; 16 | } 17 | 18 | public void setWidth(double width) { 19 | this.width = width; 20 | } 21 | 22 | public double getHeight() { 23 | return height; 24 | } 25 | 26 | public void setHeight(double height) { 27 | this.height = height; 28 | } 29 | 30 | @Override 31 | public double area() { 32 | return 2 * (length * width + length * height + height * width); 33 | } 34 | 35 | @Override 36 | public double volume() { 37 | return height * width * length; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Parameterized/RainbowJewellers.java: -------------------------------------------------------------------------------- 1 | package com.cts.rainbowjewellers; 2 | 3 | import java.util.Scanner; 4 | 5 | import com.cts.rainbowjewellers.service.RainbowJewellersService; 6 | import com.cts.skeletonvalidator.SkeletonValidator; 7 | 8 | 9 | public class RainbowJewellers { 10 | 11 | public static void main(String[] args) { 12 | // CODE SKELETON - VALIDATION STARTS 13 | // DO NOT CHANGE THIS CODE 14 | SkeletonValidator validator = new SkeletonValidator(); 15 | // CODE SKELETON - VALIDATION ENDS 16 | 17 | Scanner scanner = new Scanner(System.in); 18 | 19 | System.out.println("Enter the gold in grams"); 20 | double grams = Double.parseDouble(scanner.nextLine()); 21 | 22 | RainbowJewellersService rainbowJewellersService = new RainbowJewellersService(); 23 | 24 | double totalPriceOfGold = rainbowJewellersService.calculategoldprice(grams); 25 | 26 | System.out.println("Total Price of the Gold is: " + totalPriceOfGold); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Spring Core, Maven/Passport Service/ChennaiPassportOffice.java: -------------------------------------------------------------------------------- 1 | package com.cts.passportService; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Component; 5 | 6 | // Type your code here 7 | @Component 8 | public class ChennaiPassportOffice implements HeadPassportOffice { 9 | 10 | private Document chennaiDocument; 11 | 12 | // Type your code here 13 | 14 | @Autowired 15 | public ChennaiPassportOffice(Document chennaiDocument) { 16 | super(); 17 | this.chennaiDocument = chennaiDocument; 18 | } 19 | 20 | // Type your code here 21 | 22 | // Implementation of the interface methods 23 | public void doPhotoVerification() { 24 | System.out.println("Photo verification done using " + chennaiDocument.getIdProof()); 25 | } 26 | 27 | public void issuePassport() { 28 | System.out.println("Passport issue is in progress for " + chennaiDocument.getName() + " from " 29 | + chennaiDocument.getCity() + " office"); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Unit Testing, Code Quality/Product Login Test suite/Product.java: -------------------------------------------------------------------------------- 1 | public class Product { 2 | private String productId; 3 | private String productName; 4 | private double price; 5 | 6 | public Product() { 7 | super(); 8 | this.productId = ""; 9 | this.productName = ""; 10 | this.price = 0.0; 11 | } 12 | public String getProductId() { 13 | return productId; 14 | } 15 | public void setProductId(String productId) { 16 | this.productId = productId; 17 | } 18 | public String getProductName() { 19 | return productName; 20 | } 21 | public void setProductName(String productName) { 22 | this.productName = productName; 23 | } 24 | public double getPrice() { 25 | return price; 26 | } 27 | public void setPrice(double price) { 28 | this.price = price; 29 | } 30 | public Product(String productId, String productName, double price) { 31 | super(); 32 | this.productId = productId; 33 | this.productName = productName; 34 | this.price = price; 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Insurance Bazaar/com/utility/Bazaar.java: -------------------------------------------------------------------------------- 1 | package com.utility; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | public class Bazaar { 8 | private Map policyMap; 9 | 10 | public Map getPolicyMap() { 11 | return policyMap; 12 | } 13 | 14 | public void setPolicyMap(Map policyMap) { 15 | this.policyMap = policyMap; 16 | } 17 | 18 | public void addPolicyDetails(int policyId, String policyName) { 19 | policyMap.put(policyId, policyName); 20 | } 21 | 22 | public List searchBasedOnPolicyType(String policyType) { 23 | List policies = new ArrayList<>(); 24 | 25 | for (int policyId : policyMap.keySet()) { 26 | if (policyMap.get(policyId).contains(policyType)) { 27 | policies.add(policyId); 28 | } 29 | } 30 | 31 | return policies; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Java Programming Fundamentals/Palindrome/README.md: -------------------------------------------------------------------------------- 1 | # Palindrome 2 | 3 | Astrologist believes that having a palindromic name is very auspicious . As we all know, a palindrome is a word that can be read the same way in either direction.There should not be a space or any special character in the word entered. If yes, display "Invalid Input". Write a Java program to determine whether a given word is a palindrome or not. 4 | 5 | > Sample Input 1: 6 | 7 | Enter the word : 8 | Malayalam 9 | 10 | > Sample Output 1: 11 | 12 | Malayalam is a Palindrome 13 | 14 | --- 15 | 16 | > Sample Input 2: 17 | 18 | Enter the word : 19 | Apple 20 | 21 | > Sample Output 2: 22 | 23 | Apple is not a Palindrome 24 | 25 | --- 26 | 27 | > Sample Input 3: 28 | 29 | Enter the word : 30 | no on 31 | 32 | > Sample Output 3: 33 | 34 | Invalid Input 35 | 36 | --- 37 | 38 | > Sample Input 4: 39 | 40 | Enter the word : 41 | @nnn 42 | 43 | > Sample Output 4: 44 | 45 | Invalid Input --------------------------------------------------------------------------------