Let f(x)=4 g(x)=-4x+6 h(x)=2x^2+8x -3 inner product <p,q>=p(-1) q(-1) + P(0)q(0). +p(1)q(1) .usw gramschmidt to determine orthonormal basis for subspace p2 spanned by polynomials f(x) g(x) h(x)
Make a file by yourself named ”Integer.txt” and add 5 integer values in it. Now, write a C++
program that reads data (5 integers) from the file and store them in integer array. Also make another
integer array (int result []) of same size to store the results. The program should check for each number
in array if it is prime number or not. If the number is prime, update value in result[] array from 0 to 1.
Lastly, write output in another file named “Result.txt”
2. Prove that g(x) = ( 3x + 1 ) / x has a root on [ - 1 , 1 ]
The turning moment diagram for a four stroke gas engine may be assumed for simplicity to be repre-
sented by four triangles, the areas of which from the line of zero pressure are as follows:
Expansion stroke = 3550 mm2; exhaust stroke = 500 mm2; suction stroke = 350 mm2; and compres- sion stroke = 1400 mm2. Each mm2 represents 3 N-m.
Assuming the resisting moment to be uniform, find the mass of the rim of a flywheel required to keep the mean speed 200 r.p.m. within ± 2%. The mean radius of the rim may be taken as 0.75 m. Also determine the crank positions for the maximum and minimum speeds
Write a programme to demonstrate Hybrid Inheritance with some real examples. Also mention the possible ways of removing ambiguity in this Inheritance.
Describe an alpha cage in zeolite
6.4.
Write a simple encryption program using string functions which apply the substitution method. Here is the given Substitution Table.
Substitution Table:
A *
E $
I /
O +
U -‐
Sample input/output dialogue:
Enter message: meet me at 9:00 a.m. in the park
Encrypted message: m$$t m$ *t 9:00 *.m. /n th$ p*rk
A 100 N force that makes an angle of 30o with the horizontal is used to move a 10 kg crate across a smooth floor. The crate moves through a distance of 500 cm. Find the work done by the force.
A ping-pong ball and a golf ball have the same speed. Which one will have the larger kinetic energy? Explain your answer.