Question: IN C++ in C++ Objective: To be able to write programs using while repetition structures. Laboratory: Write the following two programs, compile and execute them,
IN C++

in C++
Objective: To be able to write programs using while repetition structures. Laboratory: Write the following two programs, compile and execute them, and show the results to your instructor: Program 1: Write a program that estimates the value of the mathematical constant 'e' by using while loop to implement the following formula: e=1+1/1! + 1/2! + 1/3! + 1/(n-1)! + 1! e should be evaluated as a real value. Evaluate factorial also as real, use n= 10 or more to get an accurate answer. Program 2: | Write a program to evaluate the value of e* by using the formula: e*= 1 + x/1! + x2/2! + x 3/3! +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
