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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
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 | 
--------------------------------------------------------------------------------
/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 | 
--------------------------------------------------------------------------------
/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 | 
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 |
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 | 
--------------------------------------------------------------------------------
/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 |