Question: A Write an algorithm to compute the following equation using math.h library. f ( x ) = s i n ( x ) * l

A Write an algorithm to compute the following equation using math.h library.
f(x)=sin(x)*log(x2+1)x2+12+cos(x)
Calculate the value of f(x) by taking the x value as input from the user.
B Develop a C program that identifies a "special number" in a sequence of numbers based on
the following conditions:
Special Number Definition:
A number in the sequence is considered "special" if it is both:
Greater than the average of all the numbers that appear before it in
the sequence.
A prime number.
Input:
The program should first ask for the total number of elements n in the
sequence.
Then, it should take n integers as input from the user.
Output:
The program should output the first "special number" found in the sequence.
If no special number is found, the program should output "No special number
found**
Example:
Input:
Enter the number of elements in the sequence: 7
Enter the sequence of numbers: 253127138
Output:
The special number is: 13
C Create a program that can allow to modify the average result given in above question if by
mistake a number is wrongly entered.
For example:
num 1=15; num 2=23; num 3=42;
average =26.66
by mistake 32 was mistyped as 23 so, how do you modify the program to verify the numbers
and result and modify the result if a number is mistyped? Use control statements and jump
statements to develop the program.
A Write an algorithm to compute the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!