Taylor series expands function into a finite sequence of a variable x or a finite series plus a
remainder. A complex electromagnetic signal transmitted from a radio transmitter can be
decomposed into its components by using Taylor approximation, which is equivalent to estimating
the parameters of complex exponential functions. Let x(t) be a signal transmitted. Develop a C-
script that calculates the following Taylor series approximation of function f(x) for N number of
terms. Where N is the largest whole number which is a factor of both 42 and 98. You can select any
positive real value of x.
f (x) = ∑
𝒙
𝒏
𝒏!
𝑵
𝒏=𝟎
= 1 +
𝒙
𝟏!
+
𝒙
𝟐
𝟐!
+
𝒙
𝟑
𝟑!
........
Note : Don't use arrays, do with loops
take a scenario where we need to design a function that is supposed to process a vector with 10,000,000 elements.
On the form create a list box, to allow a user to select between three different cities. Also create a combo box for the user to select the year. Finally add a submit button. Once the user has selected a city, year and clicked the submit button display the petrol price per litre for that year.
Use the following table for the city and yearly petrol prices per litre:
2017 2018 2019
Johannesburg 10.72 10.35 10.20
Durban 12.75 12.32 12.22
Cape Town 13.70 13.31 13.23
You are also required to create a menu system which will allow the user to exit the application under the file menu. Under the tools menu allow the form submission and option to display the average yearly petrol price report. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience
On the form create two combo boxes, one for the country selection and another to select a town. Also, add two radio buttons for the user to select to display either a phone or postal code.
You are also required to create a menu system which will allow the user to exit the application under the file menu. Under the tools menu allow the form submission and option to display the average yearly petrol price report. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience.
SOUTH AFRICA UNITED KINGDOM
Cape Town London
Phone Code: 021 Phone Code: 020
Postal Code: 8000 Postal Code: WC2N5DU
Johannesburg Oxford
Phone Code: 011 Phone Code: 01865
Postal Code: 2000 Postal Code: OX13PN
Durban Southampton
Phone Code: 031 Phone Code: 023
Postal Code: 4000 Postal Code: SO147DW
Given a string that other than letters, numbers, and space if any characters are there
print the count of those characters.
Example
Input: aaa34@raj?where454/
Output: 3
An e-commerce application wants to give discounts to its customers. The discount is
calculated as the product of the sum of even numbers and the sum of odd numbers
present in the bill. Print the discount that a customer can get.
a. Input: 2345, Output: 48
Explanation: even_sum = 2+4 = 6.
Odd_sum = 3+5 = 8.
Product = 6*8 = 48.
Reverse a string and calculate unchanged positions to the original string?
To find the lucky number.
Input - 8, Output - 21
Write an algorithm to make a list like 1,1,2,3,5,8,13,21 so when input 8 is entered it
should give output 21
Write a program to print maximum and minimum prime numbers in a given range?
Question #261249
Using the node from task 2, implement a class called DLL with following functionalities
1. insert a node at first ,
2. overload to Insert a node at last
3. overload to Insert at specified position of double linked list. E.g if the position number is 6, it is inserted between node at position 5 and 7. If position number is greater than the size of list.
1. eliminate duplicates from doubly linked list
2. delete a node from first,
3. overload to delete a node from last
4. overload to delete at specified position of double linked list. E.g if the position number is 6, it is deleted from between node at position 5 and 7. If position number is greater than the size of list, it is prompted that the position number does not exist and therefore is being deleted from the end.
5. Make a sub menu to Merge 2 doubly list. Let there be 2 lists L1, L2
a. Press 1 to append L1 to L2.
b. Press 2 to append L2 to L1.
c. Press 3 to merge L1 and L2 in sorted order.