Question
Answered step-by-step

 . Assignment Write a script which does all of the following in...

Image transcription text

Assig nment Write a script which {IDES all Of the following in order: 1. Starting with 31:1 and while sq rt{a1} c: 12345, increase 31 by 2.73 each time . 2. Starting with 32:5 and increasing by 1 each time, use a while loop to find the smallest a2 so that the difference 1 l Infill] and ln(a2 — 3] difference is greater than or equal to 0.000005, keep going. 3. Consider the sum v'l + v'l - J3 + J4 + «$5 - v'fi + v"? + «£8 — #9 + Note the pattern carefully - every third value is subtractedl Eventually this sum is greater than or equal to 1000. Use a while loop to calculate the first radioand {google radicand if you're not sure what that isl} in the sum for which the sum is greater than or equal to 1000. Assign this final radicand to a3. An If statement inside 1your while loop may he helpful. 4. Justin starts an savings tund. On day 1 he puts in ten dollars. Each successive day he puts in an amount equal to 10% of the amount already in the fund, except every fifth day he puts in twice that amount. Use a while loop to calculate the day that Justin has at least one thousand dollars. Assign the result to ad. 5. The two sequences a" = l — l and fan 2 l — 13 H between two successive values in this sequence is less than 0.000005. In other words, while the both oonverge to 1 . Use a while loop to figure out the smallest value of H SUCH that the [WE] are I933 than UH"? apart. Assign the FESUI ID 35.

... Show more

 

Answer & Explanation
Verified Solved by verified expert

rem ipsum dolor sit amet, consectetur adipiscing eli

at, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molesti

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer
Step-by-step explanation
o. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetu
36206179
1 Attachment
IMG_20221019_210628.jpg
jpg