This document contains summaries of 10 Python programs related to practical computational science problems:
1) A program to check if a number is prime or not.
2) A program to calculate the sum of a geometric progression.
3) A program to generate the Fibonacci series.
4) A program to calculate the mean of numbers entered by a user.
5) A program to generate Pascal's triangle.
6) A program to calculate the sum of squares of digits of a number.
7) A bubblesort program to sort a list of numbers.
8) A program to generate a number pattern based on user input.
9) A program to separate positive and negative numbers in a
Control Statements, Print n Fibonacci numbers – ( using for ) ,Print n Prime numbers – ( using while ), Simple arithmetic on two numbers – ( using switch/case ),Functions, Swap two values using call by value / call by reference,Recursion,To compute NcR and NpR ,To Compute GCD and LCM String Manipulation,Control Statements,Fibonacci numbers, For, n Prime numbers, while, arithmetic ,switch case,Functions, Swap two values,call by value , call by reference,Recursion,NcR, NpR ,GCD , LCM,simple c programs,c program,program in c, c programming,c examples,thiruvalluvar university,lab manual,c lab manual
Control Statements, Print n Fibonacci numbers – ( using for ) ,Print n Prime numbers – ( using while ), Simple arithmetic on two numbers – ( using switch/case ),Functions, Swap two values using call by value / call by reference,Recursion,To compute NcR and NpR ,To Compute GCD and LCM String Manipulation,Control Statements,Fibonacci numbers, For, n Prime numbers, while, arithmetic ,switch case,Functions, Swap two values,call by value , call by reference,Recursion,NcR, NpR ,GCD , LCM,simple c programs,c program,program in c, c programming,c examples,thiruvalluvar university,lab manual,c lab manual
Raspberry Pi - Lecture 5 Python for Raspberry PiMohamed Abdallah
Python syntax, Strings and console output, Conditional an, control flow, Functions, Lists and dictionaries, Loops, Bitwise operators, Classes, File Input/output
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAMSaraswathiRamalingam
Fundamental Algorithms, Exchanging the values of Two Variables,Counting,Summation of a Set of Numbers,Factorial Computation ,Sine Function Computation ,Generation of the Fibonacci Sequence,Reversing the Digits of an Integer,Base Conversion , Character to Number Conversion , Factoring Methods: Finding the square Root of a Number ,The Smallest Divisor of an Integer,The Greatest Common Divisor of the two integers,Generating Prime Numbers,Computing the Prime Factors of an integer ,Generation of Pseudo,random Numbers,Raising a Number to a Large Power,Computing the nth Fibonacci Number,thiruvalluvar university syllabus,unit 5,computer science basics,new syllabus,programming in c,example program in c,
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
Raspberry Pi - Lecture 5 Python for Raspberry PiMohamed Abdallah
Python syntax, Strings and console output, Conditional an, control flow, Functions, Lists and dictionaries, Loops, Bitwise operators, Classes, File Input/output
PROGRAMMING IN C EXAMPLE PROGRAMS FOR NEW LEARNERS - SARASWATHI RAMALINGAMSaraswathiRamalingam
Fundamental Algorithms, Exchanging the values of Two Variables,Counting,Summation of a Set of Numbers,Factorial Computation ,Sine Function Computation ,Generation of the Fibonacci Sequence,Reversing the Digits of an Integer,Base Conversion , Character to Number Conversion , Factoring Methods: Finding the square Root of a Number ,The Smallest Divisor of an Integer,The Greatest Common Divisor of the two integers,Generating Prime Numbers,Computing the Prime Factors of an integer ,Generation of Pseudo,random Numbers,Raising a Number to a Large Power,Computing the nth Fibonacci Number,thiruvalluvar university syllabus,unit 5,computer science basics,new syllabus,programming in c,example program in c,
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
2. Index
PRACTICAL FILE PROGRAMS
1. To check if a number is prime or not
2.Sum of a geometric progression
3.Fibonacci series
4.Mean of numbers entered by user
5.Pascal’s Triangle
6. Sum of Squares of digits of a number
7. Bubblesort
8.Number pattern(user input based)
9.Checking positive and negatives in a list
10. To check if a given number is a palindrome or not
3. 1. To check if a number is prime or not
def divisible(x):
mid=x//2 # integer division of mid=x//2
for i in range(2,mid+1):
if x%i==0:
return "Not a prime number"
else:
return "It is a prime number"
num=int(input("Enter number:"))
print(divisible(num)) Output of the code
4. 2.Sum of a geometric progression(infinite G.P)
# 1 + x + x2+ x3....x n
x=int(input("Enter number:"))
n=int(input("Enter power(n)"))
s=0
for n in range(0,n+1):
term=x**n
s+=term
print("Sum of first",n+1, "terms is",s)
Output of the code
5. 3. Fibonacci Series
n=int(input("Enter number of terms of Fibonacci series:"))
first=0 #0,1,1,2,3,5,8
second=1
print(first, second,end=" ")
for i in range(1,n-1):
third=first+second
print(third,end=" ")
first,second=second,third Output of
the code
6. 4.Function for mean of numbers entered by user
def mymean(y):
s=0
for i in range(0,len(y)):
s+=y[i]
average_of_num=s/len(y)
return average_of_num
l=[]
while True:
num=float(input("Enter number: "))
l.append(num)
var=input("Do you want to continue y/n: ")
if var.upper() in "N":
break
print("Your personalized list of numbers: ", l)
print(mymean(l))
#the program creates a
personalized list of
numbers and displays
their mean
Output of the code
7. 5.Pascal’s Triangle
j=10
for i in range (0,11):
print(" "*j,end="") # keep cursor on the same line
s=str(11**i)
for k in range(0,len(s)):
print(s[k]," ",end="")
print()
j=j-1
Output of the code
8. 6.Sum of square of the digits of a number
num=int(input("Enter a number:"))
s=0
temp=num
while temp>0:
digit=temp%10 # extract a digit
temp//=10
s+=digit**2
print(s, "is the sum of the square of the digits of the
number")
Output of the code
10. 8.Number pattern(user input based)
n=int(input("Number of rows needed"))
for i in range(n):# number of rows
for j in range(i+1):# number of columns
print(j+1,end=" ")
print()# leave line after first iteration
Output of the code
11. 9.Checking positive and negative numbers in a
list
l=[2,3,4,5,6,7,-1,-2,-3,-4,-5,6,4] # Given list
list1=[]
list2=[]
for i in range(0,len(l)):
if l[i]>0:
list1.append(l[i])
if l[i]<0:
list2.append(l[i])
print(l)
print("Positive numbers are", list1)
print("negative numbers are=",list2)
12. 10. To check if the given number is a
palindrome
n=int(input("Enter a number: "))
rev=0
temp=n
while temp>0:
r=temp%10
temp//=10
rev=rev*10+r
if rev==n:
print("Number is a palindrome")
else:
print("It is not a palindrome")
Output of the
code