Hi, I have an exam in a few days and I have no idea where to start with writing this program, I have looked at my notes and I have no idea how to starts. Could someone give me a hand with how to start off, I would really appreciate it. I'm not asking for you to do my homework, I just need to know where to start so I can use it as practice to study for my exam. Many thanks!
Instructions:
- Read your notes concerning loops with particular attention to while and for loops.
- Write the pseudocode (algorithm) for the following program definition: The German mathematician Gottfried Liebniz developed the following method to approximate the value of pi:
pi/4 = 1 - 1/3 + 1/5 - 1/7 + ...
Write a program that allows the user to specify the number of iterations used in this approximation and that displays the resulting value.
During the lab:
- Using Quincy, write the C program based on your algorithm.
- Eliminate the syntax errors.
- Run your program and test it.
- Debug your program if necessary until you get correct results.