1. Write an algorithm tocomputes the sum of the first n terms of the series . 2.
ID: 3612641 • Letter: 1
Question
1. Write an algorithm tocomputes the sum of the first n terms of the series .2. Write an algorithm that counts thenumber of one’s in a 16-bit number.
Ex. 825 = 00000011001110012 contains 6one’s 3. Write an algorithm that removes repeated words from a listof n words. Assume that your algorithm will beinsensitive to character case.
Ex. From a list of 7 words: car quick Platter dog quick Car think 1. Write an algorithm tocomputes the sum of the first n terms of the series .
2. Write an algorithm that counts thenumber of one’s in a 16-bit number.
Ex. 825 = 00000011001110012 contains 6one’s 3. Write an algorithm that removes repeated words from a listof n words. Assume that your algorithm will beinsensitive to character case.
Ex. From a list of 7 words: car quick Platter dog quick Car think
Explanation / Answer
please rate - thanks part a initialize sum to 0 loop n times calculate term add to sum after n times output sum initialize sum to 0 loop n times calculate term add to sum after n times output sumRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.