Write a function that draws a circle on the coordinate plane.
The MATLAB function should use a,b r inputs, where a and b are the x-axis and y-axis coordinates of the center of the circle and the radius being r.
Add the labels to axes and annotation (a,b) at the center of the circle.
(use the parametric equation of a circle).
Write a c++ program that asks user to input starting and ending number of range. if the ending number is greater than starting number show the range input by user and display the following 1)sum of the even number between the range, 2)sum of all odd number between the range, 3)count how many numbers are present between the range, 4)how many numbers between the range are either divisible by 05 or 10, 5) if there is number "1000" present between the range, the ending number should change to 1000 and then should break, 6)average of all numbers between the range?
if the ending number is not greater than starting number show you entered an invalid range.
def h(n):
s = 0
for i in range(2,n):
if n%i == 0:
s = s+i
return(s)Ms. Seena has brought 10 items and she wants to print the item with minimum and maximum cost. Write a software program to do it.
Consider a square matrix A of size nxn and an integer x which is an element of A. find the row number R and column number C of X in A, and calculate the sum R and C. If the sum is even, find the sum of the digits of all even numbers in the matrix, and if the sum is odd then find the sum of digits of all odd numbers in matrix
Consider a square matrix A of size nxn and an integer x which is an element of A. find the row number R and column number C of X in A, and calculate the sum R and C. If the sum is even, find the sum of the digits of all even numbers in the matrix, and if the sum is odd then find the sum of digits of all odd numbers in matrix
In a class test teacher announces the marks (negative marking allowed) of n students a student can achieve max 100 marks. Write a python function p-marks(*marks) that takes no. of students , marks of students and return the marks and check the marks are valid or
not. If valid then it calls the recursive function re-sort(*marks) which returns the students marks as a comma-separated string with elements in ascending order ( You can use built-in function max() or min() to do this) . Specify input in fixed form.
Write an algorithm to find the energy
produced at every second if the
reaction is allowed to happen for N
seconds
How To Test Whether a Set is Reflexive, Symmetric, Anti-Symmetric and/or Transitive using 2darray?
Janhvi is studying about the python list . She is facing the problem to predict the output
of following python code
1
lst1 = [10, 15, 20, 25, 30]
lst1.insert( 3, 4)
lst1.insert( 2, 3)
print (lst1[-5]