The document contains code for a library management system using CSV files and Pandas library in Python. It includes functions to add, search, delete members and books. Functions are also included to issue books to members, return books, and view reports on books and issued books. Charts can also be generated to view book costs or number of books issued by members.
The document discusses Python programming concepts like if statements, if-else statements, nested if statements, loops (for, while), lists, strings, tuples, dictionaries, file handling, and connecting Python to MySQL. It contains 37 programs demonstrating the usage of these concepts through examples.
17. Java data structures trees representation and traversalIntro C# Book
In this chapter we will discuss tree data structures, like trees and graphs. The abilities of these data structures are really important for the modern programming. Each of this data structures is used for building a model of real life problems, which are efficiently solved using this model.
String literals in python are surrounded by either single quotation marks, or double quotation marks. Strings can be output to screen using the print function. For example: print("hello"). Like many other popular programming languages, strings in Python are arrays of bytes representing unicode characters.
Strings in Python can be created using single quotes, double quotes, or triple quotes. Strings are immutable and indexing allows accessing individual characters. Strings can be sliced to extract substrings. The + operator is used for concatenation and * operator repeats strings. The split method returns a list of substrings split by a delimiter and join method concatenates strings with a delimiter.
The document discusses C programs to check if a number is a perfect number, Armstrong number, prime number, strong number, or odd/even number. It provides the definitions and logic for each type of number. Code examples with explanations are given to check if a number matches the criteria and print the results. The code can check for a single number or range of numbers for each type.
The pseudo code describes a report program that generates a customer booking report. It gets customer data from a table, separates customers into business and private, then prints their booking details. It also summarizes booking totals and checks for errors or missing records.
The document discusses Python lists, which are ordered collections of items of any data type. It describes how to create, access, and modify lists using various functions and operations like append, insert, remove, sort, and slice. These include adding/removing elements, sorting/reversing lists, using lists as stacks with push/pop, and extracting sublist sections. The document provides examples of creating lists with different syntax, accessing elements by index, and using common list methods for operations.
The document discusses Python programming concepts like if statements, if-else statements, nested if statements, loops (for, while), lists, strings, tuples, dictionaries, file handling, and connecting Python to MySQL. It contains 37 programs demonstrating the usage of these concepts through examples.
17. Java data structures trees representation and traversalIntro C# Book
In this chapter we will discuss tree data structures, like trees and graphs. The abilities of these data structures are really important for the modern programming. Each of this data structures is used for building a model of real life problems, which are efficiently solved using this model.
String literals in python are surrounded by either single quotation marks, or double quotation marks. Strings can be output to screen using the print function. For example: print("hello"). Like many other popular programming languages, strings in Python are arrays of bytes representing unicode characters.
Strings in Python can be created using single quotes, double quotes, or triple quotes. Strings are immutable and indexing allows accessing individual characters. Strings can be sliced to extract substrings. The + operator is used for concatenation and * operator repeats strings. The split method returns a list of substrings split by a delimiter and join method concatenates strings with a delimiter.
The document discusses C programs to check if a number is a perfect number, Armstrong number, prime number, strong number, or odd/even number. It provides the definitions and logic for each type of number. Code examples with explanations are given to check if a number matches the criteria and print the results. The code can check for a single number or range of numbers for each type.
The pseudo code describes a report program that generates a customer booking report. It gets customer data from a table, separates customers into business and private, then prints their booking details. It also summarizes booking totals and checks for errors or missing records.
The document discusses Python lists, which are ordered collections of items of any data type. It describes how to create, access, and modify lists using various functions and operations like append, insert, remove, sort, and slice. These include adding/removing elements, sorting/reversing lists, using lists as stacks with push/pop, and extracting sublist sections. The document provides examples of creating lists with different syntax, accessing elements by index, and using common list methods for operations.
Functions allow programmers to organize and reuse code. There are three types of functions: built-in functions, modules, and user-defined functions. User-defined functions are created using the def keyword and can take parameters and arguments. Functions can return values and have different scopes depending on if a variable is local or global. Recursion is when a function calls itself, and is useful for breaking down complex problems into simpler sub-problems. Common recursive functions calculate factorials, Fibonacci numbers, and generate the Pascal's triangle.
The document provides source code solutions for 20 programming problems covering various concepts in C programming like basics, looping, arrays, pointers, functions, structures, strings and file handling. Each problem listing includes the problem statement, source code to solve it and sample output. The problems progress from basic concepts like printing text or checking odd-even, to more advanced topics like matrices, structures, file handling etc.
In this lesson you will learn how to use basic syntax, conditions, if-else statements and loops (for-loop, while-loop and do-while-loop) in Java and how to use the debugger.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-basic-syntax-conditions-and-loops
The document discusses regular expressions (RE) in Python. It introduces common RE methods like search(), findall(), match() and provides examples of using special characters like quantifiers, sequences and flags to extract information from strings and files. It also demonstrates how to retrieve data from HTML files using the urllib module and REs.
This document provides an overview of stacks as a data structure in Python. It defines a stack as a linear data structure that follows LIFO (last in, first out) ordering where elements can only be added or removed from one end, called the top. Examples of real-world applications of stacks are given such as undo operations, call logs, and media playlists. The basic stack operations of push, pop, isEmpty are described. Lists in Python can be used to implement a stack by using the append() and pop() methods. Examples are provided to demonstrate push and pop operations on a stack.
This document discusses string handling functions in C programming. It defines a string as an array of characters and introduces the string.h header file, which contains functions for manipulating strings like strlen(), strcmp(), strcmpi(), strcpy(), and strcat(). It explains what each function does, including getting the length of a string, comparing strings, copying one string to another, and concatenating two strings.
Practical Class 12th (c++programs+sql queries and output) Aman Deep
Just download this and do some specific changes in the name section and roll no section . and submit it as it is to your teacher this will surely work and help you out your class 12th board practicals exam . no worries ! ENJOY :) !
The document explains 11 patterns that can be printed using C++ programming with nested for loops. Each pattern is explained with an image and logic. The code to print each pattern using for loops is provided. The patterns include printing increasing or decreasing numbers of stars or other symbols in rows, printing triangles, and printing combinations.
The document discusses data file handling in Python. It covers the basics of opening, reading from, and writing to both text and binary files.
The key points covered include: opening and closing files, different file access modes, reading methods like readline(), readlines(), and read(), writing methods like write() and writelines(), random access methods like seek() and tell(), pickling and unpickling using the pickle module, and the differences between text and binary files.
The document discusses Python's four main collection data types: lists, tuples, sets, and dictionaries. It provides details on lists, including that they are ordered and changeable collections that allow duplicate members. Lists can be indexed, sliced, modified using methods like append() and insert(), and have various built-in functions that can be used on them. Examples are provided to demonstrate list indexing, slicing, changing elements, adding elements, removing elements, and built-in list methods.
This document provides information about various Python data types including text, numeric, sequence, mapping, set, boolean, and binary types. It discusses how variables can store different data types in Python. It also covers numeric types like integers, floats, and complexes. Strings are described as arrays of characters that can be indexed and sliced. Boolean values and operators like or, and, and not are explained. The document contrasts mutable and immutable objects in Python.
The document discusses sorting algorithms, abstract data types (ADTs), and linked lists. It describes selection sort and insertion sort algorithms for sorting arrays. It then explains that linked lists are a more flexible data structure than arrays and defines a singly linked list as an ADT with nodes that point to the next node in the list. Functions for typical linked list operations like insertion, deletion, checking if empty, and printing the list are discussed.
The document discusses various applications of stacks including:
1) Reversing strings by pushing characters onto a stack and popping them off in reverse order.
2) Calculator operations using postfix notation and a stack.
3) Recursive functions using a stack to store previous function calls and variables.
4) Determining if a word is a palindrome by pushing characters onto a stack and comparing to the popped off characters.
Code examples are provided for reversing strings, recursive summation, and determining palindromes using stacks.
This document discusses Pandas DataFrames. DataFrames can be created from various data sources and support operations on rows and columns like selecting, adding, deleting, and renaming. Indexing using labels or positions allows accessing specific data elements. Functions like head, tail, max, min provide convenient summaries of DataFrames.
The document describes a C program that implements various operations on arrays, strings, and stacks. It includes functions to create, display, insert, and delete elements from an array. For strings, it includes functions to read main, pattern, and replace strings, find occurrences of a pattern, and replace the pattern with the given string. For stacks, it includes functions to push and pop elements, check if a number is a palindrome, and display stack elements. The program uses menus to select these different operations and test cases are provided to demonstrate the output.
This document discusses various string operations in Python including: finding the length of a string; accessing and slicing characters; the difference between strings and lists; converting case; checking character types; splitting strings; finding substrings; reading and printing strings; concatenation and repetition; iterating through strings with for loops; and common string methods like isalpha, isdigit, lower, upper, title, join, split, count, find, index. It also provides examples of problems involving anagrams, pangrams, unique characters, and removing duplicates from strings.
This document describes a library management system project created by Darshit Rajeshbhai Vaghasiya. The project uses Python and MySQL to create tables for books, book issues, and returns. It allows adding, issuing, returning, and deleting books. Functions and source code are provided to perform these tasks. Sample outputs and tables demonstrate the functionality of the project.
Don't Repeat Yourself, and Automated Code ReviewsGramener
This document discusses code reuse and avoiding duplication. It describes how a function was created to load CSV data in a standardized way and handle variations in the files. This reduced duplicated code. YAML configuration files were also used to externalize operations on the data from the code and allow non-programmers to modify them. The document advocates preferring data structures over code to make solutions more robust and flexible.
Functions allow programmers to organize and reuse code. There are three types of functions: built-in functions, modules, and user-defined functions. User-defined functions are created using the def keyword and can take parameters and arguments. Functions can return values and have different scopes depending on if a variable is local or global. Recursion is when a function calls itself, and is useful for breaking down complex problems into simpler sub-problems. Common recursive functions calculate factorials, Fibonacci numbers, and generate the Pascal's triangle.
The document provides source code solutions for 20 programming problems covering various concepts in C programming like basics, looping, arrays, pointers, functions, structures, strings and file handling. Each problem listing includes the problem statement, source code to solve it and sample output. The problems progress from basic concepts like printing text or checking odd-even, to more advanced topics like matrices, structures, file handling etc.
In this lesson you will learn how to use basic syntax, conditions, if-else statements and loops (for-loop, while-loop and do-while-loop) in Java and how to use the debugger.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-basic-syntax-conditions-and-loops
The document discusses regular expressions (RE) in Python. It introduces common RE methods like search(), findall(), match() and provides examples of using special characters like quantifiers, sequences and flags to extract information from strings and files. It also demonstrates how to retrieve data from HTML files using the urllib module and REs.
This document provides an overview of stacks as a data structure in Python. It defines a stack as a linear data structure that follows LIFO (last in, first out) ordering where elements can only be added or removed from one end, called the top. Examples of real-world applications of stacks are given such as undo operations, call logs, and media playlists. The basic stack operations of push, pop, isEmpty are described. Lists in Python can be used to implement a stack by using the append() and pop() methods. Examples are provided to demonstrate push and pop operations on a stack.
This document discusses string handling functions in C programming. It defines a string as an array of characters and introduces the string.h header file, which contains functions for manipulating strings like strlen(), strcmp(), strcmpi(), strcpy(), and strcat(). It explains what each function does, including getting the length of a string, comparing strings, copying one string to another, and concatenating two strings.
Practical Class 12th (c++programs+sql queries and output) Aman Deep
Just download this and do some specific changes in the name section and roll no section . and submit it as it is to your teacher this will surely work and help you out your class 12th board practicals exam . no worries ! ENJOY :) !
The document explains 11 patterns that can be printed using C++ programming with nested for loops. Each pattern is explained with an image and logic. The code to print each pattern using for loops is provided. The patterns include printing increasing or decreasing numbers of stars or other symbols in rows, printing triangles, and printing combinations.
The document discusses data file handling in Python. It covers the basics of opening, reading from, and writing to both text and binary files.
The key points covered include: opening and closing files, different file access modes, reading methods like readline(), readlines(), and read(), writing methods like write() and writelines(), random access methods like seek() and tell(), pickling and unpickling using the pickle module, and the differences between text and binary files.
The document discusses Python's four main collection data types: lists, tuples, sets, and dictionaries. It provides details on lists, including that they are ordered and changeable collections that allow duplicate members. Lists can be indexed, sliced, modified using methods like append() and insert(), and have various built-in functions that can be used on them. Examples are provided to demonstrate list indexing, slicing, changing elements, adding elements, removing elements, and built-in list methods.
This document provides information about various Python data types including text, numeric, sequence, mapping, set, boolean, and binary types. It discusses how variables can store different data types in Python. It also covers numeric types like integers, floats, and complexes. Strings are described as arrays of characters that can be indexed and sliced. Boolean values and operators like or, and, and not are explained. The document contrasts mutable and immutable objects in Python.
The document discusses sorting algorithms, abstract data types (ADTs), and linked lists. It describes selection sort and insertion sort algorithms for sorting arrays. It then explains that linked lists are a more flexible data structure than arrays and defines a singly linked list as an ADT with nodes that point to the next node in the list. Functions for typical linked list operations like insertion, deletion, checking if empty, and printing the list are discussed.
The document discusses various applications of stacks including:
1) Reversing strings by pushing characters onto a stack and popping them off in reverse order.
2) Calculator operations using postfix notation and a stack.
3) Recursive functions using a stack to store previous function calls and variables.
4) Determining if a word is a palindrome by pushing characters onto a stack and comparing to the popped off characters.
Code examples are provided for reversing strings, recursive summation, and determining palindromes using stacks.
This document discusses Pandas DataFrames. DataFrames can be created from various data sources and support operations on rows and columns like selecting, adding, deleting, and renaming. Indexing using labels or positions allows accessing specific data elements. Functions like head, tail, max, min provide convenient summaries of DataFrames.
The document describes a C program that implements various operations on arrays, strings, and stacks. It includes functions to create, display, insert, and delete elements from an array. For strings, it includes functions to read main, pattern, and replace strings, find occurrences of a pattern, and replace the pattern with the given string. For stacks, it includes functions to push and pop elements, check if a number is a palindrome, and display stack elements. The program uses menus to select these different operations and test cases are provided to demonstrate the output.
This document discusses various string operations in Python including: finding the length of a string; accessing and slicing characters; the difference between strings and lists; converting case; checking character types; splitting strings; finding substrings; reading and printing strings; concatenation and repetition; iterating through strings with for loops; and common string methods like isalpha, isdigit, lower, upper, title, join, split, count, find, index. It also provides examples of problems involving anagrams, pangrams, unique characters, and removing duplicates from strings.
This document describes a library management system project created by Darshit Rajeshbhai Vaghasiya. The project uses Python and MySQL to create tables for books, book issues, and returns. It allows adding, issuing, returning, and deleting books. Functions and source code are provided to perform these tasks. Sample outputs and tables demonstrate the functionality of the project.
Don't Repeat Yourself, and Automated Code ReviewsGramener
This document discusses code reuse and avoiding duplication. It describes how a function was created to load CSV data in a standardized way and handle variations in the files. This reduced duplicated code. YAML configuration files were also used to externalize operations on the data from the code and allow non-programmers to modify them. The document advocates preferring data structures over code to make solutions more robust and flexible.
COMPUTER SCIENCE PROJECT ON HISTORICAL PLACE.pptxmv9499596
This document is a project report created by Mankala Vamshi for their class 12 computer science project. The project creates a database to store information about historical places, including features and descriptions. It allows users to add, update, search, delete and display records in the database. The project aims to apply programming skills to develop a software solution to manage information about historical places. It was created using Python programming language and MySQL database.
The document contains 20 Python programs with summaries and outputs. The programs cover topics like palindrome strings, removing odd numbers from lists, finding sums of list elements ending in 3, creating tuples from user input, stack operations, MySQL connectivity, binary file handling and more.
The document contains a Python program to demonstrate various data types, list methods, tuple methods, dictionary methods, arithmetic operations using functions, filtering even numbers from a list, date and time functions, adding days to a date, counting character frequencies in a string, NumPy array operations, concatenating dataframes, reading a CSV file using Pandas, and calculating area and circumference of a circle using the math module. The program contains examples and outputs for each concept.
This document provides details about a student project titled "Multifunctional Tools" created using Python. The project allows users to perform various mathematical and logical operations through a graphical user interface. It includes functions for calculations, string manipulation, ASCII conversions, checking vowels/consonants, palindromes, prime numbers and more. The project was created by the student to provide a single platform for different operations and help users with schoolwork. It makes use of Python modules and functions along with a Tkinter GUI.
The document discusses Python dictionaries. Some key points:
- A dictionary in Python is an unordered collection of key-value pairs where keys must be unique and immutable, while values can be any data type.
- Dictionaries are created using curly braces {} and keys are separated from values with colons.
- Elements can be accessed, added, updated, and deleted using keys. Nested dictionaries are also supported.
- Common operations include creating, accessing, modifying dictionaries as well as nested dictionaries. User input can also be used to update dictionary values.
This document describes a student information system project done by a student named Arjun N.M. It includes an acknowledgment, descriptions of object-oriented programming concepts and the project details. The project uses C++ to create a student class with functions for getting, putting, modifying and deleting student data from a binary file. The main function provides a menu to add, delete, display and search student records.
This document provides instructions for Project 3 of the CS348 course. Students will create PL/SQL functions and procedures to process data stored in Oracle database tables. The project involves setting up database tables, populating them with data, and creating 5 procedures to generate reports from the data. The procedures include generating department reports, student statistics, faculty statistics with histogram binning, and an enrollment report. Detailed descriptions and sample outputs are provided for each procedure.
This document describes a micro project to create a simple Oracle database to store course enrollment data for a university. It involves designing tables to model student, class, enrollment and other data; populating the tables with sample data; writing SQL queries to retrieve and analyze the data; and creating PL/SQL functions and procedures to generate reports on departments, students, and faculty. Key tasks include creating tables with primary keys and foreign keys, inserting records, writing queries to retrieve aggregated data on departments and their faculty/students, creating views to display related data, and procedures to output formatted reports.
This document provides instructions for 5 programming assignments involving arrays and structures in C programming. The assignments include: 1) Computing frequencies of numbers in an array, 2) Displaying Pascal's triangle using one array, 3) Printing a pattern of letters, 4) Defining a structure to store data of up to 450 students, and 5) Defining a structure to store data of up to 200 bank customers. The document provides sample code and explanations for each assignment.
The document discusses features of object identity, the role of OIDs, value and type constructors, and provides examples of valid time tables, transaction time tables, and bitemporal tables. It also discusses creating tables with employee data and calculating salaries, and compares intelligent databases with temporal databases.
The document provides source code solutions to 21 programming problems or practical exercises in Python. For each problem, it lists the objective, provides the source code, and displays sample output. The problems cover topics like checking if a number is prime, palindrome, sorting algorithms, file handling, object-oriented programming concepts like classes and methods, and more. It is a practical file with Python code and solutions for Class 12 Computer Science students.
HELP IN JAVACreate a main method and use these input files to tes.pdffatoryoutlets
For the questions below, use the W3Schools customer orders database. You need to submit
thoroughly tested SQL statements. For your convenience and reference, relevant data model is
attached as a PDF document with the assignment in the Blackboard. Name of this document is
\"Relationship diagram for W3schools order pdf.\" 1) Write a query to show Customers\' Country
wise sales totals. Your query should show Customers\' Country name and the total sale value for
that Country 2) Write a query to show Product wise sales totals. Your query should Product
name and the total sale value for that Product. 3) Write a query to show the number of orders for
each shipper. Your query should show shipper name and the count of orders with the shipper. 4)
Write a query to show number of products in each product category. Your query should show
Category name and number of products in that category 5) Write a query that shows Customers\'
country wise customer count, and order count. Your query should show country name, total
number of customers from that country, and total number of orders from the customers of that
country 6) Write a query that shows the number of products supplied by each Supplier. Your
query should show Country name, supplier name and the count of products supplied by that
supplier. Note: Sale Price Orderdetails.Quantity Products.price (see an example in the class
slides deck) W3SCHOOLS SQL is located at http://www.w3schools.com/sql/default.asp
(Preferred browser is Chrome). On this page you will find a button called \"Try it yourself\".
Click on that button. You will be redirected to a page where you see a list of tables on the right
side of the page. It is highly recommended to click \'Restore Database\' button on this page
during every session. The page contains a box where you can type in an SQL statement
involving the listed tables. You type in your SQL statement in that box and click on \"Run
SQL\'\' button. The results will be displayed if your SQL statement is syntactically correct.
Solution
1. SELECT Customers.Country, SUM(OrderDetails.Quantity * Products.Price) AS Total_Sale
FROM Customers
LEFT JOIN Orders ON Customers.CustomerID=Orders.CustomerID
LEFT JOIN OrderDetails ON Orders.OrderId=OrderDetails.OrderId
LEFT JOIN Products ON OrderDetails.ProductId=Products.ProductId
Group BY Customers.Country;
2. SELECT Products.ProductName, SUM(OrderDetails.Quantity * Products.Price) AS
Total_Sale FROM Customers
LEFT JOIN Orders ON Customers.CustomerID=Orders.CustomerID
LEFT JOIN OrderDetails ON Orders.OrderId=OrderDetails.OrderId
LEFT JOIN Products ON OrderDetails.ProductId=Products.ProductId
Group BY Products.ProductName;
You can edit these query to get other results set..
The code connects to a MySQL database, creates a user table and inserts sample data. It then allows a user to log in and perform CRUD operations on a students table, including inserting, updating, deleting, searching, and displaying records. The user can choose from menu options to perform the different operations and the code prints confirmation messages after each successful operation.
This document discusses using databases and SQL to store and retrieve data. It covers creating database tables, inserting and querying records, using multiple tables with constraints, and geocoding location data to visualize it on a map. Key points include creating a 'Tracks' table with songs and play counts, storing a friendship relationship across two tables, looking up IDs when inserting to link tables, and geocoding user-entered locations to plot them on an OpenStreetMap.
computer project by sandhya ,shital,himanshi.pptxIshooYadav
This document is a project report on a Billing Management System submitted by students Shital, Himanshi, and Sandhya to their teacher Mrs. Neelam Kumari. The report includes sections on certificates, acknowledgements, header files and coding used in the project, and bibliography. The coding section describes Python code used to create a billing management system with features like adding, modifying, searching, and generating reports on billing data stored in a MySQL database.
Similar to computer science investigatory project .pdf (20)
How Barcodes Can Be Leveraged Within Odoo 17Celine George
In this presentation, we will explore how barcodes can be leveraged within Odoo 17 to streamline our manufacturing processes. We will cover the configuration steps, how to utilize barcodes in different manufacturing scenarios, and the overall benefits of implementing this technology.
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...EduSkills OECD
Andreas Schleicher, Director of Education and Skills at the OECD presents at the launch of PISA 2022 Volume III - Creative Minds, Creative Schools on 18 June 2024.
🔥🔥🔥🔥🔥🔥🔥🔥🔥
إضغ بين إيديكم من أقوى الملازم التي صممتها
ملزمة تشريح الجهاز الهيكلي (نظري 3)
💀💀💀💀💀💀💀💀💀💀
تتميز هذهِ الملزمة بعِدة مُميزات :
1- مُترجمة ترجمة تُناسب جميع المستويات
2- تحتوي على 78 رسم توضيحي لكل كلمة موجودة بالملزمة (لكل كلمة !!!!)
#فهم_ماكو_درخ
3- دقة الكتابة والصور عالية جداً جداً جداً
4- هُنالك بعض المعلومات تم توضيحها بشكل تفصيلي جداً (تُعتبر لدى الطالب أو الطالبة بإنها معلومات مُبهمة ومع ذلك تم توضيح هذهِ المعلومات المُبهمة بشكل تفصيلي جداً
5- الملزمة تشرح نفسها ب نفسها بس تكلك تعال اقراني
6- تحتوي الملزمة في اول سلايد على خارطة تتضمن جميع تفرُعات معلومات الجهاز الهيكلي المذكورة في هذهِ الملزمة
واخيراً هذهِ الملزمة حلالٌ عليكم وإتمنى منكم إن تدعولي بالخير والصحة والعافية فقط
كل التوفيق زملائي وزميلاتي ، زميلكم محمد الذهبي 💊💊
🔥🔥🔥🔥🔥🔥🔥🔥🔥
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...indexPub
The recent surge in pro-Palestine student activism has prompted significant responses from universities, ranging from negotiations and divestment commitments to increased transparency about investments in companies supporting the war on Gaza. This activism has led to the cessation of student encampments but also highlighted the substantial sacrifices made by students, including academic disruptions and personal risks. The primary drivers of these protests are poor university administration, lack of transparency, and inadequate communication between officials and students. This study examines the profound emotional, psychological, and professional impacts on students engaged in pro-Palestine protests, focusing on Generation Z's (Gen-Z) activism dynamics. This paper explores the significant sacrifices made by these students and even the professors supporting the pro-Palestine movement, with a focus on recent global movements. Through an in-depth analysis of printed and electronic media, the study examines the impacts of these sacrifices on the academic and personal lives of those involved. The paper highlights examples from various universities, demonstrating student activism's long-term and short-term effects, including disciplinary actions, social backlash, and career implications. The researchers also explore the broader implications of student sacrifices. The findings reveal that these sacrifices are driven by a profound commitment to justice and human rights, and are influenced by the increasing availability of information, peer interactions, and personal convictions. The study also discusses the broader implications of this activism, comparing it to historical precedents and assessing its potential to influence policy and public opinion. The emotional and psychological toll on student activists is significant, but their sense of purpose and community support mitigates some of these challenges. However, the researchers call for acknowledging the broader Impact of these sacrifices on the future global movement of FreePalestine.
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.pptHenry Hollis
The History of NZ 1870-1900.
Making of a Nation.
From the NZ Wars to Liberals,
Richard Seddon, George Grey,
Social Laboratory, New Zealand,
Confiscations, Kotahitanga, Kingitanga, Parliament, Suffrage, Repudiation, Economic Change, Agriculture, Gold Mining, Timber, Flax, Sheep, Dairying,
Temple of Asclepius in Thrace. Excavation resultsKrassimira Luka
The temple and the sanctuary around were dedicated to Asklepios Zmidrenus. This name has been known since 1875 when an inscription dedicated to him was discovered in Rome. The inscription is dated in 227 AD and was left by soldiers originating from the city of Philippopolis (modern Plovdiv).
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...TechSoup
Whether you're new to SEO or looking to refine your existing strategies, this webinar will provide you with actionable insights and practical tips to elevate your nonprofit's online presence.
2. KENDRIYA VIDHYALAYA JANAKPURI
ACADEMIC YEAR :- 2022-2023
STUDENT DETAIL
ROLL NO. :- 26633855
NAME :- ARYAN NAGLOT
CLASS :- XII-B
SUBJECT AND CODE :- COMPUTER SCIENCE
3. CERTIFICATE
NAME :- ARYAN NAGLOT
CLASS :- XII-B
ROLL NO. :- 26633855
This is certified to be he Bonafede work of the student in the
Kendriya Vidyalaya Janakpuri during the academic year
2022-2023.
___________________________
SUBJECT TEACHER SIGNATURE
_____________________
EXAMINER’S SIGNATURE
____________________
PRINCIPAL SIGNATURE
4. ACKNOWLEDGEMENT
I would like to thank my informatics practices teacher,
Sonia Sharma mam, whose valuable guidance has been the
ones that have helped me patch this project.
Her suggestions and instructions have served as the major
contributions towards the completion of the project.
Then I would like to thank my parents and friends who
have helped me with their valuable suggestions and
guidance that has been helpful in various phase of the
completion of this project.
~ ARYAN NAGLOT
5. QUESTION BASED PROGRAMS
1. WAP to show functionality of a basic calculator using functions.
def calculator(n1,n2,oper):
if oper=='+':
return n1+n2
elif oper=='-':
return n1-n2
elif oper=='*':
return n1*n2
elif oper=='/':
return n1/n2
elif oper=='//':
return n1//n2
elif oper=='%':
return n1%n2
else:
print('invalid operator..')
return 0
num1=float(input('enter first number:'))
num2=float(input('enter second number:'))
op=input('input operator among +,-,*,/,//,%:')
print(calculator(num1,num2,op))
****************************************************************************************************
2. Write a function in python which accept a number from user to return True, if the number is a prime
number else return False. Use this function to print all prime numbers from 1 to 100.
def checkPrime(n):
for i in range (2, n):
if n%i==0:
return False
else:
return True
l=[]
for i in range(1,101):
ans=checkPrime(i)
if ans==True:
l.append(i)
print('Prime numbers between 1 to 100=',l)
****************************************************************************************************
3. Write a function in python which accept a list of marks of students and return the minimum mark,
maximum mark and the average marks. Use the same function to test.
def checkList(l):
return min(l),max(l),(sum(l)/len(l))
marks=eval(input('enter the marks of students:'))
minList,maxList,avgList=checkList(marks)
print('MAXIMUM MARKS:',maxList)
6. print('MINIMUM MARKS:',minList)
print('AVERAGE MARKS:',avgList)
****************************************************************************************************
4. WAP to read a text file “myfile.txt” line by line and display each word separated by a #.
f=open(r'C:UsersComp_Lab_IIDesktopmyfile.txt')
def show():
try:
while True:
data=f.readline()
data=data.split()
for i in data:
print(i,'#',end='')
except:
f.close()
show()
****************************************************************************************************
5. WAP to read a text file “myfile.txt” and display the number of vowels/ consonants/ uppercase/ lowercase
characters in the file.
def show():
f=open(r'C:UsersComp_Lab_IIDesktopmyfile.txt')
data=f.read()
vowal=0
cons=0
uper=0
low=0
vowalList=['A','E','I','O','U','a','e','i','o','u']
for i in data:
if i.isalpha()==True:
if i in vowalList:
vowal+=1
else:
cons+=1
if i.isupper():
uper+=1
else:
low+=1
print('number of vowels:',vowal)
print('number of consonants:',cons)
print('number of Capital letters:',uper)
print('number of small letters:',low)
show()
****************************************************************************************************
6. Remove all the lines that contain the character `a' in a file and write it to another file.
def copyData():
f=open(r'C:UsersComp_Lab_IIDesktopmyfile.txt')
f2=open(r'C:UsersComp_Lab_IIDesktopmyfile2.txt','w+')
data=f.readlines()
7. for line in data:
if 'A' not in line:
if 'a' not in line:
f2.write(line)
f2.flush()
f2.seek(0)
data2=f2.read()
print(data2)
f.close()
f2.close()
copyData()
OR
def copyData():
f=open(r'C:UsersComp_Lab_IIDesktopmyfile.txt')
f2=open(r'C:UsersComp_Lab_IIDesktopmyfile3.txt','w+')
data=f.readlines()
for line in data:
if 'A' not in line and 'a' not in line:
f2.write(line)
f2.flush()
f2.seek(0)
data2=f2.read()
print(data2)
f.close()
f2.close()
copyData()
****************************************************************************************************
7. Write a program to create a text file and print the lines starting with ‘T’ or ‘P’. (Both uppercase and
lowercase).
def printData():
f=open(r'C:UsersComp_Lab_IIDesktopmyfile.txt')
data=f.readlines()
for line in data:
L1=['t','T','P','p']
if line[0] in L1:
print(line)
f.close()
printData()
****************************************************************************************************
8. Read a text file to print the frequency of the word ‘He’ and ‘She’ found in the file.
def readHeShe():
file=open(r'C:UsersComp_Lab_IIDesktopmyfile.txt')
data=file.read()
cntHe=0
cntShe=0
data=data.split()
8. for i in data:
i=i.lower()
if i=='he':
cntHe+=1
elif i=='she':
cntShe+=1
else:
continue
print('Frequency of "He" in file=',cntHe)
print('Frequency of "She" in file=',cntShe)
readHeShe()
****************************************************************************************************
9. Create a binary file with name and roll number. Search for a given roll number and display the name, if not found
display appropriate message.
import pickle
file=open(r'D:myBinaryFile.bin','ab+')
def inputData():
ans='y'
while ans=='y':
data=eval(input('enter the name and roll number of student:'))
pickle.dump(data,file)
file.flush()
ans=input('want to enter more data? Press Y or N')
ans=ans.lower()
def searchData():
file.seek(0)
try:
found=False
rno=int(input('enter the roll number to search:'))
while True:
data=pickle.load(file)
if data['roll number']==rno:
found=True
nm=data['name']
print('ROLL NUMBER=',rno,' AND NAME=',data['name'])
except:
if found==True:
print('data found..')
else:
print('data not found..')
file.close()
inputData()
searchData()
****************************************************************************************************
10. Create a binary file with roll number, name and marks. Input a roll number and update the marks.
import pickle
file=open(r'D:myBinaryFile2.bin','wb+')
def inputData():
9. ans='y'
while ans=='y':
data=eval(input('enter the name, roll number and marks of student:'))
pickle.dump(data,file)
file.flush()
ans=input('want to enter more data? Press Y or N')
ans=ans.lower()
def updateMarks():
file.seek(0)
try:
rno=int(input('enter the roll number to search:'))
newMarks=int(input('enter new marks'))
while True:
pos=file.tell()
data=pickle.load(file)
if data['roll number']==rno:
data['marks']=newMarks
file.seek(pos)
pickle.dump(data,file)
file.flush()
print('ROLL NUMBER=',data['roll number'],' AND NEW MARKS=',data['marks'])
except:
file.close()
def show():
file=open(r'D:myBinaryFile2.bin','rb+')
try:
while True:
data=pickle.load(file)
print(data)
except:
file.close()
inputData()
updateMarks()
show()
****************************************************************************************************
11. Read a CSV file from hard disc and print all the details on the screen.
def readCSV():
file=open(r'D:saurav.csv',newline='n')
readerObj=csv.reader(file)
for i in readerObj:
print(i)
file.close()
readCSV()
****************************************************************************************************
12. Read a CSV file (containing item no, name, rate, QOH) from hard disc and print all the items whose rate is
between Rs 500 and Rs 1000.
def readCSV():
file=open(r'D:saurav2.csv',newline='n')
10. readerObj=csv.reader(file)
for i in readerObj:
if i[2].isalpha()==True:
continue
else:
if float(i[2])>=500 and float(i[2])<=1000:
print(i[1])
file.close()
readCSV()
****************************************************************************************************
13. Create a CSV file by entering user-id and password, read and search the password for given userid.
file=open(r'D:saurav3.csv','a+',newline='n')
def writeCSV():
writerObj=csv.writer(file)
writerObj.writerow(['user-id','password'])
ans='y'
while ans=='y':
uid=input('enter user id:')
pwd=input('enter password:')
writerObj.writerow([uid,pwd])
file.flush()
ans=input('want to add more info? y or n..')
ans=ans.lower()
print('data saved successfully..')
def search():
file.seek(0)
uid=input('enter the id to search:')
readerObj=csv.reader(file)
for i in readerObj:
if i[0]==uid:
print('password=',i[1])
writeCSV()
search()
file.close()
****************************************************************************************************
14. Write a random number generator that generates random numbers between 1 and 6 (simulates a dice).
Throw the two dices for 10 times and print their total.
def rolladice():
counter = 1
myList = []
while counter <= 10:
randomNumber = random.randint(1,6)
#print('value of 1 dice ',counter,' time=',randomNumber)
randomNumber2=random.randint(1,6)
#print('value of 2 dice ',counter,' time=',randomNumber2)
myList.append(randomNumber+randomNumber2)
counter = counter + 1
11. return myList
# Take user input here
print(rolladice())
****************************************************************************************************
15. WAP in Python to demonstrate linear search.
def LinearSearch():
list1=eval(input('enter the list of elements:'))
element=eval(input('enter the element to search:'))
found=0
for i in list1:
if i==element:
found=1
position=list1.index(i)+1
else:
continue
if found==1:
print('element found in ',position,' position')
else:
print('element not found..')
LinearSearch()
****************************************************************************************************
16. Write a Python program to implement a stack using a list data-structure.
status=[]
def Push_element(list1):
status.append(list1)
def Pop_element():
while len(status)>0:
print(status.pop())
else:
print('Stack Empty..')
for i in range(5):
list1=eval(input('enter the list:'))
Push_element(list1)
Pop_element()
****************************************************************************************************
17. WAP to pass an integer list as stack to a function and push only those elements in the stack which are divisible
by 7.
status=[]
def Push_element(list1):
for i in list1:
if i% 7==0:
status.append(i)
print(status)
list1=eval(input('enter the integer list:'))
Push_element(list1)
****************************************************************************************************
12.
13. CSV TABLE PROGRAM
# CSV TABLES:
import pandas as pd
import matplotlib as pyplot
from datetime import date
print("Welcome to ABC Library")
def addNewMember():
mid=int(input('Enter member id :'))
m_name=input('Enter member name :')
phoneno=int(input('Enter phone number :'))
noofbooksissued=0
mdf=pd.read_csv('CLIBRARYexcelfilesmember.csv')
n=mdf['mid'].count()
mdf.at[n]=[mid,m_name,phoneno,noofbooksissued]
mdf.to_csv('CLIBRARYexcel filesmember.csv,'index=False)
print('New member added')
print(mdf)
def searchMember():
m_name=input('Enter member name:')
bdf=pd.read_csv('C:LIBRARYexcelfilesmember.csv')
df=bdf.loc[bdf['mname']--m_name]
if df.empty:
print('No member found with this name')
else:
print('Members details:')
print(df)
def deleteMember():
mid = float(input('Enter member id :'))
bdf=pd.read_csv('CLIBRARYexcelfilesmembers.csv')
bdf=bdf.drop(bdf[bdf['mid']==mid].index)
bdf.to_csv('C:LIBRARYexcel filesmember.csv',index=False)
print('Member deleted')
print(bdf)
def showMembers():
bdf=pd.read_csv('C:LIBRARYexcelfilesmember.csv')
print(bdf)
def addNewBook():
bookid=int(input('Enter a bok id:'))
title=input('Enter book title:')
author=input('Enter author of the book:')
publisher=input('Enter book publisher:')
14. edition=input('Enter edition of the book:')
cost=input('Enter cost of the book:')
category=input('Enter category of the book:')
bdf=pd.read_csv("C:LIBRARYexcelfilesbook.csv")
n=bdf['bookid'].count()
bdf.at[n]=[bookid,title,author,publisher,edition,cost,category]
bdf.to_csv(r"C:LIBRARYexcelfilesbook.csv",index=False)
print('Book added successfully')
print(bdf)
def searchBook():
title=input('Enter a book name : ')
bdf=pd.read_csv('C:LIBRARYexcelfilesbook.csv')
df=bdf.loc[bdf['title']==title]
if df.empty:
print('no book found with this code')
else:
print('Book details:')
print(df)
def deleteBook():
bookid=float(input('Enter book id :'))
bdf=pd.read_csv(r'C:LIBRARYexcel filesbook.csv')
bdf=bdf.drop(bdf[bdf['bookid']--bookid].index)
bdf.to_csv('C:LIBRARYexcelfilesbook.csv',index=False)
print("Book deleted")
print(bdf)
def showBooks():
bdf=pd.read_csv('C:LIBRARYexcelfilesbook.csv')
print(bdf)
def issueBooks():
book_name=input('Enter book name:')
bdf=pd.read_csv('C:LIBRARYexcelfilesbook.csv')
bdf=bdf.loc[bdf['title']==book_name]
if bdf.empty:
print('No book found in the library')
return
m_name=input('Enter member name :')
mdf=pd.raed_csv('C:LIBRARYexcelfilesmember.csv')
mdf=mdf.loc[mdf['m_name']==m_name]
if mdf.empty:
print('No such member found')
return
dateofissue=int(input('Enter date of issue :'))
noofbookissued=int(input('Enter number of book issued :'))
bdf=pd.read_csv('C:LIBRARYexcelfilesissuebooks.csv')
n=bdf['book_name'].count()
bdf.at[n]=['book_name,m_name',date.today(),noofbookissued,'']
bdf.to_csv('C:LIBRARYexcelfilesissuebooks.csv',index=False)
15. print('Books issued successfully')
print(bdf)
def returnBook():
m_name=input('Enter member name :')
book_name=input('Enter book name :')
idf=pd.read_csv('C:LIBRARYexcelfilesissuebooks.csv')
idf=idf.loc[idf['book_name']==book_name]
if idf.empty:
print('The book is not issued in the records')
else:
idf=idf.loc[idf['m_name']==m_name]
if idf.empty:
print('the book is not issued to the member')
else:
print('Book can be retured')
ans=input('are you sure you want to return the book?')
if ans.lower()=='yes':
idf=pd.read_csv('CLIBRARYexelfilesissuebooks.csv')
idf=idf.drop(idf[idf['book_name']==book_name].index)
idf.to_csv('CLIBRARYexcelfilesissuebooks.csv',index=False)
print('Book Returned')
else:
print('Return operation cancelled')
def showissuedBooks():
idf=pd.read_csv('C:LIBRARYexcelfilesissuebooks.csv')
print(idf)
def deleteissuedBooks():
book_name=input('enter a book name :')
bdf=pd.read_csv('C:LIBRARYexcelfilesissuebooks.csv')
bdf=bdf.drop(bdf[bdf['book_name']==book_name].index)
bdf.to_csv('C:LIBRARYexcelfilesissuebooks.csv',index=False)
print('Delated issued book successfully')
print(bdf)
def showCharts():
print('Press 1- Book and its cost')
print('Press 2- Number of books isssued by members')
ch=int(input('Enter your choice:'))
if ch==1:
df=pd.read_csv('C:LIBRARYexcelfilesbook.csv')
df=df[['title','cost']]
df.plot('title','cost','kind='bar')
plt.xlabel('---title--- ')
plt.ylabel('---cost---')
plt.show()
if ch==2:
df=pd.read_csv('C:LIBRARYexcelfilesissuebooks.csv')
df=df[['noofbooksissued','m_name']]
df.plot(kind='bar',color='red')
plt.show()
16. def login():
uname=input('Enter username :')
pwd=input('Enter password :')
df=pd.read_csv('C:LIBRARYexcelfilesusers.csv')
df=df.loc[df['username']==uname]
if df.empty:
print('Invalid username')
return False
else:
df=df.loc[df['password']==pwd]
if df.empty:
print('Invalid password')
return False
else:
print(':Username and password matched:')
return True
def showMenu():
print('Press 1-Add a new book')
print('Press 2-Search for a book')
print('Press 3-Delete a book')
print('Press 4-Show all books')
print('Press 5-Add a new member')
print('Press 6-Search for a member')
print('Press 7-Delete a book')
print('Press 8-Show all members')
print('Press 9-Isuue a book')
print('Press 10-Return a book')
print('Press 11-Show all isuued book')
print('Press 12-Delete an issued book')
print('Press 13-To view charts')
print('Press 14-To exit')
choice=int(input('Enter your choice: '))
return choice
if login():
while True:
ch=showMenu()
if ch==1:
addNewBook()
elif ch==2:
serchBook()
elif ch==3:
deleteBook()
elif ch==4:
showBooks()
elif ch==5:
addNewMember()
elif ch==6:
searchMember()
elif ch==7:
deleteMember()