Write a python program with algorithm and output to find sum of the following series for n terms: 1 – 2/2! + 3/3! - - - - - n/n!
Write a function Lagrange_interp which implements Lagrange interpolation to find data at an
intermediate data point.
Note: The degree of the polynomial will not be known to you unless the problem statement is given.
The function should be able to deal with N data points. You can either use dynamic memory allocation
for data storage in arrays or in a simpler approach, you may declare the array sizes as a large value.
Write a program to create 2 single dimension arrays in order to store 10 numbers respectively, then merge the values of both the arrays into third array so that the values of first array and second array will be alternate to each other, then display values of the merged array.
Alternate means third array will carry values of first and second arrays as follows:
c[0]=a[0]
c[1]=b[0]
c[2]=a[1]
c[3]=b[1]
c[4]=a[2]
c[5]=b[2]
c[6]=a[3]
c[7]=b[3]
.....
Write a program which will do the following:
Create a class called
Triangle
. The three sides of the triangle
are private
members of the class. The
class should contain a member f
unction to determine whether a
triangle is equilateral, isosceles or
scalene.
The class
should
also
include member functions which will give area and perimeter of the
triangle. The side
s of the triangle should be taken as input from the user in the main function.
Write a program that takes multiple student marks as input. If a user enters negative
marks, the program writes all marks to a file called “marks.txt” and exits.
Given the function signatures
Multiplication- int multiplication(int a,int b)
Area of the circle- float circle_area(int radius)
Check if the number is even or odd- void iseven(int number)
Find factorial- int fact(int n)
Smallest of 3 number- int smallest(int a,int b, int c)
Write a single C program to perform the following operations. Read the choice where , if choice is 1 Multiplication should be performed, if choice is 2 Area of Circle should be executed, if choice is 3 them it has to execute the function of checking number is even or odd, if the choice is 4 then it has to find the factorial of a number and if the choice is 5 then execute the function smallest of 3 numbers
A. With the use of a suitable diagram explain how a person can get an electrical shock from touching an unearthed isolator. State ONE (1) precaution that can be taken to prevent a reoccurrence
Design a program that will ask the user to enter the amount of a purchase. The program should then compute the federal and provincial sales tax. Assume the federal sales tax is 10 percent and the provincial sales tax is 5 percent. The program should display the amount of the purchase, the federal sales tax, the provincial sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax).
1. Develop a static webpage using HTML5 which provides introduction and overview to the web technology. Include an appropriate image with caption. Also include external links to related sites for further reading. Use headings, paragraphs, sections and other tags appropriately. 2. Use the HTML special characters in the content : <, >, &, " etc 3. Include a table of content section at the beginning of the page. Each item should be a hyperlink to the corresponding section in the same page (links within page). 3. Create footer section and add copyright information. 4. Add ordered/unordered lists wherever suitable. 5. Add a link at the bottom of page to go back to top of the page. 6. Validate your code in https://validator.w3.org