WAP to create a single circular double linked list of n nodes and display the linked list by
using suitable user defined functions for create and display operations.
NOTE:
This question has been answered by someone else before but was not complete so kindly this time answer this in full and also when you write classes do send the code as well with the answer.
You will be tasked to write this program in Java,
The goal is for the program to be able to guess the user's political party before they reach the end of the survey. This will require your program to gather a substantial amount of data before it can make accurate guesses. In particular:
1. You should begin by presenting the user with questions that contain answer options that dier based on their political beliefs.
Ex. What should the government do to help the poor?
A. Make it easier to apply for assistance. B. Put more money into schools.
C. Incentivize welfare.
D. Nothing.
Explanation of the program
[Explain (where applicable)
l how the loop executes
l · how the written function works
l · and anything that you think is necessary
Explanation of the program
[Explain (where applicable)
l how the number of decimal point was set
l · function(s) that was taken from library & which library
l · the logical path of if/else, switch structure
l · choice of loop (why for loop or while loop)
Explanation of the program
[Explain (where applicable)
l · the declarations of the header file
l · choice of variable type
l · purpose of cout/cin statement in your program
l · how the alignment was done
Write and test the following computeTriangle() function that returns the area a and the
perimeter p of the triangle with given side lengths a, b, c:
void computeTriangle( float&, float&, float, float, float);
Implement a C++ function which, when given the length of a simple pendulum in meters,
returns the period of oscillation in seconds, i.e.
period of oscillation = 2 π (length / g)
where Standard Gravity, g = 9.80665 metres/sec2
Implement a main function which reads the pendulum length, calls the above function and
prints the result. A pendulum of length 1 meter has a period of 2.006409 seconds.
Implement a C++ function “reactance()” which evaluates the reactance of a series circuit
consisting of an inductor L and capacitor C at frequency f:
reactance = 2π fL - 1/2π fC
Implement a main function which reads the values of L, C and f, calls the above function
and prints the reactance, e.g. if L =0.2 henries, C =2 μ farads and f = 50 Hz the reactance
will be –1528.717 Ω.
Code a C++ function Min() that takes three double type arguments and that returns the
value of the smallest of the three arguments.