├── TNSDC
├── demo
├── PhP
│ ├── demo
│ ├── PhP Lab 2 Practice Question
│ ├── PhP Lab 2 Practice Question Solution
│ ├── PhP Lab 3 Practice Question
│ ├── PhP Lab 1 Class
│ ├── PhP Lab 1 Practice Question
│ ├── PhP Lab 2 Class
│ ├── PhP Lab 1 Practice QuestionSolution
│ ├── PhP Lab 3 Class
│ └── PhP Lab 3 Practice Question Solution
└── Self Paced
│ ├── demo
│ ├── Python OOPs 1
│ ├── JS
│ ├── Python Loops
│ ├── Python Conditional Statements
│ ├── Python OOPs 2
│ ├── SQL
│ ├── PHP Loops
│ ├── Python Functions
│ ├── PHP Conditional Statements
│ ├── Django Practical 1
│ ├── PHP OOPs
│ ├── JS DOM
│ ├── HTML Tags
│ ├── Django Practical 2
│ ├── HTML Layout 2
│ └── CSS 2
├── Full Stack Development with Cloud
├── demo
├── Module 2
│ ├── demo
│ ├── Unit 5
│ │ ├── src
│ │ │ ├── demo
│ │ │ ├── mobile-style.css
│ │ │ ├── main.js
│ │ │ └── Index.html
│ │ └── assest
│ │ │ ├── demo
│ │ │ ├── logo.png
│ │ │ ├── UI-face-1.jpg
│ │ │ ├── UI-face-2.jpg
│ │ │ ├── UI-face-3.jpg
│ │ │ ├── UI-face-4.jpg
│ │ │ ├── UI-face-5.jpg
│ │ │ ├── header-img.png
│ │ │ ├── pexels-photo-179941.jpeg
│ │ │ ├── pexels-photo-1904769.jpeg
│ │ │ ├── pexels-photo-452738.jpeg
│ │ │ ├── pexels-photo-636243.jpeg
│ │ │ ├── pexels-photo-900102.jpeg
│ │ │ └── caique-silva-320647-unsplash.jpg
│ ├── Lab 18a Ex.2 Practice Question
│ ├── Lab 8 Ex.2 Practice Question
│ ├── Lab 15 Ex.2 Practice Question
│ ├── Lab 9 Ex.2 Practice Question
│ ├── Lab 18 Ex.2 Practice Question
│ ├── Lab 14 Ex.2 Practice Question
│ ├── Lab 7 Ex.2 Practice Question
│ ├── Lab 17 Ex.2 Practice Question
│ ├── Lab 4 Ex. 2 Practice Questions
│ ├── Lab 1 Ex. 2 Practice Questions
│ ├── Lab 3 Ex. 2 Practice Question
│ ├── Lab 10 Ex.2 Practice Question
│ ├── Lab 5 Ex. 2 Practice Question
│ ├── Lab 2 Ex. 2 Practice Question
│ ├── Lab 6 Ex. 2 Practice Question
│ ├── Lab 16 Ex.2 Practice Question
│ ├── Lab 13 Ex.2 Practice Question
│ ├── Lab 18a Ex.2 Practice Question Solution
│ ├── Lab 18a. Ex.1 solved
│ ├── Lab 9 Ex.2 Practice Question Solution
│ ├── Lab 11 Ex.2 Practice Questions
│ ├── Lab 12 Ex.2 Practice Question
│ ├── Lab 14 Ex.2 Practice Question Solution
│ ├── Lab 5 Ex. 2 Practice Question Solution
│ ├── Lab 8 Ex. 1 Solved
│ ├── Lab 4 Ex. 2 Practice Question Solution
│ ├── Lab 1 Ex. 2 Practice Question Solution
│ ├── Lab 12 Ex.1 Solved
│ ├── Lab 13 Ex.1 Solved
│ ├── Lab 8 Ex.2 Practice Question Solution
│ ├── Lab 15 Ex.2 Practice Question Solution
│ ├── Lab 15 Ex.1 Solved
│ ├── Lab 13 Ex.2 Practice Question Solution
│ ├── Lab 7 Ex.2 Practice Question Solution
│ ├── Lab 10 Ex.2 Practice Question Solution
│ ├── Lab 16 Ex.2 Practice Question Solution
│ ├── Lab 6 Ex. 2 Practice Question Solution
│ ├── Lab 1 Ex.1 Solved
│ ├── Lab 2 Ex. 2 Practice Question Solution
│ ├── Lab 10 Ex.1 Solved
│ ├── Lab 12 Ex.2 Practice Question Solution
│ ├── Lab 11 Ex.1 Solved
│ ├── Lab 2 Ex. 1 Solved
│ ├── Lab 3 Ex. 1 Solved
│ ├── Lab 17 Ex.2 Practice Question Solution
│ ├── Lab 18 Ex.2 Practice Question Solution
│ ├── Lab 14 Ex.1 Solved
│ ├── Lab 11 Ex.2 Practice Question Solution
│ ├── Lab 17 Ex.1 Solved
│ └── Lab 5 Ex. 1 Solved
├── Module 4
│ ├── demo
│ └── Lab1.pdf
├── Module 5
│ ├── demo
│ ├── Lab 1.pdf
│ ├── Lab 2.pdf
│ └── Lab 3.pdf
├── Module 6
│ ├── demo
│ ├── Lab 1.pdf
│ ├── Lab 2.pdf
│ └── Lab 3.pdf
├── Module 7
│ └── demo
└── Module 3
│ ├── Lab 20 Ex.2 Practice Question
│ ├── Lab 23 Ex.2 Practice Question
│ ├── Lab 19 Ex.2 Practice Question
│ ├── Lab 21 Ex.2 Practice Question
│ ├── Lab 24 Ex2 Practice Question
│ ├── Lab 25 Ex.2 Practice Question
│ ├── Lab 22 Ex.2 Practice Question
│ ├── Lab 19 Ex.1 Solved
│ ├── Lab 20 Ex1 Solved
│ ├── Lab 21 Ex.1 Solved
│ ├── Lab 19 Ex.2 Practice Question Solution
│ ├── Lab 20 Ex.2 Practice Question Solution
│ ├── Lab 21 Ex.2 Practice Question Solution
│ ├── Lab 22 Ex.1 Solved
│ ├── Lab 22 Ex.2 Practice Question Solution
│ ├── Lab 25 Ex.1 Solved
│ ├── Lab 24 Ex.2 Practice Question Solution
│ ├── Lab 24 Ex.1 Solved
│ └── Lab 25 Ex.2 Practice Question Solution
└── Building Advanced Data Analytics
├── Module 1
├── demo
├── Lab 2 Ex.2 Practice Question
├── Lab 1 Ex. 2 Practice Questions
├── Lab 3 Ex.2 Practice Question
├── Lab 12 Ex.2 Practice Question
├── Lab 13 Ex.2 Practice Question
├── Lab 14 Ex.2 Practice Question
├── Lab 10 Ex.2 Practice Question
├── Lab 15 Ex.2 Practice Question
├── Lab 6 Ex.2 Practice Question
├── Lab 5 Ex.2 Practice Question
├── Lab 7 Ex.2 Practice Question
├── Lab 11 Ex.2 Practice Question
├── Lab 12 Ex.2 Practice Question Solution
├── Lab 1 Ex.1 Solved
├── Lab 8 Ex.2 Practice Question
├── Lab 12 Ex.1 Solved
├── Lab 13 Ex.2 Practice Question Solution
├── Lab 7 Ex.2 Practice Question Solution
├── Lab 1 Ex. 2 Practice Question Solution
├── Lab 9 Ex.2 Practice Question
├── Lab 14 Ex.1 Solved
├── Lab 10 Ex.2 Practice Question Solution
├── Lab 11 Ex.2 Practice Question Solution
├── Lab 4 Ex.2 Practice Question
├── Lab 8 Ex.2 Practice Question Solution
├── Lab 13 Ex.1 Solved
├── Lab 15 Ex.1 Solved
├── Lab 5 Ex.2 Practice Question Solution
├── Lab 6 Ex.2 Practice Question Solution
├── Lab 9 Ex.1 Solved
├── Lab 2 Ex. 1 Solved
├── Lab 5 Ex.1 Solved
├── Lab 3 Ex.2 Practice Question Solution
├── Lab 4 Ex.2 Practice Question Solution
├── Lab 6 Ex.1 Solved
├── Lab 2 Ex.2 Practice Question Solution
├── Lab 4 Ex.1 Solved
├── Lab 10 Ex.1 Solved
├── Lab 14 Ex.2 Practice Question Solution
├── Lab 11 Ex.1 Solved
├── Lab 9 Ex.2 Practice Question Solution
├── Lab 7 Ex.1 Solved
├── Lab 8 Ex.1 Solved
├── Lab 15 Ex.2 Practice Question Solution
└── Lab 3 Ex.1 Solved
├── Module 2
├── demo
├── Lab 2 Ex.2 Practice Question
├── Lab 10 Ex.2 Practice Question.ipynb
├── Lab 7 Ex.2 Practice Question
├── Lab 3 Ex.2 Practice Question
├── Lab 5 Ex.2 Practice Question
├── Lab 4 Ex.2 Practice Question
├── Lab 8 Ex.2 Practice Question
├── Lab 1 Practice Question
├── Lab 6 Ex. Practice Question
├── Lab 9 Ex.2 Practice Question
├── Lab 7 Ex.2 Practice Question Solution
├── Lab 3 Ex.3 Practice Question Solution
├── Lab 1 Practice Question Solution
├── Lab 3 Ex.1 Solved
├── Lab 8 Ex.2 Practice Question Solution
├── Lab 7 Ex.1 Solved
├── Lab 8 Ex.1 Solved
├── Lab 5 Ex.2 Practice Question Solution
├── Lab 4 Ex.2 Practice Question Solution
├── Lab 6 Ex.1 Solved
├── Lab 1 Ex.1 Solved
├── Lab 4 Ex.1 Solved
├── Lab 5 Ex.1 Solved
├── Lab 6 Ex.2 Practice Question Solution
├── Lab 2 Ex.2 Practice Question Solution
├── Lab 2 Ex.1 Solved
└── Lab 9 Ex.2 Practice Question Solution
├── Module 3
├── demo
├── Lab 5 Ex.2 Practice Question
├── Lab 7 Ex.2 Practice Question
├── Lab 6 Ex.2 Practice Question
├── Lab 3 Ex.2 Practice Question
├── Lab 8 Ex.2 Practice Question
├── Lab 10 Ex. 2 Practice Question
├── Lab 4 Ex.2 Practice Question
├── Lab 2 Ex.2 Practice Question
├── Lab 9 Ex.2 Practice Question
├── Lab 1 Ex.2 Practice Question
├── Lab 7 Ex.1 Solved
├── Lab 3 Ex.1 Solved
├── Lab 10 Ex.1 Solved
├── Lab 6 Ex.1 Solved
├── Lab 2 Ex.1 Solved
├── Lab 4 Ex.1 Solved
├── Lab 9 Ex.1 Solved
├── Lab 5 Ex.1 Solved
├── Lab 1 Ex.1 Solved
├── Lab 10 Ex.2 Practice Question Solution
├── Lab 8 Ex.1 Solved
├── Lab 9 Ex.2 Practice Question Solution
├── Lab 6 Ex.2 Practice Question Solution
├── Lab 5 Ex.2 Practice Question Solution
├── Lab 2 Ex.2 Practice Question Solution
├── Lab 3 Ex.2 Practice Question Solution
├── Lab 8 Ex.2 Practice Question Solution
├── Lab 4 Ex.2 Practice Question Solution
├── Lab 1 Ex.2 Practice Question Solution
└── Lab 7 Ex.2 Practice Question Solution
├── Module 4
├── demo
├── Lab 1.pdf
├── Lab 2.pdf
├── Lab 3.pdf
└── Lab 4.pdf
└── Module 5
└── demo
/TNSDC/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/TNSDC/PhP/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 4/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 5/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 4/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 5/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 6/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 7/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/src/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/demo:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 20 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | To print the Fibonacci series for the given length
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 23 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | To create a library management system using Django
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 2 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Indexing and slicing with NumPy arrays in Python:
2 |
3 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/ Lab 19 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Python program to determine the grade based on the percentage score
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 21 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Program that implements a grading system using a function in Python
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 18a Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | To create a simple webpage to display the details of a session on React
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 2 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Python program that demonstrates data types, along with some basic operations:
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 24 Ex2 Practice Question:
--------------------------------------------------------------------------------
1 | Create a database in MySQL and create a book table and perform CURD operations
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 25 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | To create a library management system using Python and MySQL and perform CURD operations
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 1 Ex. 2 Practice Questions:
--------------------------------------------------------------------------------
1 | Python program that demonstrates the use of variables to perform basic arithmetic calculations:
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 10 Ex.2 Practice Question.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [],
3 | "metadata": {},
4 | "nbformat": 4,
5 | "nbformat_minor": 5
6 | }
7 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 4/Lab 1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Building Advanced Data Analytics/Module 4/Lab 1.pdf
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 4/Lab 2.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Building Advanced Data Analytics/Module 4/Lab 2.pdf
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 4/Lab 3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Building Advanced Data Analytics/Module 4/Lab 3.pdf
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 4/Lab 4.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Building Advanced Data Analytics/Module 4/Lab 4.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 4/Lab1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 4/Lab1.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 5/Lab 1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 5/Lab 1.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 5/Lab 2.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 5/Lab 2.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 5/Lab 3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 5/Lab 3.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 6/Lab 1.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 6/Lab 1.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 6/Lab 2.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 6/Lab 2.pdf
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 6/Lab 3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 6/Lab 3.pdf
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 3 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Python program that focuses on using operators, specifically the arithmetic and assignment operators:
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 7 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | You have the exam scores of a class. Create a box plot to visualize the distribution of exam scores.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 12 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that takes a sentence as input and capitalizes the first letter of each word in the sentence.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 13 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that takes a list of elements as input and creates a new list with all the duplicates removed.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 3 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Create a program that calculates the standard deviation and variance of a given array of numbers using NumPy functions.
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/logo.png
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-1.jpg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-2.jpg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-3.jpg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-4.jpg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/UI-face-5.jpg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/header-img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/header-img.png
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 14 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Create a program that performs multiple tasks involving different types of exceptions. Implement appropriate error handling for each task.
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 8 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Develop a webpage and need to incorporate user interactions using console messages and dialog boxes which include console and dialog boxes
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-179941.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-179941.jpeg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-1904769.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-1904769.jpeg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-452738.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-452738.jpeg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-636243.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-636243.jpeg
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-900102.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/pexels-photo-900102.jpeg
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 10 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that takes a list of numbers as input and uses a lambda function to calculate the square of each number. Display the list of squared numbers.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 15 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Design a Product class with attributes for name, price, and description. Implement a program that allows users to add products to a catalog and display the catalog.
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/assest/caique-silva-320647-unsplash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/edunetnextgen/Student-Development/HEAD/Full Stack Development with Cloud/Module 2/Unit 5/assest/caique-silva-320647-unsplash.jpg
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 5 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Visualize using Pie chart
3 | Problem Statement:
4 | Import Sample super store data set into Power BI. Find how much sales happened in each Segment using Pie chart.
5 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 5 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Given the monthly sales data for a store, create a Pandas Series representing the sales and calculate the total sales, average sales, and the number of months with sales above the average.
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 15 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Design a web page that uses Bootstrap to create a basic web page with a form and styling. Integrate Bootstrap into your HTML page by including the necessary CSS and JavaScript files.
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 22 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Program to demonstrate the Rectangle class has a constructor to set the width and height attributes. It also should contain methods to calculate the area and perimeter of the rectangle.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 4 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | You have the exam scores of a class. Create a Pandas Series to represent the scores and perform operations to find the minimum, maximum, average, and count of scores above a certain threshold.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 8 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Age Distribution of Survey Respondents
2 |
3 | You conducted a survey and collected the ages of respondents. Create a histogram to visualize the age distribution using customized bin sizes.
4 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 7 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Visualize Profit Analysis using a Dashboard
3 | Problem Statement:
4 | Import Sample super store data set into Power BI. Find Comprehensive Profit Analysis using a Dashboard.
5 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 6 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Visualize the data using Water Fall chart
3 | Problem Statement:
4 | Import Sample super store data set into Power BI. Find how much sales happened in month wise using water fall chart.
5 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 6 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that asks the user for a positive integer. Use a for loop to calculate and display the sum of its digits. For example, if the input is 12345, the sum should be 1 + 2 + 3 + 4 + 5 = 15
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 1 Practice Question:
--------------------------------------------------------------------------------
1 | Ex.1 - Write a Python program to create a NumPy array with 8 evenly spaced values between 0 and 2..
2 |
3 |
4 | Ex.2 - Create a Python program to generate a diagonal matrix with diagonal values [5, 7, 9] using NumPy.
5 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 9 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Developing a simple calculator application to perform basic arithmetic operations. Create a JavaScript program that accomplishes the following tasks:
2 | Define four functions: add, subtract, multiply, and divide.
3 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 5 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Create a Python program that generates a random number between 1 and 100. The user should repeatedly guess the number. Use a while loop to provide hints (higher or lower) and continue until the user guesses the correct number.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 7 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that asks the user for a range of numbers (start and end). Use a loop to iterate through the numbers in the range. Print all odd numbers within the range, skipping even numbers using the continue keyword.
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 18 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Create a webpage for a restaurant that offers an online reservation system. Create a form that allows users to select a reservation date and time. Implement a date and time picker using Bootstrap's Datepicker and Timepicker
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 6 Ex. Practice Question:
--------------------------------------------------------------------------------
1 | You have the closing stock prices of a company for a month. Create a plot to visualize the variation in stock prices over the month. Customize the plot with different colors, markers, and line styles for opening and closing prices
2 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 14 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | JavaScript to dynamically create a new list item (
) element and add it to an existing unordered list (
) when a button is clicked. Provide a step-by-step explanation and include a code snippet to demonstrate the process.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 3 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Working with columns of the data set
2 | Objective:
3 | Combine multiple columns if necessary
4 | Problem Statement:
5 | Import the Sample Super Store data into Power BI. In PQE verify all the columns and combine the columns if needed.
6 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 7 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Imagine you are designing a website for a fashion brand. Describe how you would apply the following CSS3 properties and concepts to enhance the design and user experience of the website
2 |
3 | Border
4 | Backgrounds
5 | Transition
6 | Transforms
7 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 11 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that allows a teacher to input the names and grades of students. Store this information in a dictionary where the student names are keys and the grades are values. After inputting the data, display the student names and their corresponding grades.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 8 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Design a Data Model for the Data sets given
3 | Problem Statement:
4 | Import Products CSV Data set, Sales CSV Data set and Stores CSV Data sets of the business into Power BI. Understand the Data sets and develop a model to relate these three Data sets.
5 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 2 Practice Question:
--------------------------------------------------------------------------------
1 | Create a PHP program to print the following pattern using nested loops:
2 |
3 | *
4 | **
5 | ***
6 | ****
7 | *****
8 |
9 | The number of rows in the pattern should be determined by user input. The program should take an integer as input and print the pattern with the specified number of rows.
10 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 12 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Get input from the user
2 | input_sentence = input("Enter a sentence: ")
3 |
4 | # Capitalize the first letter of each word
5 | capitalized_sentence = input_sentence.title()
6 |
7 | # Print the capitalized sentence
8 | print("Capitalized sentence:", capitalized_sentence)
9 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 9 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 |
2 | Given a dataset containing information about students' exam scores, demographics, and study hours, perform EDA by calculating summary statistics (mean, median, standard deviation) for the scores and study hours. Visualize the distribution of scores and study hours using histograms.
3 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 17 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Design a webpage that utilizes Bootstrap's navigation bar and button components. Customize the navigation bar's background color, text color, and adjust the spacing between the navigation links. Apply CSS properties to style the button with a gradient background and rounded corners.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 10 Ex. 2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Find Month numbers from date data type column.
3 | Problem Statement:
4 | In Sample Super Store Data set “Order Date” date data type column is there. To extract Month part from the dates Month DAX function is used. To achieve this a new column will be created.
5 | Solution:
6 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 4 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Subtract two columns in PQE.
3 | Problem Statement:
4 | Import Employee data set into Power BI. In PQE, create a new column called deductions. Fill the column with values taken from first three values of salary. Now subtract total salary and deductions to calculate net salary.
5 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 19 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Python program to read a number and check whether it is positive, negative, or zero
2 | Program
3 | num = int(input("Enter a number: "))
4 | if num > 0:
5 | print("The number is positive.")
6 | elif num < 0:
7 | print("The number is negative.")
8 | else:
9 | print("The number is zero.")
10 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 2 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Question4: Working with Data Types of the columns
2 | Objective:
3 | Change the Data type of the columns which are not opt
4 | Problem Statement:
5 | Import the Sample Super Store data into Power BI. In PQE verify all the column data types and change the data type of the column which is not correctly kept.
6 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 9 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Objective:
2 | Find Arithmetic Mean or Average of all the numbers in a Numerical column.
3 | Problem Statement:
4 | In Sample Super Store Data set Sales numerical column is there. To calculate Average sales in the data set AVERAGE DAX function is used. To display this Average value Card Visual will be used.
5 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 4 Ex. 2 Practice Questions:
--------------------------------------------------------------------------------
1 | An HTML document that includes a list of products. Your task is to style the list items differently based on their categories. Use appropriate CSS selectors to apply styling to the different categories:
2 | Apply a background color to all list items.
3 | Apply a border to list items with the class.
4 |
5 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 1 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Python program that demonstrates the use of variables:
2 |
3 | # Assign a value to a variable
4 | message = "Hello, World!"
5 |
6 | # Print the value of the variable
7 | print(message)
8 |
9 | # Update the variable's value
10 | message = "Python is amazing!"
11 |
12 | # Print the updated value
13 | print(message)
14 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 1 Ex. 2 Practice Questions:
--------------------------------------------------------------------------------
1 | Practice Question
2 | Ex. 2: Design a simple HTML structure to display two customer testimonials side by side. Each testimonial should include the customer's name, photo, and a short comment about their experience. Utilize appropriate HTML elements to create the structure and content for the testimonial section.
3 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 20 Ex1 Solved:
--------------------------------------------------------------------------------
1 | Program to find the sum of all even numbers between 1 and a given number
2 | Program
3 | number = int(input("Enter a number: "))
4 | sum_even = 0
5 |
6 | for i in range(1, number + 1):
7 | if i % 2 == 0:
8 | sum_even += i
9 |
10 | print(f"The sum of even numbers between 1 and {number} is {sum_even}.")
11 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 3 Ex. 2 Practice Question:
--------------------------------------------------------------------------------
1 | Ex. 2: Create a webpage for an upcoming music festival. The webpage needs to display information about the event, including the lineup,
2 | schedule, ticket prices, and a contact form for inquiries. Design the HTML structure for the music festival webpage, incorporating appropriate semantic elements,
3 | headings, lists, and forms.
4 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 10 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Develop a web page which include:
2 | Program to check the user is a senior citizen by age and display a message accordingly.
3 | Using iterate for and while statement to display numbers from 1 to 5 and calculate their sum
4 | An example of how you could use it to determine the day of the week based on a user-provided number (1-7)
5 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 3 Practice Question:
--------------------------------------------------------------------------------
1 | Design a PHP program to model a BankAccount class. The class should have attributes such as accountNumber, accountHolder, and balance. Implement methods for depositing and withdrawing money, and ensure that the balance is updated accordingly. Create instances of the BankAccount class, perform deposit and withdrawal operations, and display the updated balance for each account.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 8 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Write a Python program that prompts the user to enter a positive integer. Implement a loop that determines whether the entered number is a prime number or not. To do this, check if the number is divisible by any integer from 2 to the square root of the number. If the number is found to be divisible by any of these integers, it is not a prime number.
2 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 1 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Question2: Importing Text/CSV data source
2 |
3 | Objective: Importing Text / CSV Data Source file into Power BI
4 |
5 | Problem Statement:Prepare a Text / CSV data source in your local drive or save any Text / CSV file in your local drive. Now this data source can be imported into Power BI.
6 |
7 | Solution:
8 | Please take this as Practice Work.
9 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 12 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Write a Python program that takes a string as input and prints the reverse of that string.
2 | ------------------------
3 |
4 | # Get input from the user
5 | input_string = input("Enter a string: ")
6 |
7 | # Reverse the string
8 | reversed_string = input_string[::-1]
9 |
10 | # Print the reversed string
11 | print("Reversed string:", reversed_string)
12 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 13 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Get input from the user (list of elements separated by spaces)
2 | input_elements = input("Enter a list of elements separated by spaces: ").split()
3 |
4 | # Create a new list with duplicates removed
5 | unique_elements = list(set(input_elements))
6 |
7 | # Print the list with duplicates removed
8 | print("List with duplicates removed:", unique_elements)
9 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 7 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Getting user input for the range
2 | start = int(input("Enter the start of the range: "))
3 | end = int(input("Enter the end of the range: "))
4 |
5 | # Loop to iterate through the range
6 | print("Odd numbers within the range:")
7 | for num in range(start, end + 1):
8 | if num % 2 == 0: # Skip even numbers
9 | continue
10 | print(num, end=" ")
11 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 7 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import matplotlib.pyplot as plt
2 | import numpy as np
3 |
4 | # Exam scores data
5 | scores = np.array([85, 92, 78, 60, 95, 88, 72, 65, 90, 82, 75, 80])
6 |
7 | # Create a box plot
8 | plt.boxplot(scores)
9 |
10 | # Add labels and title
11 | plt.xlabel('Exam Scores')
12 | plt.ylabel('Score')
13 | plt.title('Exam Score Distribution')
14 |
15 | # Show the plot
16 | plt.show()
17 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 5 Ex. 2 Practice Question:
--------------------------------------------------------------------------------
1 | An HTML document containing a navigation menu. Task is to style the navigation menu using CSS properties to achieve the following:
2 |
3 | Set the background color of the navigation menu
4 | Display the menu items as horizontal inline elements.
5 | Apply a padding to the menu items.
6 | Change the text color of the menu items
7 | Add a bottom border to the currently active menu item.
8 |
9 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 1 Ex. 2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | num1 = 10
2 | num2 = 5
3 |
4 | # Perform arithmetic operations using variables
5 | sum_result = num1 + num2
6 | difference_result = num1 - num2
7 | product_result = num1 * num2
8 | division_result = num1 / num2
9 |
10 | # Print the results
11 | print("Sum:", sum_result)
12 | print("Difference:", difference_result)
13 | print("Product:", product_result)
14 | print("Division:", division_result)
15 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 2 Ex. 2 Practice Question:
--------------------------------------------------------------------------------
1 | Ex. 2: Design a basic HTML page layout for a blog post. Create a structure that includes the following elements:
2 | A header section with the blog post title.
3 | A navigation bar with links for "Home," "About," "Blog," and "Contact."
4 | A main content area with the blog post content, including a title, author's name, publication date, and text.
5 | A sidebar on the right side with a list of recent posts.
6 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 3 Ex.3 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import numpy as np
2 |
3 | # Given array of numbers
4 | data_array = np.array([10, 15, 20, 25, 30])
5 |
6 | # Calculate the standard deviation and variance using NumPy functions
7 | std_deviation = np.std(data_array)
8 | variance = np.var(data_array)
9 |
10 | # Display the results
11 | print("Data Array:", data_array)
12 | print("Standard Deviation:", std_deviation)
13 | print("Variance:", variance)
14 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 21 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | To find the average of 3 numbers using function
2 | Program
3 | def calculate_average(num1, num2, num3):
4 | return (num1 + num2 + num3) / 3
5 |
6 | num1 = float(input("Enter the first number: "))
7 | num2 = float(input("Enter the second number: "))
8 | num3 = float(input("Enter the third number: "))
9 |
10 | average = calculate_average(num1, num2, num3)
11 | print(f"The average of {num1}, {num2}, and {num3} is {average:.2f}.")
12 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 1 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Ex.1 Solution
2 |
3 | import numpy as np
4 |
5 | # Create an array with 8 evenly spaced values between 0 and 2
6 | evenly_spaced_array = np.linspace(0, 2, 8)
7 |
8 | print(evenly_spaced_array)
9 |
10 |
11 | Ex.2 Solution
12 |
13 | import numpy as np
14 |
15 | # Create a diagonal matrix with diagonal values [5, 7, 9]
16 | diagonal_values = [5, 7, 9]
17 | diagonal_matrix = np.diag(diagonal_values)
18 |
19 | print(diagonal_matrix)
20 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 1 Class:
--------------------------------------------------------------------------------
1 | Write a PHP program that takes an integer as input and determines whether it is an odd or even number. The program should then print a message indicating whether the input number is odd or even
2 |
3 |
14 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 9 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | You've been hired to develop a simple calculator program that performs basic arithmetic operations. Write a Python program that allows the user to choose an operation (addition, subtraction, multiplication, or division) and then prompts the user to enter two numbers. Implement separate functions for each operation and display the result of the chosen operation.
2 |
3 | Implement the program to provide a user-friendly experience and accurate calculation.
4 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 14 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Implement a program that takes an integer as input. Handle the ValueError by prompting the user until a valid integer is provided.
2 | ----------------------------------------------
3 |
4 | while True:
5 | try:
6 | num = int(input("Enter an integer: "))
7 | break # Exit the loop if a valid integer is provided
8 | except ValueError:
9 | print("Invalid input. Please enter a valid integer.")
10 |
11 | print("You entered:", num)
12 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 1 Practice Question:
--------------------------------------------------------------------------------
1 | Create a PHP program that calculates the grade classification based on a student's percentage score. The program should take the percentage as input and use the following criteria:
2 |
3 | If the percentage is greater than or equal to 90, the grade is 'A'.
4 | If the percentage is between 80 and 89, the grade is 'B'.
5 | If the percentage is between 70 and 79, the grade is 'C'.
6 | If the percentage is between 60 and 69, the grade is 'D'.
7 | If the percentage is below 60, the grade is 'F'.
8 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 19 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Get the percentage score from the user
2 | percentage = float(input("Enter the percentage score: "))
3 |
4 | # Determine the grade based on the percentage
5 | if percentage >= 90:
6 | grade = "A"
7 | elif percentage >= 80:
8 | grade = "B"
9 | elif percentage >= 70:
10 | grade = "C"
11 | elif percentage >= 60:
12 | grade = "D"
13 | else:
14 | grade = "F"
15 |
16 | # Display the grade
17 | print(f"Your grade is: {grade}")
18 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 2 Class:
--------------------------------------------------------------------------------
1 | Write a PHP program to calculate the factorial of a given positive integer n. The program should use a loop to perform the calculation and then output the result.
2 |
3 |
18 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 6 Ex. 2 Practice Question:
--------------------------------------------------------------------------------
1 | Creating a complex layout for a landing page. Implement the following advanced CSS properties to achieve the desired design:
2 | CSS Grid to create a responsive three-column layout for the main content area.
3 | Apply a background image to the header section, covering the entire width and height of the viewport.
4 | Use CSS transitions to create a smooth hover effect on links.
5 | Implement a gradient background color for a section of your choice.
6 | Add a drop shadow to an image in the main content area.
7 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 10 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Lambda function to calculate the square of a number
2 | square = lambda x: x ** 2
3 |
4 | # Getting user input for the list of numbers
5 | num_list = input("Enter a list of numbers separated by spaces: ").split()
6 |
7 | # Converting the input to a list of integers
8 | num_list = list(map(int, num_list))
9 |
10 | # Calculating the squares using the lambda function
11 | squared_list = list(map(square, num_list))
12 |
13 | # Displaying the list of squared numbers
14 | print("Squared numbers:", squared_list)
15 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 11 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Main program
2 | num_students = int(input("Enter the number of students: "))
3 | student_data = {}
4 |
5 | for i in range(num_students):
6 | name = input(f"Enter the name of student {i + 1}: ")
7 | grade = float(input(f"Enter the grade of student {i + 1}: "))
8 | student_data[name] = grade
9 | print()
10 |
11 | # Displaying student names and grades
12 | print("\nStudent Names and Grades:")
13 | for name, grade in student_data.items():
14 | print(f"Student Name: {name}, Grade: {grade}")
15 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 20 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | def fibonacci_series(length):
2 | fib_series = []
3 | a, b = 0, 1
4 | for _ in range(length):
5 | fib_series.append(a)
6 | a, b = b, a + b
7 | return fib_series
8 |
9 | # Get the length of the Fibonacci series from the user
10 | length = int(input("Enter the length of the Fibonacci series: "))
11 |
12 | # Call the function to generate the Fibonacci series
13 | result = fibonacci_series(length)
14 |
15 | # Display the Fibonacci series
16 | print("Fibonacci Series:")
17 | print(result)
18 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 1 Practice QuestionSolution:
--------------------------------------------------------------------------------
1 | = 90) {
7 | $grade = 'A';
8 | } elseif ($percentage >= 80 && $percentage < 90) {
9 | $grade = 'B';
10 | } elseif ($percentage >= 70 && $percentage < 80) {
11 | $grade = 'C';
12 | } elseif ($percentage >= 60 && $percentage < 70) {
13 | $grade = 'D';
14 | } else {
15 | $grade = 'F';
16 | }
17 |
18 | // Outputting the grade
19 | echo "The grade for $percentage% is: $grade\n";
20 | ?>
21 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 16 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Creating a responsive layout for a portfolio webpage using Bootstrap's containers and the grid system.
2 | Create an HTML page.
3 | Integrate Bootstrap into your HTML page by including the necessary CSS and JavaScript files from the provided Bootstrap
4 | Create a Bootstrap container to hold the main content.
5 | Divide the container into different columns using the Bootstrap grid system.
6 | Place an image inside each column.
7 | Apply custom CSS to style the images and text content. Use appropriate spacing, fonts, and colors to enhance the presentation.
8 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 3 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Write a Python program that generates a random array of 10 numbers and calculates the mean and median of the array using NumPy functions.
2 | -------------------------------------
3 |
4 | import numpy as np
5 |
6 | # Generate a random array of 10 numbers
7 | random_array = np.random.rand(10)
8 |
9 | # Calculate the mean and median using NumPy functions
10 | mean_value = np.mean(random_array)
11 | median_value = np.median(random_array)
12 |
13 | # Display the results
14 | print("Random Array:", random_array)
15 | print("Mean:", mean_value)
16 | print("Median:", median_value)
17 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 21 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | def calculate_grade(percentage):
2 | if percentage >= 90:
3 | return "A"
4 | elif percentage >= 80:
5 | return "B"
6 | elif percentage >= 70:
7 | return "C"
8 | elif percentage >= 60:
9 | return "D"
10 | else:
11 | return "F"
12 |
13 | # Get the percentage score from the user
14 | percentage = float(input("Enter the percentage score: "))
15 |
16 | # Call the function to calculate the grade
17 | grade = calculate_grade(percentage)
18 |
19 | # Display the grade
20 | print(f"Your grade is: {grade}")
21 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 22 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Program to demonstrate the Person class has a constructor (__init__) that initializes the name and age attributes. It also should contain an introduce method to introduce the person.
2 | Program
3 | class Person:
4 | def __init__(self, name, age):
5 | self.name = name
6 | self.age = age
7 |
8 | def introduce(self):
9 | return f"Hi, I'm {self.name} and I'm {self.age} years old."
10 |
11 | # Create instances of Person
12 | person1 = Person("Alice", 25)
13 | person2 = Person("Bob", 30)
14 |
15 | print(person1.introduce())
16 | print(person2.introduce())
17 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 4 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | During a science fair, a student showcased an innovative temperature measurement device. The device provides readings in both Celsius and Fahrenheit. Write a Python program that prompts the user to enter a temperature value along with its unit ("C" for Celsius or "F" for Fahrenheit). Depending on the unit provided, the program should convert the temperature to the opposite unit and display the converted temperature.
2 |
3 | For conversion:
4 |
5 | To convert from Celsius to Fahrenheit: Multiply by 9/5 and add 32.
6 | To convert from Fahrenheit to Celsius: Subtract 32 and then multiply by 5/9.
7 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 8 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import matplotlib.pyplot as plt
2 | import numpy as np
3 |
4 | # Age data of survey respondents
5 | ages = np.array([25, 32, 28, 45, 52, 38, 42, 30, 29, 35, 40, 48, 55, 50, 22, 27, 33, 41, 37, 31])
6 |
7 | # Custom bin edges for the histogram
8 | bin_edges = [20, 30, 40, 50, 60]
9 |
10 | # Create a histogram with custom binning
11 | plt.hist(ages, bins=bin_edges, edgecolor='black', alpha=0.7)
12 |
13 | # Add labels and title
14 | plt.xlabel('Age')
15 | plt.ylabel('Frequency')
16 | plt.title('Age Distribution of Survey Respondents')
17 |
18 | # Show the plot
19 | plt.show()
20 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 13 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Develop a webpage’s user experience using jQuery selectors. Design a basic HTML page with the following elements and objectives:
2 | Highlight Selection: Create an unordered list (
) with three list items (
) containing different animal names (e.g., "Lion," "Elephant," "Giraffe"). When a user clicks on an animal name, apply a highlight by changing the background color of the selected list item.
3 | Toggle Paragraph: Include a button element and a paragraph (
) below it. The paragraph should initially be hidden. When the button is clicked, toggle the visibility of the paragraph using jQuery.
4 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 8 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import math
2 |
3 | # Getting user input
4 | number = int(input("Enter a positive integer: "))
5 |
6 | # Validating input
7 | if number <= 0:
8 | print("Please enter a positive integer.")
9 | else:
10 | is_prime = True
11 |
12 | # Checking for prime using a loop
13 | for i in range(2, int(math.sqrt(number)) + 1):
14 | if number % i == 0:
15 | is_prime = False
16 | break
17 |
18 | # Displaying the result
19 | if is_prime:
20 | print(f"{number} is a prime number.")
21 | else:
22 | print(f"{number} is not a prime number.")
23 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 18a Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | React Session Details
7 |
8 |
9 |
10 |
React Session Details
11 |
Topic: Introduction to React
12 |
Date: August 25, 2023
13 |
Time: 2:00 PM - 4:00 PM
14 |
Speaker: John Doe
15 |
Location: Virtual Classroom
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 13 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Write a Python program that takes a list of integers as input and creates a new list with only the even numbers from the input list.
2 | -------------------------------------
3 |
4 | # Get input from the user (list of integers separated by spaces)
5 | input_numbers = input("Enter a list of integers separated by spaces: ").split()
6 |
7 | # Convert the input to a list of integers
8 | number_list = list(map(int, input_numbers))
9 |
10 | # Create a new list with only even numbers
11 | even_numbers = [num for num in number_list if num % 2 == 0]
12 |
13 | # Print the list of even numbers
14 | print("Even numbers:", even_numbers)
15 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 15 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | simple Python program that demonstrates Object-Oriented Programming (OOP) concepts by creating a basic class and instances:
2 | --------------------------------------------
3 |
4 | class Dog:
5 | def __init__(self, name, age):
6 | self.name = name
7 | self.age = age
8 |
9 | def bark(self):
10 | print(f"{self.name} is barking!")
11 |
12 | def info(self):
13 | print(f"{self.name} is {self.age} years old.")
14 |
15 | # Creating instances of the Dog class
16 | dog1 = Dog("Buddy", 3)
17 | dog2 = Dog("Charlie", 5)
18 |
19 | # Calling methods on the instances
20 | dog1.bark()
21 | dog2.info()
22 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 5 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import random
2 |
3 | # Generate a random number between 1 and 100
4 | target_number = random.randint(1, 100)
5 |
6 | # Initialize variables
7 | guess = 0
8 | attempts = 0
9 |
10 | # Main game loop
11 | while guess != target_number:
12 | guess = int(input("Guess a number between 1 and 100: "))
13 | attempts += 1
14 |
15 | if guess < target_number:
16 | print("Try a higher number.")
17 | elif guess > target_number:
18 | print("Try a lower number.")
19 | else:
20 | print(f"Congratulations! You've guessed the number {target_number} correctly in {attempts} attempts.")
21 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 6 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Getting user input
2 | num = int(input("Enter a positive integer: "))
3 |
4 | # Validating input
5 | if num < 0:
6 | print("Please enter a positive integer.")
7 | else:
8 | # Converting the number to a string to iterate over its digits
9 | num_str = str(num)
10 |
11 | # Initializing variable to store the sum of digits
12 | sum_of_digits = 0
13 |
14 | # Calculating the sum of digits using a for loop
15 | for digit in num_str:
16 | sum_of_digits += int(digit)
17 |
18 | # Displaying the sum of digits
19 | print(f"The sum of the digits of {num} is {sum_of_digits}")
20 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 9 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | simple Python program that demonstrates the use of functions:
2 |
3 | ----------------------------------------
4 |
5 | # Define a function to calculate the square of a number
6 | def calculate_square(number):
7 | square = number ** 2
8 | return square
9 |
10 | # Define a function to greet a person
11 | def greet(name):
12 | print(f"Hello, {name}!")
13 |
14 | # Main program
15 | if __name__ == "__main__":
16 | # Calling the functions
17 | num = float(input("Enter a number: "))
18 | result = calculate_square(num)
19 | print(f"The square of {num} is {result}")
20 |
21 | person_name = input("Enter your name: ")
22 | greet(person_name)
23 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 7 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Given the monthly expenses of a person on different categories (e.g., food, transportation, entertainment), create a bar chart to visualize the expenses.
2 |
3 | ------------------------------------
4 |
5 | import matplotlib.pyplot as plt
6 |
7 | # Categories of expenses
8 | categories = ['Food', 'Transportation', 'Entertainment', 'Utilities', 'Rent']
9 |
10 | # Monthly expenses for each category
11 | expenses = [500, 150, 100, 200, 800]
12 |
13 | # Create a bar chart
14 | plt.bar(categories, expenses, color='blue')
15 |
16 | # Add labels and title
17 | plt.xlabel('Expense Categories')
18 | plt.ylabel('Monthly Expenses ($)')
19 | plt.title('Monthly Expenses by Category')
20 |
21 | # Show the plot
22 | plt.show()
23 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 8 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | You have the test scores of a group of students. Create a histogram to visualize the distribution of test scores with custom binning.
2 | ---------------------------------------
3 |
4 | import matplotlib.pyplot as plt
5 | import numpy as np
6 |
7 | # Test scores data
8 | scores = np.array([75, 88, 92, 65, 78, 82, 60, 90, 85, 70, 95, 68, 73, 87, 79, 91, 83])
9 |
10 | # Custom bin edges for the histogram
11 | bin_edges = [60, 70, 80, 90, 100]
12 |
13 | # Create a histogram with custom binning
14 | plt.hist(scores, bins=bin_edges, edgecolor='black', alpha=0.7)
15 |
16 | # Add labels and title
17 | plt.xlabel('Test Scores')
18 | plt.ylabel('Frequency')
19 | plt.title('Test Score Distribution')
20 |
21 | # Show the plot
22 | plt.show()
23 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 18a. Ex.1 solved:
--------------------------------------------------------------------------------
1 | To create simple webpage to display a message
2 |
3 | Set up the environment for react app development
4 |
5 | Step1: install nodejs from https://nodejs.org/en/
6 |
7 | Step 2: Install VSCode or any other editor (https://code.visualstudio.com/download
8 |
9 | Step 3: Create a new folder
10 | Step 4: open command prompt and execute following command
11 | npx create-react-app my-app
12 |
13 | Then change the current directory using the following commad
14 | cd my-app
15 | To open the code in VScode use the following command:
16 | code .
17 | Include the following code in App.js
18 |
19 | Include the following code in App.css
20 |
21 | Then enter the following command in the command prompt to view the website
22 | npm start
23 |
24 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Python OOPs 1:
--------------------------------------------------------------------------------
1 | Create a Python program that defines a Book class with a constructor (__init__) to initialize the title, author, and publication year attributes. The class should also include a display_info method to print detailed information about the book.
2 |
3 | class Book:
4 | def __init__(self, title, author, publication_year):
5 | self.title = title
6 | self.author = author
7 | self.publication_year = publication_year
8 |
9 | def display_info(self):
10 | print("Book Information:")
11 | print(f"Title: \"{self.title}\"")
12 | print(f"Author: {self.author}")
13 | print(f"Publication Year: {self.publication_year}")
14 |
15 | book1 = Book("The Catcher in the Rye", "J.D. Salinger", 1951)
16 | book1.display_info()
17 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 2 Ex. 1 Solved:
--------------------------------------------------------------------------------
1 | Simple Python program that demonstrates different data types:
2 |
3 | # Integer
4 | my_integer = 42
5 | print("Integer:", my_integer)
6 |
7 | # Floating-point number
8 | my_float = 3.14
9 | print("Float:", my_float)
10 |
11 | # String
12 | my_string = "Hello, Python!"
13 | print("String:", my_string)
14 |
15 | # Boolean
16 | my_boolean = True
17 | print("Boolean:", my_boolean)
18 |
19 | # List (a collection of values)
20 | my_list = [1, 2, 3, 4, 5]
21 | print("List:", my_list)
22 |
23 | # Tuple (an immutable collection of values)
24 | my_tuple = (10, 20, 30)
25 | print("Tuple:", my_tuple)
26 |
27 | # Dictionary (a collection of key-value pairs)
28 | my_dict = {"name": "Alice", "age": 30, "city": "Wonderland"}
29 | print("Dictionary:", my_dict)
30 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/JS:
--------------------------------------------------------------------------------
1 | Write JavaScript Functions to perform the following:
2 | To calculate the factorial of a given positive integer. The factorial of a number is the product of all positive integers up to that number.
3 | To generate the multiplication table (up to 10) for a given number.
4 |
5 | function calculateFactorial(n) {
6 | if (n === 0 || n === 1) {
7 | return 1;
8 | } else {
9 | return n * calculateFactorial(n - 1);
10 | }
11 | }
12 |
13 | // Example usage:
14 | const result = calculateFactorial(5);
15 | console.log(result); // Output: 120
16 |
17 | function generateMultiplicationTable(num) {
18 | for (let i = 1; i <= 10; i++) {
19 | console.log(`${num} x ${i} = ${num * i}`);
20 | }
21 | }
22 |
23 | // Example usage:
24 | generateMultiplicationTable(5);
25 |
26 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 5 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Write a Python program that prompts the user to enter a positive integer. Use a while loop to calculate and display the factorial of that integer.
2 |
3 | The factorial of a number n is the product of all positive integers from 1 to n.
4 |
5 | ---------------------------------------------
6 |
7 | # Getting user input
8 | n = int(input("Enter a positive integer: "))
9 |
10 | # Validating input
11 | if n < 0:
12 | print("Factorial is not defined for negative numbers.")
13 | else:
14 | # Initializing variables
15 | factorial = 1
16 | i = 1
17 |
18 | # Calculating factorial using a while loop
19 | while i <= n:
20 | factorial *= i
21 | i += 1
22 |
23 | # Displaying the factorial
24 | print(f"The factorial of {n} is {factorial}")
25 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 5 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 |
3 | # Given monthly sales data for a store
4 | sales_data = [5000, 6000, 7500, 4000, 8000, 9000, 6500, 7000, 5500, 8500]
5 |
6 | # Create a Pandas Series from the sales data
7 | sales_series = pd.Series(sales_data)
8 |
9 | # Calculate the total and average sales
10 | total_sales = sales_series.sum()
11 | average_sales = sales_series.mean()
12 |
13 | # Calculate the number of months with sales above the average
14 | above_average_count = sales_series[sales_series > average_sales].count()
15 |
16 | # Display the results
17 | print("Monthly Sales Data:")
18 | print(sales_series)
19 | print("Total Sales:", total_sales)
20 | print("Average Sales:", average_sales)
21 | print("Number of Months with Sales Above Average:", above_average_count)
22 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 3 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Getting user input
2 | num1 = float(input("Enter the first number: "))
3 | num2 = float(input("Enter the second number: "))
4 |
5 | # Arithmetic operators
6 | addition = num1 + num2
7 | subtraction = num1 - num2
8 | multiplication = num1 * num2
9 | division = num1 / num2
10 |
11 | # Displaying results
12 | print("\nArithmetic Operations:")
13 | print(f"{num1} + {num2} = {addition}")
14 | print(f"{num1} - {num2} = {subtraction}")
15 | print(f"{num1} * {num2} = {multiplication}")
16 | print(f"{num1} / {num2} = {division}")
17 |
18 | # Assignment operators
19 | result = 0
20 | result += addition
21 | result -= subtraction
22 | result *= multiplication
23 | result /= division
24 |
25 | # Displaying final result
26 | print("\nFinal Result using Assignment Operators:", result)
27 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 22 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | class Rectangle:
2 | def __init__(self, width, height):
3 | self.width = width
4 | self.height = height
5 |
6 | def calculate_area(self):
7 | return self.width * self.height
8 |
9 | def calculate_perimeter(self):
10 | return 2 * (self.width + self.height)
11 |
12 | # Create an instance of the Rectangle class
13 | width = float(input("Enter the width of the rectangle: "))
14 | height = float(input("Enter the height of the rectangle: "))
15 | rectangle = Rectangle(width, height)
16 |
17 | # Calculate and display the area and perimeter of the rectangle
18 | area = rectangle.calculate_area()
19 | perimeter = rectangle.calculate_perimeter()
20 |
21 | print(f"Rectangle Area: {area}")
22 | print(f"Rectangle Perimeter: {perimeter}")
23 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 7 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Objective:
2 | Visualize Sales Analysis using a Dashboard
3 | Problem Statement:
4 | Import Sample super store data set into Power BI. Find Comprehensive Sales Analysis using a Dashboard.
5 | Solution:
6 | 1. Import Sample Super Store Data into Power BI Desktop as shown in Task1.
7 | 2. Clean and Transform the data in Power Query editor. Load the data back to Power BI Desktop.
8 | 3. Understand the Data or Understand the business
9 | 4. Categorize all the columns into three buckets (Categorical Columns, Numerical Columns, Date Columns).
10 | 5. Prepare a Problem statements in view of comprehensive Sales Analysis. ( Ex: Regions Wise Sales, Time Series Sales, Sales by Category and Sub category etc.)
11 | 6. Place all the Reports in one or two report page(s) and add a Slicer to from a Dashboard. Now the Dashboard will be as follows.
12 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 9 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | // Define the add function
2 | function add(a, b) {
3 | return a + b;
4 | }
5 |
6 | // Define the subtract function
7 | function subtract(a, b) {
8 | return a - b;
9 | }
10 |
11 | // Define the multiply function
12 | function multiply(a, b) {
13 | return a * b;
14 | }
15 |
16 | // Define the divide function
17 | function divide(a, b) {
18 | if (b !== 0) {
19 | return a / b;
20 | } else {
21 | return "Cannot divide by zero";
22 | }
23 | }
24 |
25 | // Example usage
26 | console.log("Addition:", add(5, 3)); // Output: 8
27 | console.log("Subtraction:", subtract(10, 4)); // Output: 6
28 | console.log("Multiplication:", multiply(2, 7)); // Output: 14
29 | console.log("Division:", divide(20, 5)); // Output: 4
30 | console.log("Division:", divide(10, 0)); // Output: Cannot divide by zero
31 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Python Loops:
--------------------------------------------------------------------------------
1 | Write a Python program to generate prime numbers within a specified range. Prompt the user to enter two integers as the lower and upper limits of the range (inclusive). Implement a function that identifies and prints all prime numbers within this range.
2 |
3 | def is_prime(num):
4 | if num < 2:
5 | return False
6 | for i in range(2, int(num**0.5) + 1):
7 | if num % i == 0:
8 | return False
9 | return True
10 |
11 | lower_limit = int(input("Enter the lower limit: "))
12 | upper_limit = int(input("Enter the upper limit: "))
13 |
14 | if lower_limit >= upper_limit:
15 | print("Invalid input. Ensure the lower limit is less than the upper limit.")
16 | else:
17 | primes = [num for num in range(lower_limit, upper_limit + 1) if is_prime(num)]
18 | print(f"Prime numbers between {lower_limit} and {upper_limit}: {primes}")
19 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 3 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Question5: Working with Columns of the data set
2 |
3 | Objective: Combine Multiple Columns into Single column to save memory usage.
4 |
5 | Problem Statement: Import the Employee Data into Power BI. In PQE, there are columns like First Name, Middle Name and Last Name. Combine all three columns into Single column with name Full Name.
6 |
7 | Solution:
8 | 1. Load the Employee Data set into Power Query editor as shown in Task2.
9 | 2. Select all the column names (First Name, Middle Name, Last Name) which you need to combine.
10 | 3. Right click on any of these selected column names select Merge Columns.
11 | 4. A Merge Columns window will be opened. Select Separator value as “Space” as follows.
12 | Change the New Column name to “Full Name” as follows.
13 | 6. Click on “OK” button to see the newly created Full Name column as follows.
14 |
15 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 4 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Getting user input
2 | temperature_input = input("Enter the temperature value along with its unit (C or F): ")
3 | temperature_unit = temperature_input[-1] # Extract the last character
4 |
5 | # Extracting the temperature value as a float
6 | temperature_value = float(temperature_input[:-1])
7 |
8 | # Temperature conversion
9 | if temperature_unit == "C":
10 | converted_temperature = (temperature_value * 9/5) + 32
11 | converted_unit = "Fahrenheit"
12 | elif temperature_unit == "F":
13 | converted_temperature = (temperature_value - 32) * 5/9
14 | converted_unit = "Celsius"
15 | else:
16 | print("Invalid unit. Please enter 'C' for Celsius or 'F' for Fahrenheit.")
17 | exit()
18 |
19 | # Displaying the converted temperature
20 | print(f"The converted temperature is {converted_temperature:.2f} {converted_unit}.")
21 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 4 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 |
3 | # Given exam scores of a class
4 | scores = [85, 92, 78, 60, 95, 88, 72, 65, 90, 82]
5 |
6 | # Create a Pandas Series from the exam scores
7 | scores_series = pd.Series(scores)
8 |
9 | # Find the minimum, maximum, and average scores
10 | min_score = scores_series.min()
11 | max_score = scores_series.max()
12 | avg_score = scores_series.mean()
13 |
14 | # Set a threshold for scores
15 | threshold = 80
16 |
17 | # Count the number of scores above the threshold
18 | above_threshold_count = scores_series[scores_series > threshold].count()
19 |
20 | # Display the results
21 | print("Exam Scores:")
22 | print(scores_series)
23 | print("Minimum Score:", min_score)
24 | print("Maximum Score:", max_score)
25 | print("Average Score:", avg_score)
26 | print("Number of Scores Above Threshold:", above_threshold_count)
27 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 6 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Write a Python program that asks the user for a positive integer n. Use a for loop to generate and print the first n numbers in the Fibonacci sequence.
2 | The Fibonacci sequence starts with 0 and 1, and each subsequent number is the sum of the two preceding ones
3 |
4 | ----------------------------------------------------------------
5 |
6 | # Getting user input
7 | n = int(input("Enter a positive integer n: "))
8 |
9 | # Initializing Fibonacci sequence with first two numbers
10 | fib_sequence = [0, 1]
11 |
12 | # Generating Fibonacci sequence using a for loop
13 | for i in range(2, n):
14 | next_fib = fib_sequence[-1] + fib_sequence[-2]
15 | fib_sequence.append(next_fib)
16 |
17 | # Displaying the generated Fibonacci sequence
18 | print(f"The first {n} numbers in the Fibonacci sequence are:")
19 | for num in fib_sequence:
20 | print(num, end=" ")
21 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 11 Ex.2 Practice Questions:
--------------------------------------------------------------------------------
1 | Create an interactive webpage that demonstrates the usage of JavaScript events and animations. Design a simple HTML page with the following features and functionalities:
2 |
3 | Click Event: Include a button element, When the button is clicked, a paragraph below it should display any message. Use JavaScript to detect the button click event and update the paragraph content accordingly.
4 | Mouseover Event: Add a paragraph element. When a user hovers their mouse over this paragraph, the text content should change. Utilize JavaScript to detect the mouseover event and modify the paragraph content.
5 | Animation: Create a visually appealing animation using CSS keyframes. Design a moving element (e.g., a div or an image) that smoothly moves horizontally across the screen and then reverses its direction. Use JavaScript to control the start and stop of the animation.
6 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 10 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Objective:
2 | To Find Year from a Date as Four Digit number
3 | Syntax:
4 | Year (Date)
5 | Problem Statement:
6 | In Sample Super Store Data set “Order Date” date data type column is there. To extract year part from the dates Year DAX function is used. To achieve this a new column will be created.
7 | Solution:
8 | 1. Import Sample Super Store Data into Power BI Desktop as shown in Task1.
9 | 2. Clean and Transform the data in Power Query editor. Load the data back to Power BI Desktop.
10 | 3. Understand the Data or Understand the business.
11 | 4. Click on Modeling tab Click on New Column from Calculations group then a New Column will be created.
12 | 5. Write the name of the new column and write the year dax function to extract the year part from order date column values.
13 | 6. Year1 column is created with all years extracted from order date column as follows.
14 |
15 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 6 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Objective:
2 | Visualize the data using Water Fall Chart.
3 | Problem Statement:
4 | Import Sample super store data set into Power BI. Find how much sales happened in Year wise using Water Fall chart.
5 | Solution:
6 |
7 | 1. Import Sample Super Store Data into Power BI Desktop as shown in Task1.
8 | 2. Clean and Transform the data in Power Query editor. Load the data back to Power BI Desktop.
9 | 3. Understand the Data or Understand the business
10 | 4. Categorize all the columns into three buckets (Categorical Columns, Numerical Columns, Date Columns).
11 | 5. Prepare a Problem statement dealing one categorical and one numerical column ( ex: Year Wise Region Wise Sales).
12 | 6. Click on Report view tab Click on Water Fall Chart from Visualizations pane. Maximize the chart for better view. Then the basic structure of the chart will be pasted on to the Report view Canvas.
13 |
14 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 12 Ex.2 Practice Question:
--------------------------------------------------------------------------------
1 | Design a webpage's interactivity using jQuery events and effects. Design a simple HTML page with the following elements and functionalities:
2 | Toggle Display: Create a button element labeled "Toggle Text" and a div element below it. When the button is clicked, toggle the visibility of the div's text content using a fade effect. The text content should smoothly fade in or fade out.
3 | Hover Effect: Include an image element in the form of a thumbnail (e.g., a small image). When a user hovers their mouse over the thumbnail, the image should smoothly transition to a larger size. When the user moves the mouse away, the image should smoothly transition back to its original size.
4 | Click Event with Animation: Add a set of three paragraph elements. When a user clicks on a paragraph, it should expand in height to reveal more content. Clicking again should collapse the paragraph back to its original height.
5 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 2 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Question3: Working with Data Types of the columns
2 |
3 | Objective: Change the Data type of the columns which are not opt
4 |
5 | Problem Statement:Import the Employee Data into Power BI. In PQE verify all the column data types and change the data type of the column which is not correctly kept.
6 | Solution:
7 | 1. Import the Employee Excel Data source into Power BI.
8 | 2. Click on the Home tab Transform Transform Option.
9 | 3. Then the Data will be loaded into Power Query editor.
10 | 4. Click on the Transform tab. Check for the data types of each column by clicking on the column name.
11 | 5. Change the data type of the column which is not opt for the column as follows.
12 | 6. Change the data type of Salary Column: Right click on the name of the column Change type Select Whole Number data type. Observe the changes happening in the column. All the values will be rounded to the nearest integer values.
13 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 6 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | You have the temperature data for a week. Create a line plot to visualize the temperature trend over the week. Customize the plot with different colors, markers, and line styles.
2 | -------------------------------------
3 |
4 | import matplotlib.pyplot as plt
5 |
6 | # Days of the week
7 | days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
8 |
9 | # Temperature data for the week
10 | temperatures = [25, 27, 24, 22, 23, 26, 28]
11 |
12 | # Create a line plot with customized style
13 | plt.plot(days, temperatures, color='blue', marker='o', linestyle='--', linewidth=2, markersize=8, label='Temperature')
14 |
15 | # Add labels and title
16 | plt.xlabel('Days')
17 | plt.ylabel('Temperature (°C)')
18 | plt.title('Temperature Trend over the Week')
19 | plt.legend()
20 |
21 | # Customize grid and tick marks
22 | plt.grid(True, linestyle='--', alpha=0.7)
23 | plt.xticks(rotation=45)
24 |
25 | # Show the plot
26 | plt.show()
27 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Python Conditional Statements:
--------------------------------------------------------------------------------
1 | Write a simple Python program to determine the cost of admission to a zoo based on the age of a visitor. Prompt the user to enter their age, and then display the admission cost in Indian Rupees (INR) according to the following criteria:
2 |
3 | Children (age 0-5): Free
4 | Kids (age 6-12): ₹50
5 | Teenagers and Adults (age 13-59): ₹100
6 | Seniors (age 60 and above): ₹70
7 |
8 | age = int(input("Enter your age: "))
9 |
10 | if age < 0:
11 | print("Invalid age. Please enter a valid age.")
12 | elif age <= 5:
13 | print("The admission is free for children (age 0-5).")
14 | elif 6 >= age <= 12:
15 | print("The admission cost for kids (age 6-12) is ₹50.")
16 | elif 13 >= age <= 59:
17 | print("The admission cost for teenagers and adults (age 13-59) is ₹100.")
18 | elif age >= 60:
19 | print("The admission cost for seniors (age 60 and above) is ₹70.")
20 | else:
21 | print("Invalid input. Please enter a valid integer for age.")
22 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 2 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Integer and Addition
2 | num1 = 10
3 | num2 = 20
4 | sum_result = num1 + num2
5 | print("Sum:", sum_result)
6 |
7 | # Floating-point Division
8 | div_result = num2 / num1
9 | print("Division:", div_result)
10 |
11 | # String Concatenation
12 | name = "John"
13 | greeting = "Hello, " + name + "!"
14 | print(greeting)
15 |
16 | # Boolean and Comparison
17 | is_greater = num2 > num1
18 | print("Is num2 greater than num1?", is_greater)
19 |
20 | # Lists
21 | my_list = [1, 2, 3, 4, 5]
22 | print("List:", my_list)
23 |
24 | # Accessing List Elements
25 | print("Second element:", my_list[1])
26 |
27 | # Appending to a List
28 | my_list.append(6)
29 | print("Updated List:", my_list)
30 |
31 | # Tuple
32 | my_tuple = (10, 20, 30)
33 | print("Tuple:", my_tuple)
34 |
35 | # Dictionary
36 | my_dict = {"name": "Alice", "age": 25}
37 | print("Dictionary:", my_dict)
38 |
39 | # Accessing Dictionary Values
40 | print("Age:", my_dict["age"])
41 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 14 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Add List Item Example
7 |
8 |
9 |
Add List Item Example
10 |
11 |
Item 1
12 |
Item 2
13 |
Item 3
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
24 | document.addEventListener("DOMContentLoaded", function() {
25 | const addItemButton = document.getElementById("addItemButton");
26 | const list = document.getElementById("list");
27 |
28 | addItemButton.addEventListener("click", function() {
29 | const newItem = document.createElement("li");
30 | newItem.textContent = "New Item";
31 | list.appendChild(newItem);
32 | });
33 | });
34 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 4 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Objective:
2 | Add Two Numerical Columns in PQE.
3 | Problem Statement:
4 | Import Employee data set into Power BI. In PQE, create a new column to calculate 10% of increment. Add Salary and increment columns to find total salary of each employee.
5 | Solution:
6 |
7 | 1. Load the Employee Data set into Power Query editor as shown in Task2.
8 | 2. Click on Add column tab Select Salary Column Click on Standard Select Multiply as follows.
9 | 3. A new window will be opened as follows.
10 | 4. Enter 0.1(10% increment value on salary)OK. Then a new column will be created as follows.
11 | 5. Double click on the column name type Increment
12 | 6. Now Salary column need to be added to increment column to calculate total salary.
13 | 7. Click on Add column tab Select both Salary and increment columns Click on Standard Select Add.
14 | 8. A new column will be created with the two column values added row wise. Double click on the name of the new column type Total Salary Save.
15 |
16 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 9 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Objective:
2 | Add all the numbers in a Numerical column.
3 | Syntax:
4 | SUM(Column Name)
5 | Problem Statement:
6 | In Sample Super Store Data set Sales numerical column is there. To calculate total sales in the data set SUM DAX function is used. To display this sum value Card Visual will be used.
7 |
8 | Solution:
9 | 1. Import Sample Super Store Data into Power BI Desktop as shown in Task1.
10 | 2. Clean and Transform the data in Power Query editor. Load the data back to Power BI Desktop.
11 | 3. Understand the Data or Understand the business.
12 | 4. Click on Home tab Click on New Measure then a New Measure will be created.
13 | 5. Write the Sum DAX function as follows and hit Enter. A new Measure will be created to calculate total sales.
14 | 6. Click on Report View Click on Card Visual from Visualization pane the format of Card Visual will be created in the Report view canvas as follows.
15 | 7. Drag total sales measure to the fields parameter of the card visual. Now total sales can be seen as follows.
16 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 5 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Question17: working with charts
2 | Objective:
3 | Prepare Stacked Bar chart
4 | Problem Statement:
5 | Import Sample super store data set into Power BI. Find how much sales happened in each region using stacked bar chart.
6 | Solution:
7 |
8 | 1. Import Sample Super Store Data into Power BI Desktop as shown in Task1.
9 | 2. Clean and Transform the data in Power Query editor. Load the data back to Power BI Desktop.
10 | 3. Understand the Data or Understand the business
11 | 4. Categorize all the columns into three buckets (Categorical Columns, Numerical Columns, Date Columns).
12 | 5. Prepare a Problem statement dealing one categorical and one numerical column ( ex: Region Wise Sales).
13 | 6. Click on Report view tab Click on Stacked Bar Chart from Visualizations pane. Maximize the chart for better view. Then the basic structure of the chart will be pasted on to the Report view Canvas.
14 | 7. Drag Region column from Data pane to Y-axis and Sales column from Data pane to X-axis. Then the basic Stacked Bar chart will be created as follows.
15 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Python OOPs 2:
--------------------------------------------------------------------------------
1 | Develop a Python program that showcases the Student class, featuring a constructor to set the student's name and age attributes. Implement methods within the class to display student information, calculate the birth year, and update the age.
2 |
3 | class Student:
4 | def __init__(self, name, age):
5 | self.name = name
6 | self.age = age
7 |
8 | def display_info(self):
9 | print("Student Information:")
10 | print(f"Name: {self.name}")
11 | print(f"Age: {self.age} years")
12 |
13 | def calculate_birth_year(self, current_year):
14 | birth_year = current_year - self.age
15 | print(f"\nBirth Year Calculation:")
16 | print(f"Birth Year: {birth_year}")
17 |
18 | def update_age(self):
19 | self.age += 1
20 | print(f"\nUpdated Age Information:")
21 | print(f"Updated Age: {self.age} years")
22 |
23 | # Example Usage
24 | current_year = 2023
25 | student1 = Student("Alice", 20)
26 | student1.display_info()
27 | student1.calculate_birth_year(current_year)
28 | student1.update_age()
29 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 1 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Create Numpy Arrays -
2 |
3 | 1. Using List
4 | --------------------------------
5 | import numpy as np
6 |
7 | my_list = [1, 2, 3, 4, 5]
8 | my_array = np.array(my_list)
9 |
10 | print(my_array)
11 |
12 |
13 | 2. Using Numpy Functions
14 | -------------------------------
15 | import numpy as np
16 |
17 | # Create an array of zeros
18 | zeros_array = np.zeros(5)
19 |
20 | # Create an array of ones
21 | ones_array = np.ones(5)
22 |
23 | # Create a range of values
24 | range_array = np.arange(0, 10, 2) # Start, Stop, Step
25 |
26 | print(zeros_array)
27 | print(ones_array)
28 | print(range_array)
29 |
30 |
31 | 3. Using Random Number
32 | ---------------------------------
33 | import numpy as np
34 |
35 | # Create an array with random values
36 | random_array = np.random.rand(5)
37 |
38 | print(random_array)
39 |
40 |
41 | 4. Using Linspace
42 | --------------------------------
43 | import numpy as np
44 |
45 | # Create an array with 5 evenly spaced values between 0 and 1
46 | linspace_array = np.linspace(0, 1, 5)
47 |
48 | print(linspace_array)
49 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 4 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | During a hiking trip, a group of friends decided to explore a cave. They encountered a series of tunnels with different lengths. Write a Python program that prompts the user to enter the length of a tunnel in meters. Depending on the length of the tunnel, the program should display a message describing the tunnel's classification:
2 |
3 | Tunnels shorter than 100 meters are classified as "Short tunnels."
4 | Tunnels between 100 and 500 meters are classified as "Medium tunnels."
5 | Tunnels longer than 500 meters are classified as "Long tunnels."
6 | -----------------------------------------------------------------------------
7 |
8 | # Getting user input
9 | tunnel_length = float(input("Enter the length of the tunnel in meters: "))
10 |
11 | # Conditional statements
12 | if tunnel_length < 100:
13 | classification = "Short tunnels"
14 | elif tunnel_length <= 500:
15 | classification = "Medium tunnels"
16 | else:
17 | classification = "Long tunnels"
18 |
19 | # Displaying classification
20 | print(f"The tunnel with a length of {tunnel_length} meters is classified as {classification}.")
21 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 10 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Python program that demonstrates the use of lambda functions:
2 |
3 | # Lambda function to calculate the square of a number
4 | square = lambda x: x ** 2
5 |
6 | # Lambda function to add two numbers
7 | add = lambda a, b: a + b
8 |
9 | # Lambda function to check if a number is even
10 | is_even = lambda num: num % 2 == 0
11 |
12 | # Lambda function to reverse a string
13 | reverse_string = lambda s: s[::-1]
14 |
15 | # Main program
16 | if __name__ == "__main__":
17 | num = float(input("Enter a number: "))
18 | print(f"The square of {num} is {square(num)}")
19 |
20 | num1 = float(input("Enter the first number: "))
21 | num2 = float(input("Enter the second number: "))
22 | print(f"The sum of {num1} and {num2} is {add(num1, num2)}")
23 |
24 | check_num = int(input("Enter a number to check if it's even: "))
25 | if is_even(check_num):
26 | print(f"{check_num} is even.")
27 | else:
28 | print(f"{check_num} is odd.")
29 |
30 | input_string = input("Enter a string: ")
31 | print(f"The reversed string is: {reverse_string(input_string)}")
32 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 5 Ex. 2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Navigation Menu
7 |
36 |
37 |
38 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 14 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | def task_division():
2 | try:
3 | num1 = int(input("Enter the first number: "))
4 | num2 = int(input("Enter the second number: "))
5 | result = num1 / num2
6 | print("Result:", result)
7 | except ValueError:
8 | print("Invalid input. Please enter valid numbers.")
9 | except ZeroDivisionError:
10 | print("Division by zero is not allowed.")
11 |
12 | def task_file_reading():
13 | try:
14 | file_name = input("Enter the file name: ")
15 | with open(file_name, 'r') as file:
16 | content = file.read()
17 | print("File content:", content)
18 | except FileNotFoundError:
19 | print("File not found.")
20 |
21 | def main():
22 | print("Select a task:")
23 | print("1. Division")
24 | print("2. File Reading")
25 | choice = input("Enter your choice: ")
26 |
27 | if choice == '1':
28 | task_division()
29 | elif choice == '2':
30 | task_file_reading()
31 | else:
32 | print("Invalid choice.")
33 |
34 | if __name__ == "__main__":
35 | main()
36 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 11 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Python program that demonstrates the use of dictionaries:
2 |
3 | # Function to display student details
4 | def display_student_details(student):
5 | print(f"Student ID: {student['id']}")
6 | print(f"Name: {student['name']}")
7 | print(f"Age: {student['age']}")
8 | print(f"Grade: {student['grade']}")
9 | print()
10 |
11 | # Main program
12 | students = {}
13 |
14 | num_students = int(input("Enter the number of students: "))
15 |
16 | for i in range(num_students):
17 | student_id = input(f"Enter student {i + 1} ID: ")
18 | name = input(f"Enter student {i + 1} name: ")
19 | age = int(input(f"Enter student {i + 1} age: "))
20 | grade = input(f"Enter student {i + 1} grade: ")
21 |
22 | student = {
23 | 'id': student_id,
24 | 'name': name,
25 | 'age': age,
26 | 'grade': grade
27 | }
28 |
29 | students[student_id] = student
30 | print()
31 |
32 | # Displaying student details
33 | print("\nStudent Details:")
34 | for student_id, student in students.items():
35 | print(f"Student ID: {student_id}")
36 | display_student_details(student)
37 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 8 Ex. 1 Solved:
--------------------------------------------------------------------------------
1 | Design a simple HTML page with the provided JavaScript code. Which include Console Logging, Alert Dialog Box, Prompt Dialog Box, Confirm Dialog Box.
2 |
3 |
4 |
5 | JavaScript Console & Dialog Box Example
6 |
7 |
8 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 4 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | You are given temperature data for a week in Celsius. Create a Pandas Series to represent this data and perform various operations on it.
2 | ---------------------------------------
3 |
4 | import pandas as pd
5 |
6 | # Given temperature data for a week (in Celsius)
7 | temperature_data = [25, 27, 26, 23, 24, 22, 28]
8 |
9 | # Create a Pandas Series from the temperature data
10 | temperature_series = pd.Series(temperature_data)
11 |
12 | # Print the entire Series
13 | print("Temperature Series:")
14 | print(temperature_series)
15 |
16 | # Find the maximum temperature
17 | max_temp = temperature_series.max()
18 | print("Maximum Temperature:", max_temp)
19 |
20 | # Calculate the average temperature
21 | avg_temp = temperature_series.mean()
22 | print("Average Temperature:", avg_temp)
23 |
24 | # Check if there are temperatures above 25°C
25 | above_25 = temperature_series > 25
26 | print("Temperatures above 25°C:")
27 | print(temperature_series[above_25])
28 |
29 | # Calculate the temperature range (difference between max and min)
30 | temp_range = max_temp - temperature_series.min()
31 | print("Temperature Range:", temp_range)
32 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 5 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | You have the exam scores of a class. Write a Python program to load the scores into a Pandas Series and calculate the mean, median, standard deviation, and the percentage of scores above 70.
2 |
3 | -------------------------------------------
4 |
5 | import pandas as pd
6 |
7 | # Given exam scores of a class
8 | scores = [85, 92, 78, 60, 95, 88, 72, 65, 90, 82]
9 |
10 | # Create a Pandas Series from the exam scores
11 | scores_series = pd.Series(scores)
12 |
13 | # Calculate the mean, median, and standard deviation
14 | mean_score = scores_series.mean()
15 | median_score = scores_series.median()
16 | std_deviation = scores_series.std()
17 |
18 | # Calculate the percentage of scores above 70
19 | above_70_count = scores_series[scores_series > 70].count()
20 | total_scores = scores_series.count()
21 | percentage_above_70 = (above_70_count / total_scores) * 100
22 |
23 | # Display the results
24 | print("Exam Scores:")
25 | print(scores_series)
26 | print("Mean Score:", mean_score)
27 | print("Median Score:", median_score)
28 | print("Standard Deviation:", std_deviation)
29 | print("Percentage of Scores Above 70:", percentage_above_70, "%")
30 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 4 Ex. 2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Product List
7 |
36 |
37 |
38 |
Product List
39 |
40 |
Laptop
41 |
Smartphone
42 |
T-shirt
43 |
Apple
44 |
Jeans
45 |
Bread
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/src/mobile-style.css:
--------------------------------------------------------------------------------
1 | @media only screen and (max-width: 768px) {
2 | header .navbar-brand {
3 | padding-left: 1rem;
4 | }
5 | .section-1 .row .col-md-6 .panel {
6 | position: initial;
7 | width: initial;
8 | height: initial;
9 | }
10 | .section-2 .cover {
11 | background-position: -25vmin -10vmin;
12 | }
13 | .numbers .rect {
14 | width: 10rem;
15 | height: 8rem;
16 | }
17 | .numbers .rect h1 {
18 | font-size: 2rem;
19 | }
20 |
21 | .section-3 {
22 | height: inherit;
23 | padding: 10vmin !important;
24 | }
25 | .section-3 .row h1 {
26 | padding: 6vmin 4vmin;
27 | }
28 | .section-3 .platform .col-md-6 {
29 | text-align: center !important;
30 | }
31 | .section-3 .desktop i {
32 | font-size: 8vmin;
33 | }
34 | .section-4 .carousel-item {
35 | padding-left: 0.6rem;
36 | }
37 | footer .row .col-md-2 {
38 | margin-top: 8vmin;
39 | }
40 | }
41 |
42 | /* screen size 375px */
43 |
44 | @media only screen and (max-width: 375px) {
45 | .section-4 .card {
46 | width: 18em;
47 | }
48 | }
49 |
50 | @media only screen and (max-width: 320px) {
51 | .section-4 .carousel-inner {
52 | margin-left: -4vmin;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 1 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Question1: Demo of Importing any Data Source into Power BI
2 |
3 | Objective: Importing Excel Data Source into Power BI
4 |
5 | Problem Statement:
6 | Prepare an Excel data source in your local drive or save sample super store data in your local drive. Now this data source can be imported into Power BI as follows.
7 |
8 | Solution:
9 | 1. Prepare the Excel Data source and Save it in a Folder in the Local Drive
10 | 2. Open Power BI Desktop application
11 | 3. Go to Home tab Click on “Get Data” Select “Excel Work book”.
12 | 4. Browse for the Excel Data source in your System. Double click on the required Excel file to connect to Power BI.
13 | 5. A Navigator Window will be opened. In this window all possible Excel Worksheets in the selected Excel Workbook will be displayed.
14 | 6. Select one or many worksheets from the above Navigator window.
15 | 7. Click on the “Load” option. Automatically the selected Excel Worksheets will be loaded onto Power BI Desktop window. This is called as Importing Data into Power BI.
16 | 8. After Import, Power BI Desktop window will be looking like this.
17 | 9. Observe the selected “Orders” worksheet is imported into Power BI. You can see the Orders table in “Data” Pane above.
18 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/SQL:
--------------------------------------------------------------------------------
1 | Create a MySQL database "SchoolDB" with a "Student" table, including columns for student_id, first_name, last_name, age, and grade. Perform CRUD operations
2 |
3 | -- Create a new database
4 | CREATE DATABASE IF NOT EXISTS SchoolDB;
5 |
6 | -- Switch to the new database
7 | USE SchoolDB;
8 |
9 | -- Create a student table
10 | CREATE TABLE IF NOT EXISTS Student (
11 | student_id INT PRIMARY KEY AUTO_INCREMENT,
12 | first_name VARCHAR(50) NOT NULL,
13 | last_name VARCHAR(50) NOT NULL,
14 | age INT,
15 | grade VARCHAR(10)
16 | );
17 |
18 | -- Insert a new student
19 | INSERT INTO Student (first_name, last_name, age, grade) VALUES ('John', 'Doe', 15, '10th');
20 |
21 | -- Insert another student
22 | INSERT INTO Student (first_name, last_name, age, grade) VALUES ('Jane', 'Smith', 16, '11th');
23 |
24 |
25 | -- Select all students
26 | SELECT * FROM Student;
27 |
28 | -- Select students in a specific grade
29 | SELECT * FROM Student WHERE grade = '10th';
30 |
31 | -- Select a specific student by ID
32 | SELECT * FROM Student WHERE student_id = 1;
33 |
34 | -- Update the grade of a student
35 | UPDATE Student SET grade = '11th' WHERE student_id = 1;
36 |
37 | -- Delete a student by ID
38 | DELETE FROM Student WHERE student_id = 2;
39 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 1 Ex. 2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Customer Testimonials
7 |
25 |
26 |
27 |
28 |
29 |
30 |
John Doe
31 |
"I had an amazing experience with this company. The service was top-notch and the staff was incredibly helpful."
32 |
33 |
34 |
35 |
Jane Smith
36 |
"I'm so impressed with the quality of their products. Definitely coming back for more. Highly recommended!"
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 9 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | # Function to perform addition
2 | def add(a, b):
3 | return a + b
4 |
5 | # Function to perform subtraction
6 | def subtract(a, b):
7 | return a - b
8 |
9 | # Function to perform multiplication
10 | def multiply(a, b):
11 | return a * b
12 |
13 | # Function to perform division
14 | def divide(a, b):
15 | if b != 0:
16 | return a / b
17 | else:
18 | return "Cannot divide by zero"
19 |
20 | # Main program
21 | print("Simple Calculator")
22 | print("1. Addition")
23 | print("2. Subtraction")
24 | print("3. Multiplication")
25 | print("4. Division")
26 |
27 | choice = int(input("Enter your choice (1/2/3/4): "))
28 |
29 | num1 = float(input("Enter the first number: "))
30 | num2 = float(input("Enter the second number: "))
31 |
32 | if choice == 1:
33 | result = add(num1, num2)
34 | operator = "+"
35 | elif choice == 2:
36 | result = subtract(num1, num2)
37 | operator = "-"
38 | elif choice == 3:
39 | result = multiply(num1, num2)
40 | operator = "*"
41 | elif choice == 4:
42 | result = divide(num1, num2)
43 | operator = "/"
44 | else:
45 | print("Invalid choice")
46 | exit()
47 |
48 | print(f"{num1} {operator} {num2} = {result}")
49 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 7 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | A school teacher wants to calculate the average score of a student's quizzes.
2 | Write a Python program that takes the quiz scores as input until the user enters a negative score. Use the continue keyword to skip any negative scores during the calculation of the average.
3 | After all the scores are entered, calculate and display the average score of the quizzes.
4 |
5 |
6 | -----------------------------------------------------------------------
7 |
8 |
9 | # Initializing variables
10 | total_score = 0
11 | num_quizzes = 0
12 |
13 | # Loop to input quiz scores
14 | while True:
15 | score = float(input("Enter the quiz score (negative score to exit): "))
16 |
17 | if score < 0:
18 | break # Exit the loop when a negative score is entered
19 | elif score < 0 or score > 100:
20 | print("Invalid score. Please enter a score between 0 and 100.")
21 | continue # Skip invalid scores and continue to the next iteration
22 |
23 | total_score += score
24 | num_quizzes += 1
25 |
26 | # Calculating and displaying the average score
27 | if num_quizzes > 0:
28 | average_score = total_score / num_quizzes
29 | print(f"The average quiz score is {average_score:.2f}")
30 | else:
31 | print("No quiz scores entered.")
32 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 6 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import matplotlib.pyplot as plt
2 |
3 | # Days of the month
4 | days = list(range(1, 31))
5 |
6 | # Closing stock prices for the month
7 | closing_prices = [100, 105, 98, 110, 112, 108, 120, 116, 115, 112,
8 | 130, 128, 132, 140, 138, 142, 150, 148, 155, 152,
9 | 148, 145, 142, 140, 138, 130, 125, 128, 130, 135]
10 |
11 | # Opening stock prices for the month
12 | opening_prices = [102, 100, 108, 110, 115, 113, 118, 114, 112, 118,
13 | 126, 130, 135, 139, 137, 143, 152, 147, 153, 149,
14 | 147, 143, 142, 138, 136, 133, 129, 126, 128, 133]
15 |
16 | # Create a plot with customized styles
17 | plt.plot(days, closing_prices, color='blue', marker='o', linestyle='-', linewidth=2, markersize=6, label='Closing Price')
18 | plt.plot(days, opening_prices, color='green', marker='s', linestyle='--', linewidth=2, markersize=6, label='Opening Price')
19 |
20 | # Add labels and title
21 | plt.xlabel('Days of the Month')
22 | plt.ylabel('Stock Price')
23 | plt.title('Stock Price Variation over the Month')
24 | plt.legend()
25 |
26 | # Customize grid and tick marks
27 | plt.grid(True, linestyle='--', alpha=0.7)
28 | plt.xticks(range(1, 31, 2))
29 |
30 | # Show the plot
31 | plt.show()
32 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 8 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | A school cafeteria serves lunch to students, and the menu changes daily. Write a Python program that simulates a student's lunch selection process. The program should prompt the user to enter the number of items they want from the menu. The menu items are numbered from 1 to 5. However, if the user enters 0, the program should stop the selection process using the break keyword.
2 | --------------------------------------------
3 |
4 | # Initialize an empty list to store selected items
5 | selected_items = []
6 |
7 | # Display the menu
8 | print("Menu:")
9 | print("1. Item A")
10 | print("2. Item B")
11 | print("3. Item C")
12 | print("4. Item D")
13 | print("5. Item E")
14 |
15 | # Loop for lunch selection
16 | while True:
17 | selection = int(input("Enter the number of the item you want (enter 0 to stop): "))
18 |
19 | if selection == 0:
20 | break # Exit the loop if 0 is entered
21 | elif 1 <= selection <= 5:
22 | selected_items.append(selection) # Add selected item to the list
23 | else:
24 | print("Invalid selection. Please choose a valid item number.")
25 |
26 | # Display the selected items
27 | if selected_items:
28 | print("Selected items:")
29 | for item in selected_items:
30 | print(f"Item {item}")
31 | else:
32 | print("No items selected.")
33 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 2 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import numpy as np
2 |
3 | # Create a 1D NumPy array
4 | arr = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
5 |
6 | # Accessing multiple elements using a list of indices
7 | indices = [2, 5, 8]
8 | selected_elements = arr[indices]
9 | print("Selected elements:", selected_elements) # Output: [2 5 8]
10 |
11 | # Create a 2D NumPy array
12 | matrix = np.array([[0, 1, 2],
13 | [3, 4, 5],
14 | [6, 7, 8]])
15 |
16 | # Accessing a sub-matrix using slicing
17 | sub_matrix = matrix[1:, :2]
18 | print("Sub-matrix:")
19 | print(sub_matrix)
20 | # Output:
21 | # [[3 4]
22 | # [6 7]]
23 |
24 | # Slicing with step
25 | sliced_arr = arr[1:9:2]
26 | print("Sliced array with step:", sliced_arr) # Output: [1 3 5 7]
27 |
28 | # Conditional indexing
29 | condition = arr > 5
30 | elements_greater_than_5 = arr[condition]
31 | print("Elements greater than 5:", elements_greater_than_5) # Output: [6 7 8 9]
32 |
33 | # Fancy indexing
34 | fancy_indices = [3, 1, 4]
35 | fancy_elements = arr[fancy_indices]
36 | print("Fancy indexed elements:", fancy_elements) # Output: [3 1 4]
37 |
38 | # Boolean indexing with 2D array
39 | bool_matrix = matrix > 3
40 | selected_matrix_elements = matrix[bool_matrix]
41 | print("Selected matrix elements:", selected_matrix_elements) # Output: [4 5 6 7 8]
42 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/PHP Loops:
--------------------------------------------------------------------------------
1 | Write a PHP program that generates the Fibonacci sequence up to a specified number of terms. The Fibonacci sequence is a series of numbers in which each number is the sum of the two preceding ones, usually starting with 0 and 1. Allow the user to input the number of terms in the sequence
2 |
3 |
34 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 2 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Indexing with NumPy arrays in Python
2 | ------------------------------------------
3 |
4 | import numpy as np
5 |
6 | # Create a 1D NumPy array
7 | arr1d = np.array([10, 20, 30, 40, 50])
8 |
9 | # Accessing elements using positive indexing
10 | print("Positive indexing:")
11 | print("First element:", arr1d[0]) # Output: 10
12 | print("Second element:", arr1d[1]) # Output: 20
13 | print("Last element:", arr1d[-1]) # Output: 50
14 |
15 | # Create a 2D NumPy array
16 | arr2d = np.array([[1, 2, 3],
17 | [4, 5, 6],
18 | [7, 8, 9]])
19 |
20 | # Accessing elements using indexing
21 | print("\nIndexing in a 2D array:")
22 | print("Element at (0, 0):", arr2d[0, 0]) # Output: 1
23 | print("Element at (1, 2):", arr2d[1, 2]) # Output: 6
24 |
25 | # Slicing arrays
26 | print("\nSlicing:")
27 | print("Slice from index 1 to 3:", arr1d[1:4]) # Output: [20 30 40]
28 | print("Slice last two elements:", arr1d[-2:]) # Output: [40 50]
29 | print("Slice rows from index 1:", arr2d[1:]) # Output: [[4 5 6] [7 8 9]]
30 | print("Slice columns up to index 2:", arr2d[:, :2]) # Output: [[1 2] [4 5] [7 8]]
31 |
32 | # Boolean indexing
33 | print("\nBoolean indexing:")
34 | bool_mask = arr1d > 25
35 | print("Elements greater than 25:", arr1d[bool_mask]) # Output: [30 40 50]
36 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Python Functions:
--------------------------------------------------------------------------------
1 | Develop a Python program to calculate fines for speeding violations in Indian Rupees. Implement functions to calculate fines based on predefined criteria and speed thresholds. Use loops to process multiple vehicles and prompt the user for speed limit and recorded speed.
2 |
3 | criteria as follows:
4 | No fine if within 10 km/h over the speed limit.
5 | ₹500 fine for 11 to 20 km/h over.
6 | ₹1000 fine for 21 to 30 km/h over.
7 | ₹2000 fine for over 30 km/h over.
8 |
9 | def calculate_fine(speed_limit, recorded_speed):
10 | fine_amounts = [0, 500, 1000, 2000]
11 | speed_thresholds = [0, 10, 20, 30]
12 |
13 | speed_difference = recorded_speed - speed_limit
14 |
15 | fine_category = 0
16 | for threshold in speed_thresholds:
17 | if speed_difference > threshold:
18 | fine_category += 1
19 |
20 | fine = fine_amounts[fine_category]
21 | return fine
22 |
23 | def process_vehicle():
24 | speed_limit = int(input("Enter speed limit (in km/h): "))
25 | recorded_speed = int(input("Enter recorded speed (in km/h): "))
26 |
27 | fine = calculate_fine(speed_limit, recorded_speed)
28 | print(f"Fine: ₹{fine}")
29 |
30 | # Get the number of vehicles for processing
31 | num_vehicles = int(input("Enter the number of vehicles to process: "))
32 |
33 | # Process each vehicle
34 | for _ in range(num_vehicles):
35 | print("\nProcessing Vehicle:")
36 | process_vehicle()
37 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 3 Class:
--------------------------------------------------------------------------------
1 | Create a PHP program that models a Book class. The class should have attributes such as title, author, and price. Implement a method to calculate the total cost of a given quantity of books. Create instances of the Book class, and calculate and display the total cost for each book, considering a quantity of 5 for each book.
2 |
3 | id = $id;
14 | $this->name = $name;
15 | $this->designation = $designation;
16 | $this->salary = $salary;
17 | }
18 |
19 | // Method to display employee information
20 | public function displayInfo() {
21 | echo "Employee ID: $this->id\n";
22 | echo "Name: $this->name\n";
23 | echo "Designation: $this->designation\n";
24 | echo "Salary: $this->salary\n\n";
25 | }
26 | }
27 |
28 | // Creating instances of Employee
29 | $employee1 = new Employee(1, "John Doe", "Software Engineer", 60000);
30 | $employee2 = new Employee(2, "Jane Smith", "UX Designer", 55000);
31 | $employee3 = new Employee(3, "Bob Johnson", "Project Manager", 75000);
32 |
33 | // Displaying information for each employee
34 | $employee1->displayInfo();
35 | $employee2->displayInfo();
36 | $employee3->displayInfo();
37 | ?>
38 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/PHP Conditional Statements:
--------------------------------------------------------------------------------
1 | Write a PHP program that takes the bill amount as input and calculates the discount based on the following rules:
2 |
3 | If the bill amount is between ₹1000 and ₹4999 (inclusive), apply a 10% discount.
4 | If the bill amount is ₹5000 or more, apply a 20% discount.
5 | Display the original bill amount, the calculated discount, and the final amount after applying the discount.
6 |
7 | = 1000 && $billAmount <= 4999) {
13 | // Apply 10% discount for bill amount between ₹1000 and ₹4999
14 | $discount = 0.1 * $billAmount;
15 | } elseif ($billAmount >= 5000) {
16 | // Apply 20% discount for bill amount ₹5000 and above
17 | $discount = 0.2 * $billAmount;
18 | }
19 |
20 | return $discount;
21 | }
22 |
23 | // Example usage:
24 | $billAmount1 = 3000;
25 | $discount1 = calculateDiscount($billAmount1);
26 |
27 | if ($discount1 > 0) {
28 | echo "Original Bill Amount: ₹$billAmount1\n";
29 | echo "Discount: ₹$discount1\n";
30 | echo "Final Amount after Discount: ₹" . ($billAmount1 - $discount1) . "\n";
31 | } else {
32 | echo "Original Bill Amount: ₹$billAmount1\n";
33 | echo "No discount applicable for the given bill amount.\n";
34 | }
35 | ?>
36 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 12 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Create a simple HTML page that demonstrates the usage of jQuery events and effects. Include three square div elements with the class "box." When a user clicks on a box, it should disappear with a fade-out effect. Utilize jQuery to select the elements, handle the click event, and apply the fade effect.
2 |
3 |
4 |
5 | jQuery Event & Effect Example
6 |
7 |
17 |
18 |
19 |
20 |
jQuery Event & Effect Example
21 |
Click on a box to hide it with a fade effect.
22 |
23 |
24 |
25 |
26 |
27 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Django Practical 1:
--------------------------------------------------------------------------------
1 | You are developing a Django application for managing a library. The application includes a model named Book with fields such as title, author, publication_date, and is_available (a boolean field indicating whether the book is currently available for borrowing). Your task is to create a Django view that displays a list of available books sorted by their publication date in descending order. Write the code for the view, including filtering, and ensure that only available books are included in the list.
2 |
3 | # views.py
4 | from django.shortcuts import render
5 | from .models import Book
6 |
7 | def available_books(request):
8 | # Retrieve available books sorted by publication date in descending order
9 | available_books = Book.objects.filter(is_available=True).order_by('-publication_date')
10 |
11 | # Pass the queryset and other context to the template for rendering
12 | return render(request, 'available_books.html', {'available_books': available_books})
13 |
14 |
15 |
16 | {% extends 'base.html' %}
17 |
18 | {% block content %}
19 |
Available Books
20 |
21 |
22 | {% if available_books %}
23 |
24 | {% for book in available_books %}
25 |
{{ book.title }} by {{ book.author }} (Published on {{ book.publication_date|date:"F j, Y" }})
26 | {% endfor %}
27 |
28 | {% else %}
29 |
No available books at the moment.
30 | {% endif %}
31 | {% endblock %}
32 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/PHP OOPs:
--------------------------------------------------------------------------------
1 | Design a PHP class named Car that represents a vehicle with properties like make, model, and year. Include methods to display information about the car and calculate its age. Instantiate two Car objects, set their properties, and compare their ages.
2 |
3 | make = $make;
11 | $this->model = $model;
12 | $this->year = $year;
13 | }
14 |
15 | public function displayInfo() {
16 | echo "Car Details: $this->year $this->make $this->model\n";
17 | }
18 |
19 | public function calculateAge($currentYear) {
20 | return $currentYear - $this->year;
21 | }
22 | }
23 |
24 | // Example usage:
25 | $car1 = new Car();
26 | $car1->setDetails("Toyota", "Camry", 2018);
27 |
28 | $car2 = new Car();
29 | $car2->setDetails("Honda", "Civic", 2015);
30 |
31 | $currentYear = 2024;
32 |
33 | $car1->displayInfo();
34 | echo "Age of Car 1: " . $car1->calculateAge($currentYear) . " years\n";
35 |
36 | $car2->displayInfo();
37 | echo "Age of Car 2: " . $car2->calculateAge($currentYear) . " years\n";
38 |
39 | // Compare ages
40 | if ($car1->calculateAge($currentYear) > $car2->calculateAge($currentYear)) {
41 | echo "Car 1 is older than Car 2.\n";
42 | } elseif ($car1->calculateAge($currentYear) < $car2->calculateAge($currentYear)) {
43 | echo "Car 2 is older than Car 1.\n";
44 | } else {
45 | echo "Both cars are of the same age.\n";
46 | }
47 | ?>
48 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 13 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Design a simple HTML page that showcases the usage of jQuery selectors. Include a paragraph element with the text "This is a paragraph." Beneath it, add a button labeled "Change Color." When the button is clicked, the background color and text color of the paragraph should toggle between their default state and a selected state. Utilize jQuery to target the elements and handle the click event.
2 |
3 |
4 |
5 | jQuery Selector Example
6 |
7 |
14 |
15 |
16 |
17 |
jQuery Selector Example
18 |
This is a paragraph.
19 |
20 |
21 |
22 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/src/main.js:
--------------------------------------------------------------------------------
1 | let nCount = selector => {
2 | $(selector).each(function () {
3 | $(this)
4 | .animate({
5 | Counter: $(this).text()
6 | }, {
7 | // A string or number determining how long the animation will run.
8 | duration: 4000,
9 | // A string indicating which easing function to use for the transition.
10 | easing: "swing",
11 | /**
12 | * A function to be called for each animated property of each animated element.
13 | * This function provides an opportunity to
14 | * modify the Tween object to change the value of the property before it is set.
15 | */
16 | step: function (value) {
17 | $(this).text(Math.ceil(value));
18 | }
19 | });
20 | });
21 | };
22 |
23 | let a = 0;
24 | $(window).scroll(function () {
25 | // The .offset() method allows us to retrieve the current position of an element relative to the document
26 | let oTop = $(".numbers").offset().top - window.innerHeight;
27 | if (a == 0 && $(window).scrollTop() >= oTop) {
28 | a++;
29 | nCount(".rect > h1");
30 | }
31 | });
32 |
33 |
34 |
35 | /**
36 | *
37 | * sticky navigation
38 | *
39 | */
40 |
41 | let navbar = $(".navbar");
42 |
43 | $(window).scroll(function () {
44 | // get the complete hight of window
45 | let oTop = $(".section-2").offset().top - window.innerHeight;
46 | if ($(window).scrollTop() > oTop) {
47 | navbar.addClass("sticky");
48 | } else {
49 | navbar.removeClass("sticky");
50 | }
51 | });
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 8 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | User Interaction Example
7 |
22 |
23 |
24 |
User Interaction Example
25 |
Click the buttons below to see console messages and dialog boxes.
26 |
27 |
28 |
29 |
30 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 10 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Step 1: Load Data
2 |
3 | Open Power BI Desktop.
4 | Click on the "Home" tab and select "Get Data."
5 | Choose your data source, like "Excel" or "CSV," and load the Sample Super Store dataset.
6 | Load the dataset into Power BI.
7 | Step 2: Create a New Column Using MONTH DAX Function
8 |
9 | In the "Fields" pane on the right, locate the "Order Date" date data type column.
10 | Right-click on the column header and select "New Column."
11 | In the formula bar, use the MONTH DAX function to extract the month number from the Order Date column. The formula will look like this:
12 |
13 | Month Number = MONTH('YourTableName'[Order Date])
14 |
15 |
16 | Step 3: Check the New Column
17 |
18 | After creating the new column, you should see a column named "Month Number" with the corresponding month numbers in the data table.
19 | Step 4: Use the New Column in Visualizations
20 |
21 | You can use the newly created "Month Number" column in various visualizations to analyze your data by month.
22 | For instance, you can create a bar chart where the x-axis represents the "Month Number," and the y-axis represents the sales amount or any other relevant metric.
23 | Step 5: Format and Customize Visualizations (Optional)
24 |
25 | Format your visualizations as needed to make them more informative and visually appealing.
26 | Step 6: Save and Publish
27 |
28 | Save your Power BI report.
29 | If required, you can publish the report to the Power BI service to share it with others.
30 | Step 7: Refresh Data (Optional)
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 8 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Objective:
2 | Design a Data Model for the Data sets given
3 | Problem Statement:
4 | Import Products CSV Data set and Sales CSV Data set of the business into Power BI. Understand the Data sets and develop a model to relate these two Data sets.
5 | Solution:
6 |
7 | 1. Import Products and Sales CSV Data sets into Power BI Desktop as similar to Task1.
8 | 2. Clean and Transform the data in Power Query editor. Load the data back to Power BI Desktop.
9 | 3. Understand the Data or Understand the business
10 | 4. Categorize all the columns into three buckets (Categorical Columns, Numerical Columns, Date Columns).
11 | 5. Click on Model view tab The data sets will be looking as follows.
12 |
13 |
14 | 6. Observe the two data sets properly. Product_ID column is present in both the Data sets. This is the relation between the two data sets in order to combine them. This relation can be formed in two ways i.e. either by manually or by Automatically by Power BI itself.
15 | 7. Drag the Product_ID column in Sales Data set to the Product_ID column in Products Data set to form the relation between the two Data sets. After Dragging the model will be looking as follows.
16 | 8. The relation is called as Cardinality. The Cardinality is of Four types depends on the relation between the two Data sets.
17 |
18 | • One to One Cardinality
19 | • One to Many Cardinality
20 | • Many to One Cardinality
21 | • Many to Many Cardinality
22 |
23 | 9. From the above Model, it is clear that the Cardinality between Products and Sales Data sets is One(1) to Many(*).
24 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 15 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | class Product:
2 | def __init__(self, name, price, description):
3 | self.name = name
4 | self.price = price
5 | self.description = description
6 |
7 | class Catalog:
8 | def __init__(self):
9 | self.products = []
10 |
11 | def add_product(self, product):
12 | self.products.append(product)
13 |
14 | def display_catalog(self):
15 | print("Product Catalog:")
16 | for index, product in enumerate(self.products, start=1):
17 | print(f"{index}. Name: {product.name}, Price: ${product.price:.2f}, Description: {product.description}")
18 |
19 | def main():
20 | catalog = Catalog()
21 |
22 | while True:
23 | print("\nSelect an option:")
24 | print("1. Add Product")
25 | print("2. Display Catalog")
26 | print("3. Quit")
27 | choice = input("Enter your choice: ")
28 |
29 | if choice == '1':
30 | name = input("Enter product name: ")
31 | price = float(input("Enter product price: "))
32 | description = input("Enter product description: ")
33 |
34 | product = Product(name, price, description)
35 | catalog.add_product(product)
36 | print("Product added to catalog.")
37 | elif choice == '2':
38 | catalog.display_catalog()
39 | elif choice == '3':
40 | print("Exiting the program.")
41 | break
42 | else:
43 | print("Invalid choice. Please enter a valid option.")
44 |
45 | if __name__ == "__main__":
46 | main()
47 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 9 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Step 1: Load Data
2 |
3 | Open Power BI Desktop.
4 | Click on "Home" tab and select "Get Data."
5 | Choose your data source, in this case, "Excel" or "CSV" to load the Sample Super Store dataset.
6 | Load the dataset into Power BI.
7 | Step 2: Create a Measure using AVERAGE DAX Function
8 |
9 | In the "Fields" pane on the right, find the "Sales" numerical column.
10 | Right-click on the column and select "New Measure."
11 | In the formula bar, use the AVERAGE DAX function to calculate the average of the Sales column. The formula will look like this:
12 | Step 3: Create a Card Visual
13 |
14 | Go to the "Visualizations" pane on the right.
15 | Select the "Card" visual to add it to your report canvas.
16 | In the "Values" section of the "Visualizations" pane, drag and drop the "Average Sales" measure that you created in Step 2.
17 | Step 4: Format the Card Visual
18 |
19 | With the Card visual selected, you can format it to make it visually appealing.
20 | You can change the title of the card to something like "Average Sales" by editing the "Title" property in the "Format" section of the "Visualizations" pane.
21 | Step 5: Save and Publish
22 |
23 | Once you are satisfied with the visualization, save your Power BI report.
24 | You can then publish the report to Power BI service to share it with others.
25 | Step 6: Refresh Data (Optional)
26 |
27 | If your dataset is regularly updated, you can set up data refresh to keep your report up to date.
28 | That's it! You've now successfully calculated the average of the "Sales" numerical column using the AVERAGE DAX function and displayed it using a Card Visual in Power BI.
29 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 2/Lab 9 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 | import matplotlib.pyplot as plt
3 |
4 | # Sample dataset (replace with your own dataset)
5 | data = {
6 | 'Student_ID': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
7 | 'Score': [85, 92, 78, 60, 95, 88, 72, 65, 90, 82],
8 | 'Age': [18, 19, 20, 18, 21, 20, 19, 18, 22, 21],
9 | 'Study_Hours': [4, 6, 3, 2, 7, 5, 2, 3, 6, 4]
10 | }
11 |
12 | # Create a DataFrame from the dataset
13 | df = pd.DataFrame(data)
14 |
15 | # Calculate summary statistics
16 | score_mean = df['Score'].mean()
17 | score_median = df['Score'].median()
18 | score_std = df['Score'].std()
19 |
20 | study_hours_mean = df['Study_Hours'].mean()
21 | study_hours_median = df['Study_Hours'].median()
22 | study_hours_std = df['Study_Hours'].std()
23 |
24 | # Visualize distribution using histograms
25 | plt.figure(figsize=(10, 6))
26 |
27 | plt.subplot(1, 2, 1)
28 | plt.hist(df['Score'], bins=10, edgecolor='black', alpha=0.7)
29 | plt.xlabel('Score')
30 | plt.ylabel('Frequency')
31 | plt.title('Distribution of Exam Scores')
32 |
33 | plt.subplot(1, 2, 2)
34 | plt.hist(df['Study_Hours'], bins=10, edgecolor='black', alpha=0.7)
35 | plt.xlabel('Study Hours')
36 | plt.ylabel('Frequency')
37 | plt.title('Distribution of Study Hours')
38 |
39 | plt.tight_layout()
40 | plt.show()
41 |
42 | # Display summary statistics
43 | print("Summary Statistics for Exam Scores:")
44 | print("Mean:", score_mean)
45 | print("Median:", score_median)
46 | print("Standard Deviation:", score_std)
47 |
48 | print("\nSummary Statistics for Study Hours:")
49 | print("Mean:", study_hours_mean)
50 | print("Median:", study_hours_median)
51 | print("Standard Deviation:", study_hours_std)
52 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 15 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Bootstrap Form Example
7 |
8 |
9 |
10 |
11 |
Bootstrap Form Example
12 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 15 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Created a simple web page with a form using Bootstrap classes for styling. The form includes fields for first name, last name, and email, along with a submit button.
2 |
3 |
4 |
5 | Bootstrap Example
6 |
7 |
8 |
9 |
10 |
11 |
Bootstrap Form Example
12 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 25 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | : To create an employee management system using Python and MySQL
2 | Step 1) Download and install MySQL8
3 | https://dev.mysql.com/downloads/windows/installer/8.0.html
4 | Step 2) Run MySQL workbench
5 | Step 3) Open the command line terminal
6 | >cmd
7 | Step 4) Install MySQL connector
8 | >python -m pip install mysql-connector-python
9 | Step 5) Test mysql connector
10 | >import mysql.connector
11 | Step 6) Create a .py file and write code and execute the respective .py file from the command line
12 | cmd
13 | cd desktop
14 | python filename.py
15 | //Create Database
16 | import mysql.connector
17 | mydb = mysql.connector.connect(
18 | host="localhost",
19 | user="root",
20 | password="Yogesh786@"
21 | )
22 | mycursor = mydb.cursor()
23 | mycursor.execute("CREATE DATABASE mydatabase")
24 | print(mydb)
25 |
26 | //Create table
27 | mycursor.execute("CREATE TABLE customers (name VARCHAR(255), address VARCHAR(255))")
28 |
29 | //Insert employees
30 |
31 | sql = "INSERT INTO customers (name, address) VALUES (%s, %s)"
32 | val = ("John", "Highway 21")
33 | mycursor.execute(sql, val)
34 | mydb.commit()
35 | print(mycursor.rowcount, "record inserted.")
36 |
37 | //Display employees
38 | mycursor.execute("SELECT * FROM customers")
39 | myresult = mycursor.fetchall()
40 | for x in myresult:
41 | print(x)
42 |
43 |
44 | //Display name of employees
45 | mycursor.execute("SELECT name FROM customers")
46 | myresult = mycursor.fetchall()
47 | for x in myresult:
48 | print(x)
49 |
50 | //Delete employees
51 | sql = "DELETE FROM customers WHERE address = 'Highway 21'"
52 | mycursor.execute(sql)
53 | mydb.commit()
54 | print(mycursor.rowcount, "record(s) deleted")
55 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 13 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery User Experience
7 |
8 |
39 |
40 |
41 |
jQuery User Experience
42 |
43 |
44 |
Mouse
45 |
Elephant
46 |
Giraffe
47 |
48 |
49 |
50 |
This paragraph can be toggled.
51 |
52 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 7 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | /* Reset some default styling */
2 | body, h1, h2, h3, p {
3 | margin: 0;
4 | padding: 0;
5 | }
6 |
7 | /* Global styles */
8 | body {
9 | font-family: Arial, sans-serif;
10 | background-color: #f5f5f5;
11 | }
12 |
13 | .container {
14 | max-width: 1200px;
15 | margin: 0 auto;
16 | padding: 20px;
17 | }
18 |
19 | /* Header styles */
20 | header {
21 | background-image: url('hero-image.jpg');
22 | background-size: cover;
23 | background-position: center;
24 | height: 100vh;
25 | display: flex;
26 | justify-content: center;
27 | align-items: center;
28 | color: white;
29 | text-align: center;
30 | }
31 |
32 | /* Navigation styles */
33 | nav {
34 | background-color: #333;
35 | padding: 10px 0;
36 | text-align: center;
37 | }
38 |
39 | nav a {
40 | text-decoration: none;
41 | color: white;
42 | padding: 10px 20px;
43 | transition: background-color 0.3s;
44 | }
45 |
46 | nav a:hover {
47 | background-color: #555;
48 | }
49 |
50 | /* Main content styles */
51 | .main-content {
52 | display: grid;
53 | grid-template-columns: repeat(3, 1fr);
54 | gap: 20px;
55 | padding: 40px;
56 | }
57 |
58 | .product-image {
59 | max-width: 100%;
60 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
61 | transition: transform 0.3s ease-in-out;
62 | }
63 |
64 | .product-image:hover {
65 | transform: scale(1.05);
66 | }
67 |
68 | /* Gradient section styles */
69 | .gradient-section {
70 | background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
71 | padding: 40px;
72 | text-align: center;
73 | }
74 |
75 | /* Responsive styles */
76 | @media screen and (max-width: 768px) {
77 | .main-content {
78 | grid-template-columns: 1fr;
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 6 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Import Sample Super Store Data Set:
2 | Open Power BI Desktop and click on the "Home" tab in the top menu. Select "Get Data" and choose the appropriate source to import the Sample Super Store data. Follow the steps to load the data into Power BI.
3 |
4 | Create a Waterfall Chart Visualization:
5 |
6 | Go to the "Visualizations" pane on the right side of the screen.
7 | Click on the "Waterfall chart" icon to create a new Waterfall chart visualization.
8 | Configure the Waterfall Chart:
9 |
10 | Drag the "Order Date" column from the "Fields" pane to the "Axis" field well of the Waterfall chart visualization. This will set up the timeline axis for your Waterfall chart.
11 | Drag the "Sales" Column:
12 |
13 | Drag the "Sales" column to the "Values" field well of the Waterfall chart visualization. This will show the sales data over time.
14 | Review the Waterfall Chart:
15 |
16 | You should now see the Waterfall chart displaying how sales happened over different months. The chart will show increases and decreases in sales and provide a visual representation of the changes.
17 | Customize the Chart (Optional):
18 |
19 | You can customize the appearance of the chart using the "Format" options available in the "Visualizations" pane. You can change colors, labels, and other display settings.
20 | Data Model and Visualizations:
21 |
22 | In addition to the Waterfall chart, you can use other visualizations to analyze your data and gain insights.
23 | Save Your Work:
24 |
25 | Remember to save your Power BI project to keep your visualizations and progress.
26 | Publish and Share:
27 |
28 | If you're working collaboratively or want to share insights, you can publish your Power BI report to the Power BI service.
29 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 5 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Import Sample Super Store Data Set:
2 | Open Power BI Desktop and click on the "Home" tab in the top menu. Select "Get Data" and choose the appropriate source to import the Sample Super Store data. Follow the steps to load the data into Power BI.
3 |
4 | Create a Pie Chart Visualization:
5 |
6 | Go to the "Visualizations" pane on the right side of the screen.
7 | Click on the "Pie chart" icon to create a new Pie chart visualization.
8 | Configure the Pie Chart:
9 |
10 | Drag the "Segment" column from the "Fields" pane to the "Values" field well of the Pie chart visualization. This will set up the segments for your Pie chart.
11 | Apply Data Aggregation:
12 |
13 | By default, the Pie chart will display the count of occurrences for each segment. If you want to visualize sales, you need to aggregate the sales values for each segment. You can do this by dragging the "Sales" column to the "Values" field well as well.
14 | Review the Pie Chart:
15 |
16 | You should now see the Pie chart displaying the sales for each segment. Each segment will have a slice proportional to its sales value.
17 | Customize the Chart (Optional):
18 |
19 | You can further customize the appearance of the chart using the "Format" options available in the "Visualizations" pane. You can change colors, labels, and other display settings.
20 | Data Model and Visualizations:
21 |
22 | In addition to the Pie chart, you can also use other visualizations to analyze your data and gain insights.
23 | Save Your Work:
24 |
25 | Remember to save your Power BI project to keep your visualizations and progress.
26 | Publish and Share:
27 |
28 | If you're working collaboratively or want to share insights, you can publish your Power BI report to the Power BI service.
29 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Unit 5/src/Index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 | Design a simple HTML page that showcases the usage of jQuery selectors. Include a paragraph element with the text "This is a paragraph." Beneath it, add a button labeled "Change Color." When the button is clicked, the background color and text color of the paragraph should toggle between their default state and a selected state. Utilize jQuery to target the elements and handle the click event.
10 |
11 |
12 |
13 | jQuery Selector Example
14 |
15 |
22 |
23 |
24 |
25 |
jQuery Selector Example
26 |
This is a paragraph.
27 |
28 |
29 |
30 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 24 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import mysql.connector
2 |
3 | # Database configuration
4 | db_config = {
5 | 'user': 'your_username',
6 | 'password': 'your_password',
7 | 'host': 'localhost',
8 | 'database': 'library_db',
9 | }
10 |
11 | # Create a connection to the database
12 | conn = mysql.connector.connect(**db_config)
13 |
14 | # Create a cursor
15 | cursor = conn.cursor()
16 |
17 | # CREATE - Insert a new book
18 | def create_book(title, author, publication_date, isbn):
19 | query = "INSERT INTO books (title, author, publication_date, isbn) VALUES (%s, %s, %s, %s)"
20 | values = (title, author, publication_date, isbn)
21 | cursor.execute(query, values)
22 | conn.commit()
23 |
24 | # READ - Get all books
25 | def get_all_books():
26 | query = "SELECT * FROM books"
27 | cursor.execute(query)
28 | return cursor.fetchall()
29 |
30 | # UPDATE - Update a book's title by ISBN
31 | def update_book_title(isbn, new_title):
32 | query = "UPDATE books SET title = %s WHERE isbn = %s"
33 | values = (new_title, isbn)
34 | cursor.execute(query, values)
35 | conn.commit()
36 |
37 | # DELETE - Delete a book by ISBN
38 | def delete_book(isbn):
39 | query = "DELETE FROM books WHERE isbn = %s"
40 | values = (isbn,)
41 | cursor.execute(query, values)
42 | conn.commit()
43 |
44 | # Test the CRUD operations
45 | create_book("Sample Book", "John Doe", "2023-08-01", "1234567890")
46 | print("Books after creation:", get_all_books())
47 |
48 | update_book_title("1234567890", "Updated Book Title")
49 | print("Books after update:", get_all_books())
50 |
51 | delete_book("1234567890")
52 | print("Books after deletion:", get_all_books())
53 |
54 | # Close cursor and connection
55 | cursor.close()
56 | conn.close()
57 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 24 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Create a database in MySQL and create an employee table and perform CURD operations
2 | Creating Database
3 | Create a Database:You can create a new database using the following SQL command:
4 | CREATE DATABASE new_db;
5 | Use the Database: After creating the database, you need to use it to perform operations within it:
6 | USE new_db;
7 | Create Tables and Start Programming: Now that you have the database set up, you can create tables and start programming with SQL queries.
8 |
9 | 1. Create an employee table and insert values
10 |
11 |
12 | CREATE TABLE employee (
13 | emp_id INT PRIMARY KEY,
14 | emp_name VARCHAR(50),
15 | job_name VARCHAR(50),
16 | manager_id INT,
17 | hire_date DATE,
18 | salary DECIMAL(10, 2),
19 | commission DECIMAL(10, 2),
20 | dep_id INT
21 | );
22 |
23 | INSERT INTO employee (emp_id, emp_name, job_name, manager_id, hire_date, salary, commission, dep_id)
24 | VALUES
25 | (1, 'John Doe', 'Manager', NULL, '2020-01-15', 5000.00, NULL, 1),
26 | (2, 'Jane Smith', 'Developer', 1, '2021-05-10', 4000.00, 500.00, 1),
27 | (3, 'Michael Johnson', 'Analyst', 1, '2019-11-30', 3500.00, NULL, 2),
28 | (4, 'Emily Brown', 'Designer', 2, '2022-02-20', 4200.00, 200.00, 2);
29 |
30 | select * from employee;
31 |
32 | 2. SQL query to find employees who joined before 2020 and return their complete information: Assuming you have a hire_date column in the format 'YYYY-MM-DD', you can use the following SQL query to find employees who joined before 2020:
33 | SELECT * FROM employee WHERE hire_date < '2020-01-01';
34 |
35 |
36 | 3. Update the salary of a particular employee
37 | UPDATE employee SET salary = 6000.00 WHERE emp_id = 3;
38 | select * from employee;
39 |
40 |
41 | 4. Delete the details of particular employee
42 | DELETE FROM employee WHERE emp_id = 4;
43 | select * from employee;
44 |
45 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 10 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Web Page Example
7 |
60 |
61 |
62 |
Web Page Example
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 2 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Import Sample Super Store Data:
2 | Open Power BI Desktop and click on the "Home" tab in the top menu. Select "Get Data" and choose the appropriate source to import the Sample Super Store data. Follow the steps to load the data into Power BI.
3 |
4 | Open Power Query Editor (PQE):
5 | Once the data is loaded, you'll be able to see the data preview. Click on the "Edit Queries" button to open Power Query Editor.
6 |
7 | Review Column Data Types:
8 | In Power Query Editor, you'll see a list of columns and their data types. Each column has an associated data type that Power BI has automatically detected based on the imported data.
9 |
10 | Change Data Types:
11 | To change the data type of a column:
12 |
13 | Select the column you want to modify.
14 | Right-click on the column header and choose "Change Type."
15 | From the dropdown, select the desired data type.
16 | Review and Confirm Changes:
17 | After changing the data type, you'll see a preview of the changes in the right panel. Review the changes and make sure they align with your data and analysis needs.
18 |
19 | Apply Changes:
20 | Once you're satisfied with the changes, click the "Close & Apply" button in the upper-left corner of Power Query Editor. This will apply the changes to the loaded data.
21 |
22 | Back to Report View:
23 | You'll be returned to the Power BI report view. The changes you made in Power Query Editor will be reflected in your report.
24 |
25 | Data Model and Visualizations:
26 | You can now use the corrected data types in your data model and create visualizations in the report view.
27 |
28 | Save Your Work:
29 | Remember to save your Power BI project to keep the changes and your progress.
30 |
31 | Publish and Share:
32 | If you're working collaboratively or want to share insights, you can publish your Power BI report to the Power BI service.
33 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/JS DOM:
--------------------------------------------------------------------------------
1 | Develop a dynamic webpage with various event-driven interactions as follows:
2 |
3 | Design a button that, when clicked, toggles the visibility of a hidden message on the webpage.
4 | Develop a paragraph element that changes its text content when a user hovers over it.
5 | Implement a basic animated square that moves horizontally and reverses direction when reaching the edges of its container using CSS keyframes and JavaScript.
6 |
7 |
8 |
9 |
10 |
11 |
12 | Interactive Web Page
13 |
28 |
29 |
30 |
31 |
32 |
33 |
Hover over me
34 |
35 |
36 |
37 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 3/Lab 25 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | import mysql.connector
2 |
3 | # Database configuration
4 | db_config = {
5 | 'user': 'your_username',
6 | 'password': 'your_password',
7 | 'host': 'localhost',
8 | 'database': 'library_db',
9 | }
10 |
11 | # Create a connection to the database
12 | conn = mysql.connector.connect(**db_config)
13 |
14 | # Create a cursor
15 | cursor = conn.cursor()
16 |
17 | # CREATE - Insert a new book
18 | def create_book(title, author, publication_year):
19 | query = "INSERT INTO books (title, author, publication_year) VALUES (%s, %s, %s)"
20 | values = (title, author, publication_year)
21 | cursor.execute(query, values)
22 | conn.commit()
23 | print("Book added successfully.")
24 |
25 | # READ - Get all books
26 | def get_all_books():
27 | query = "SELECT * FROM books"
28 | cursor.execute(query)
29 | return cursor.fetchall()
30 |
31 | # UPDATE - Update a book's information
32 | def update_book(book_id, title, author, publication_year):
33 | query = "UPDATE books SET title = %s, author = %s, publication_year = %s WHERE id = %s"
34 | values = (title, author, publication_year, book_id)
35 | cursor.execute(query, values)
36 | conn.commit()
37 | print("Book updated successfully.")
38 |
39 | # DELETE - Delete a book by ID
40 | def delete_book(book_id):
41 | query = "DELETE FROM books WHERE id = %s"
42 | values = (book_id,)
43 | cursor.execute(query, values)
44 | conn.commit()
45 | print("Book deleted successfully.")
46 |
47 | # Test the CRUD operations
48 | create_book("Sample Book", "John Doe", 2023)
49 | print("Books after creation:", get_all_books())
50 |
51 | update_book(1, "Updated Book Title", "Jane Smith", 2022)
52 | print("Books after update:", get_all_books())
53 |
54 | delete_book(1)
55 | print("Books after deletion:", get_all_books())
56 |
57 | # Close cursor and connection
58 | cursor.close()
59 | conn.close()
60 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 3 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Import Sample Super Store Data:
2 | Open Power BI Desktop and click on the "Home" tab in the top menu. Select "Get Data" and choose the appropriate source to import the Sample Super Store data. Follow the steps to load the data into Power BI.
3 |
4 | Open Power Query Editor (PQE):
5 | Once the data is loaded, you'll be able to see the data preview. Click on the "Edit Queries" button to open Power Query Editor.
6 |
7 | Review Columns:
8 | In Power Query Editor, you'll see a list of columns. Review the columns to identify whether any columns need to be combined to achieve your analysis goals.
9 |
10 | Combine Columns:
11 | To combine columns, you can use the following steps:
12 |
13 | Select the "Add Column" tab in Power Query Editor.
14 | Choose a column combining operation that suits your needs, such as merging text columns or performing mathematical operations on numeric columns.
15 | Follow the prompts to select the columns and define the combining logic.
16 | Review and Confirm Changes:
17 | After combining columns, you'll see a preview of the changes in the right panel. Review the changes and make sure they align with your data and analysis needs.
18 |
19 | Apply Changes:
20 | Once you're satisfied with the column combining changes, click the "Close & Apply" button in the upper-left corner of Power Query Editor. This will apply the changes to the loaded data.
21 |
22 | Back to Report View:
23 | You'll be returned to the Power BI report view. The changes you made in Power Query Editor will be reflected in your report.
24 |
25 | Data Model and Visualizations:
26 | You can now use the combined columns in your data model and create visualizations in the report view.
27 |
28 | Save Your Work:
29 | Remember to save your Power BI project to keep the changes and your progress.
30 |
31 | Publish and Share:
32 | If you're working collaboratively or want to share insights, you can publish your Power BI report to the Power BI service.
33 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 16 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Portfolio
7 |
8 |
33 |
34 |
35 |
We offer a wide range of services to meet your needs.
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 8 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | mport Data Sets:
2 |
3 | Import the Products, Sales, and Stores CSV datasets into Power BI using the "Get Data" option.
4 | Ensure that each dataset is properly loaded as a table.
5 | Understand the Data Sets:
6 |
7 | Review the structure and content of each dataset to understand the columns and their meanings.
8 | Identify common columns that can be used to establish relationships between datasets (e.g., Product ID, Store ID).
9 | Create Relationships:
10 |
11 | Navigate to the "Model" view in Power BI to create relationships between the datasets.
12 | Drag and drop the common columns (e.g., Product ID, Store ID) from one table to another to create relationships.
13 | Establish relationships such as:
14 | Products table linked to Sales table via Product ID.
15 | Stores table linked to Sales table via Store ID.
16 | Check Relationship Cardinality and Cross-Filtering:
17 |
18 | Ensure that the relationship cardinality (one-to-one, one-to-many, many-to-one, many-to-many) is set correctly based on the data.
19 | Configure cross-filtering options to define how filtering in one table affects related tables.
20 | Create Measures:
21 |
22 | In the "Model" view, define calculated measures that involve columns from multiple tables. Use DAX expressions to create these measures.
23 | Examples: Total Sales, Average Profit, Total Sales by Store, etc.
24 | Design Visualizations:
25 |
26 | Switch to the "Report" view to create visualizations using the combined data model.
27 | Create charts, tables, and visuals that leverage the relationships and measures you defined.
28 | Dashboard Creation (Optional):
29 |
30 | If desired, create a dashboard to showcase key insights from your combined data model.
31 | Add visuals and interactivity to the dashboard to facilitate data exploration.
32 | Testing and Validation:
33 |
34 | Test the data model's functionality and ensure that measures and visuals provide accurate results.
35 | Validate that cross-filtering and slicing work as expected.
36 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 1 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Ex. 1 - Developing a personal blog web page with html form elements.
2 |
3 |
4 |
5 |
6 |
7 | Example HTML Elements
8 |
9 |
10 |
11 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 4 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Import Employee Data Set:
2 | Open Power BI Desktop and click on the "Home" tab in the top menu. Select "Get Data" and choose the appropriate source to import the Employee data set. Follow the steps to load the data into Power BI.
3 |
4 | Open Power Query Editor (PQE):
5 | Once the data is loaded, you'll be able to see the data preview. Click on the "Edit Queries" button to open Power Query Editor.
6 |
7 | Add Deductions Column:
8 | To create a new "deductions" column:
9 |
10 | Select the "Add Column" tab in Power Query Editor.
11 | Choose "Custom Column" to create a new column with custom logic.
12 | Enter a name for the column (e.g., "Deductions").
13 | In the formula section, enter the following formula to extract the first three characters of the "Salary" column:
14 | Click "OK" to add the new column with the first three characters of the salary.
15 | Calculate Net Salary:
16 | To calculate the net salary:
17 |
18 | Select the "Add Column" tab again.
19 | Choose "Custom Column" to create another new column.
20 | Enter a name for the column (e.g., "Net Salary").
21 | In the formula section, enter the following formula to subtract the "Deductions" column from the "Salary" column:
22 |
23 | Apply Changes:
24 | Once you've added the "Deductions" and "Net Salary" columns, click the "Close & Apply" button in the upper-left corner of Power Query Editor. This will apply the changes to the loaded data.
25 |
26 | Back to Report View:
27 | You'll be returned to the Power BI report view. The new columns you added in Power Query Editor will be available in your dataset.
28 |
29 | Data Model and Visualizations:
30 | You can now use the "Deductions" and "Net Salary" columns in your data model and create visualizations in the report view.
31 |
32 | Save Your Work:
33 | Remember to save your Power BI project to keep the changes and your progress.
34 |
35 | Publish and Share:
36 | If you're working collaboratively or want to share insights, you can publish your Power BI report to the Power BI service.
37 |
38 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 10 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Creating a JavaScript program that showcases various control structures
2 |
3 |
4 |
5 | Control Structures in JavaScript
6 |
7 |
8 |
9 |
If Statement
10 |
11 |
12 |
13 |
14 |
For Loop
15 |
16 |
17 |
18 |
19 |
While Loop
20 |
21 |
22 |
23 |
24 |
Switch Statement
25 |
26 |
27 |
28 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 1/Lab 3 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Python program that demonstrates the use of various operators:
2 |
3 | # Arithmetic operators
4 | num1 = 10
5 | num2 = 5
6 |
7 | addition = num1 + num2
8 | subtraction = num1 - num2
9 | multiplication = num1 * num2
10 | division = num1 / num2
11 | modulo = num1 % num2
12 | exponentiation = num1 ** num2
13 |
14 | print("Arithmetic Operators:")
15 | print("Addition:", addition)
16 | print("Subtraction:", subtraction)
17 | print("Multiplication:", multiplication)
18 | print("Division:", division)
19 | print("Modulo:", modulo)
20 | print("Exponentiation:", exponentiation)
21 |
22 | # Comparison operators
23 | x = 7
24 | y = 3
25 |
26 | equal = x == y
27 | not_equal = x != y
28 | greater_than = x > y
29 | less_than = x < y
30 | greater_than_equal = x >= y
31 | less_than_equal = x <= y
32 |
33 | print("\nComparison Operators:")
34 | print("Equal:", equal)
35 | print("Not Equal:", not_equal)
36 | print("Greater Than:", greater_than)
37 | print("Less Than:", less_than)
38 | print("Greater Than or Equal:", greater_than_equal)
39 | print("Less Than or Equal:", less_than_equal)
40 |
41 | # Logical operators
42 | p = True
43 | q = False
44 |
45 | logical_and = p and q
46 | logical_or = p or q
47 | logical_not_p = not p
48 | logical_not_q = not q
49 |
50 | print("\nLogical Operators:")
51 | print("Logical AND:", logical_and)
52 | print("Logical OR:", logical_or)
53 | print("Logical NOT p:", logical_not_p)
54 | print("Logical NOT q:", logical_not_q)
55 |
56 | # Assignment operators
57 | a = 10
58 | b = 5
59 |
60 | a += b
61 | print("\nAssignment Operators:")
62 | print("a += b (a = a + b):", a)
63 |
64 | # Bitwise operators
65 | num3 = 10
66 | num4 = 6
67 |
68 | bitwise_and = num3 & num4
69 | bitwise_or = num3 | num4
70 | bitwise_xor = num3 ^ num4
71 | bitwise_not_num3 = ~num3
72 | left_shift = num3 << 2
73 | right_shift = num3 >> 1
74 |
75 | print("\nBitwise Operators:")
76 | print("Bitwise AND:", bitwise_and)
77 | print("Bitwise OR:", bitwise_or)
78 | print("Bitwise XOR:", bitwise_xor)
79 | print("Bitwise NOT num3:", bitwise_not_num3)
80 | print("Left Shift:", left_shift)
81 | print("Right Shift:", right_shift)
82 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 1 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Prepare Your Data Source:
2 | Save a Text/CSV file containing your data on your local drive. Make sure the data is structured with appropriate headers.
3 |
4 | Open Power BI Desktop:
5 | Launch Power BI Desktop on your computer.
6 |
7 | Home Tab:
8 | In Power BI Desktop, click on the "Home" tab located in the top menu.
9 |
10 | Get Data:
11 | Click on the "Get Data" dropdown arrow in the "Home" tab.
12 |
13 | Text/CSV Option:
14 | Select "Text/CSV" from the list of available data source options. A file selection dialog will appear.
15 |
16 | Select Your File:
17 | Browse your local drive and select the Text/CSV file you prepared. Click the "Import" button.
18 |
19 | Import Settings:
20 | A window will appear with import settings:
21 |
22 | Delimiter: Specify the delimiter used in your CSV file (e.g., comma, semicolon).
23 | Encoding: Choose the appropriate character encoding for your file.
24 | Data Type Detection: Power BI can automatically detect data types, but you can also manually adjust them.
25 | First Row as Headers: Ensure this option is checked if your first row contains column headers.
26 | Preview and Load Data:
27 | After configuring the import settings, click the "Load" button. Power BI will display a preview of your data.
28 |
29 | Data Transformation (Optional):
30 | You can perform data transformations using the Power Query Editor before loading the data. Click on the "Edit" button to open the editor. Here, you can filter, reshape, clean, and transform the data as needed.
31 |
32 | Load Data:
33 | If you're satisfied with the preview and any data transformations, click the "Load" button to import the data into Power BI.
34 |
35 | Data Model and Visualization:
36 | Once the data is loaded, you can start building your data model and create visualizations in the report view.
37 |
38 | Save Your Work:
39 | Remember to save your Power BI project so you can come back to it later for edits and updates.
40 |
41 | Publish and Share:
42 | If desired, you can publish your Power BI report to the Power BI service, making it accessible to others. This enables collaboration and sharing insights.
43 |
44 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 12 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jQuery Interactivity
7 |
8 |
42 |
43 |
44 |
jQuery Interactivity
45 |
46 |
47 |
48 |
This is some text that can be toggled.
49 |
50 |
51 |
52 |
53 |
54 |
Click me to expand and collapse!
55 |
Additional content here...
56 |
More content...
57 |
58 |
59 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 11 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | A JavaScript program that demonstrates the usage of events and animations.
2 | use JavaScript to detect a button click and display a message when the button is clicked.
3 | detect when a user hovers over a paragraph element and change its text content.
4 | example of an animated box that moves horizontally and reverses its direction using CSS keyframes and JavaScript.
5 |
6 |
7 |
8 |
9 | JavaScript Events and Animations
10 |
28 |
29 |
30 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 2 Ex. 1 Solved:
--------------------------------------------------------------------------------
1 | Ex. 1: An HTML page that provides information about a training organization, including its services, courses, and contact details.
2 |
3 |
4 |
5 |
6 | Training Organization - Edunet Foundation
7 |
8 |
9 |
10 |
11 |
Welcome to Edunet Foundation
12 |
Your Path to Success Begins Here
13 |
14 |
15 |
16 |
22 |
23 |
24 |
25 |
About Us
26 |
Edunet Foundation is a leading training organization that specializes in providing high-quality courses in various fields, including technology and personal development.
27 |
28 |
29 |
30 |
31 |
Our Courses
32 |
33 |
Web Development
34 |
Data Science
35 |
Machine Learning
36 |
Cyber Security
37 |
Blockchain
38 |
39 |
40 |
41 |
42 |
43 |
Our Services
44 |
We offer a range of services, including:
45 |
46 |
Customized Corporate Training
47 |
Online Learning Platforms
48 |
Career Counseling
49 |
Workshops and Seminars
50 |
51 |
52 |
53 |
54 |
55 |
Contact Us
56 |
If you have any questions or inquiries, please feel free to contact us:
57 |
Email: info@edunetfoundation.org
58 |
Phone: (123) 456-7890
59 |
60 |
61 |
62 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/TNSDC/PhP/PhP Lab 3 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Design a PHP program to model a BankAccount class. The class should have attributes such as accountNumber, accountHolder, and balance. Implement methods for depositing and withdrawing money, and ensure that the balance is updated accordingly. Create instances of the BankAccount class, perform deposit and withdrawal operations, and display the updated balance for each account.
2 |
3 | accountNumber = $accountNumber;
13 | $this->accountHolder = $accountHolder;
14 | $this->balance = $balance;
15 | }
16 |
17 | // Method to deposit money
18 | public function deposit($amount) {
19 | if ($amount > 0) {
20 | $this->balance += $amount;
21 | echo "Deposited $amount. New balance: $this->balance\n";
22 | } else {
23 | echo "Invalid deposit amount\n";
24 | }
25 | }
26 |
27 | // Method to withdraw money
28 | public function withdraw($amount) {
29 | if ($amount > 0 && $amount <= $this->balance) {
30 | $this->balance -= $amount;
31 | echo "Withdrawn $amount. New balance: $this->balance\n";
32 | } else {
33 | echo "Invalid withdrawal amount\n";
34 | }
35 | }
36 |
37 | // Method to display account information
38 | public function displayInfo() {
39 | echo "Account Number: $this->accountNumber\n";
40 | echo "Account Holder: $this->accountHolder\n";
41 | echo "Balance: $this->balance\n\n";
42 | }
43 | }
44 |
45 | // Creating instances of BankAccount
46 | $account1 = new BankAccount(123456, "John Doe", 1000);
47 | $account2 = new BankAccount(789012, "Jane Smith", 500);
48 |
49 | // Performing operations and displaying information
50 | $account1->displayInfo();
51 | $account1->deposit(200);
52 | $account1->withdraw(50);
53 | $account1->displayInfo();
54 |
55 | $account2->displayInfo();
56 | $account2->withdraw(100);
57 | $account2->displayInfo();
58 | ?>
59 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 3 Ex. 1 Solved:
--------------------------------------------------------------------------------
1 | Ex. 1: Developing a personal blog website using HTML5. Your blog will cover various details. You want to ensure that your website is well-structured, accessible, and visually appealing. Provide the HTML code for creating the main structure of a blog post, incorporating semantic elements, headings, images, and links.
2 |
3 | HTML code:
4 |
5 |
6 |
7 |
8 |
9 | My Blog Post
10 |
11 |
12 |
13 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 14 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Design an HTML document that contains three sections, each demonstrating a different aspect of DOM manipulation and event handling using JavaScript.
2 | 1. "DOM Manipulation" section, there is a button and a paragraph. Button's event listener is there and it changes the text content of the paragraph when clicked.
3 | 2. "Creating Elements" section, there should be a button and an unordered list. The event listener attached to the addButton creates a new list item and appends it to the itemList when clicked.
4 | 3. Display the button effect by clicking the button.
5 |
6 |
7 |
8 | Handling DOM using JavaScript
9 |
10 |
11 |
46 |
47 |
48 |
49 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/Building Advanced Data Analytics/Module 3/Lab 7 Ex.2 Practice Question Solution:
--------------------------------------------------------------------------------
1 | Import Sample Super Store Data Set:
2 | Open Power BI Desktop and import the Sample Super Store data set using the "Get Data" option. Load the necessary tables, such as "Orders," "Returns," "Products," and others.
3 |
4 | Data Transformation and Cleansing:
5 | Use Power Query Editor to perform data transformations and cleansing as needed. Merge relevant tables, handle missing data, and create calculated columns (e.g., Profit, Sales, etc.).
6 |
7 | Create Measures:
8 | In the "Model" view, define measures that you'll need for the dashboard, such as total sales, total profit, profit margin, etc. Use DAX (Data Analysis Expressions) language to create these measures.
9 |
10 | Design Visualizations:
11 | In the "Report" view, create various visualizations that contribute to the profit analysis:
12 |
13 | Sales and Profit Over Time: Line charts showing the trend of sales and profit over months or years.
14 | Category-wise Profit: Bar chart showing profit distribution by product categories.
15 | Top Products: Table or visual showing the top-selling products based on profit or sales.
16 | Profit Margin: Gauge chart or KPI card showing the current profit margin.
17 | Geographic Analysis: Map visual depicting sales and profit across different regions.
18 | Customer Segment Analysis: Pie or bar chart showing profit contribution by customer segments.
19 | Design the Dashboard:
20 |
21 | Create a new dashboard in Power BI by clicking on the "New Dashboard" button.
22 | Add the visualizations you created to the dashboard canvas. Arrange them to create an intuitive flow of information.
23 | Interactivity and Slicers:
24 |
25 | Enhance the dashboard's interactivity by adding slicers. Slicers allow users to filter the data dynamically based on selected criteria (e.g., time period, region, category).
26 | Connect slicers to multiple visualizations to provide consistent filtering.
27 | Add Textboxes and Images:
28 |
29 | Use textboxes to provide context, explanations, or insights about the data and visualizations.
30 | Add images, logos, or relevant icons to enhance the visual appeal of the dashboard.
31 | Drill-Through and Cross-Filtering (Optional):
32 |
33 | Set up drill-through actions to enable users to explore detailed data behind specific data points.
34 | Utilize cross-filtering to highlight related data points when interacting with a visualization.
35 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/Django Practical 2:
--------------------------------------------------------------------------------
1 | Develop a Django view and template for user registration in an online forum application. Create a view named register_user that handles user registration using the built-in UserCreationForm. Design a corresponding template, register_user.html, to render the registration form with fields for a unique username, email, and password. Ensure proper validation for input fields and display error messages for any invalid submissions.
2 |
3 |
4 | # views.py
5 | from django.shortcuts import render, redirect
6 | from django.contrib.auth.forms import UserCreationForm
7 |
8 | def register_user(request):
9 | if request.method == 'POST':
10 | form = UserCreationForm(request.POST)
11 | if form.is_valid():
12 | form.save()
13 | return redirect('login') # Redirect to login page upon successful registration
14 | else:
15 | form = UserCreationForm()
16 | return render(request, 'registration/register_user.html', {'form': form})
17 |
18 |
19 | {% extends 'base.html' %}
20 |
21 | {% block content %}
22 |
Explore our initiatives dedicated to promoting environmental sustainability...
28 |
29 |
30 |
31 |
32 |
Upcoming Events
33 |
Check out our upcoming events and join us in spreading environmental awareness...
34 |
35 |
36 |
37 |
38 |
Volunteer Opportunities
39 |
Get involved! Discover ways you can contribute to our environmental efforts...
40 |
41 |
42 |
43 |
44 |
45 |
54 |
55 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/TNSDC/Self Paced/CSS 2:
--------------------------------------------------------------------------------
1 |
2 | Develop an HTML document that includes a contact form. Your task is to style the contact form using CSS properties to achieve the following:
3 |
4 | Set a background color for the form container.
5 | Align form elements horizontally for a cohesive layout.
6 | Apply margin and padding to enhance spacing within the form.
7 | Change the text color and font properties for a visually appealing design.
8 | Add a border or box-shadow effect to give the form a distinct appearance.
9 |
10 |
11 |
12 |
13 |
14 |
15 | Contact Form Styling
16 |
61 |
62 |
63 |
64 |
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 17 Ex.1 Solved:
--------------------------------------------------------------------------------
1 | Build a web page using Bootstrap's container and card components to showcase product information. Apply custom CSS properties to style the cards with a unique background color, adjust the text color, and add padding to the content area. Additionally, ensure that the cards have a slight shadow to create a subtle visual effect.
2 |
3 |
4 |
5 | Styled Cards with Bootstrap
6 |
7 |
8 |
9 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
Item 1
35 |
High-quality and innovative.
36 |
37 |
38 |
39 |
40 |
41 |
42 |
Item 2
43 |
Elegance and functionality combined.
44 |
45 |
46 |
47 |
48 |
49 |
50 |
Item 3
51 |
The ultimate solution for your needs.
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/Full Stack Development with Cloud/Module 2/Lab 5 Ex. 1 Solved:
--------------------------------------------------------------------------------
1 | An HTML page that includes CSS properties applied to different elements.
2 |
3 |
4 |
5 |
6 | CSS Properties Example
7 |
51 |
52 |
53 |
54 |
55 |
CSS Properties Example
56 |
Exploring Different CSS Properties
57 |
58 |
59 |
60 |
66 |
67 |
68 |
69 |
About CSS Properties
70 |
CSS properties control the appearance and layout of HTML elements.
71 |
72 |
Property Examples
73 |
74 |
This is an example of the font-family property.
75 |
This is an example of the background-color property.
76 |
This is an example of the color property.
77 |
This is an example of the text-align property.
78 |
This is an example of the padding property.
79 |
This is an example of the list-style-type property.