Question: C++ im on a tight schedule please help ?? T. Assignment#2.docx [Compatibility Mode] 100% Tables Charts SmartArt Review ments Paragraph Styles AaBbCcDdE AaBbCcDdEe AaBbCcDdE AaBbCcDdEe

C++ im on a tight schedule please help ??  C++ im on a tight schedule please help ?? T. Assignment#2.docx

T. Assignment#2.docx [Compatibility Mode] 100% Tables Charts SmartArt Review ments Paragraph Styles AaBbCcDdE AaBbCcDdEe AaBbCcDdE AaBbCcDdEe Heading 1 Normal No Spacing Exercise #2: Factors Write a program that prompts the user to enter two positive integers m and n, then output all factors of each integer in the given range, inclusive. Print in a similar format to the format given below: Sample input / output: Enter two positive integers: 18 27 factors 18 19 20 21 12 3 6 9 18 1 19 1 2 45se ze 13 7 21 1 2 11 22 1 21 23 24 25 26 27 1 3 9 27 346#1224 1 5 25 1 2 13 26 2/3 Exercise #3: Calculate the Value of Pi Write a C++ program that calculates an estimate of the value of Pl. In mathematics, Pl is approximated by the following formula: Pi- 4 4/3 4/5-4/7 4/9 -4/11 4/13 - 4/15 4/17 The more terms you use, the closer to Pi you get (The above equation shows 9 Pi-4-4/3+4/S 4/7 4/9 4-1.333333333333 +0.8-o.571428 +0.4444444-3.33968254. Write a program that prompts the user to enter the number of terms which will be used to calculate Pi. Also, your to Pie 3.141592653589793. Sample input / output: terms). For example, if you use s program should keep asking the user to re-calculate Pl as long as you wish. Your program should get as close as it can Sec 1 Pages:2 of 3 Words: 282 of 732EX 26

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 Databases Questions!