Modify the C++ program to a new spec - 27/04/2018 23:36 EDT
RM32-99 MYR
In corso
Pubblicato quasi 6 anni fa
RM32-99 MYR
Pagato al completamento
I would like to get some help regarding the vector to array conversion.
Equation: f(x) = cosec(x) + cos(x)
Range of x: 1 <= x =<160.5
Step of x: 0.5
A) Based on the information above (Equation, range and step of x), develop a C++ program to do the following:
1. Values of f(x) and x
1.1 Generate the value of f(x) for all value of x.
1.2 Display f(x) and x within the range of x given by user.
2. Apply the following filters in sequence to obtain the final value of f(x), denoted as f_final(x).
2.1 Get the highest value of the first 50 and the last 50 values of f(x) and add to each of f(x)
2.2 Get the standard deviation of the first 100 values of f(x) and minus from each of f(x)
2.3 Get the lowest value of the last 100 values of f(x) and add to each of f(x)
Note: f(x) from (1.1) will be used in (2.1). The resultant f(x) from (2.1) will be used in (2.2) and so on
3. Values of f_final(x) and x in file.
3.1 Save all values of f_final(x) and x in a file.
3.2 Read f_final(x) and x from the file and display within the range of x given by user.
4. Analysis Data:
4.1 Divide f_final(x) points into 5 quantiles (based on the value of f_final(x))
4.2 For each quantile, find and display average, standard deviation, maximum and minimum of f_final(x)
B) The following items must be included in your programs:
1. switch case statement
2. loop
3. Array (change from vector to array)
4. functions (parameters passed by value and references)
5. structure / class
6. files
Hello. How are you .
I have read
I have strong knowledge in Data structures, Algorithms Design,
Computer Architecture,
And I'm expert in C/C++ etc.
I'm interested in this project.
Please send me a message so that we can discuss more.
Then I'll be happy.
I wait for your good reply.
Thanks.