Precalc
Intro to Algebra
6.1-6.3 Quiz today. No new HW.
Computer Science 2
Wrap up of all open assignments. Book exercises due today at 2:30pm.
In addition, do the following two programs, due Monday at 2:30pm:
1. Write a program that adds up the first n odd integers, where n is a number specified by the user, using a for loop. (For example - if the user enters in 9, the program should compute 1 + 3 + 5 + 7 + 9). Repeat until the user wants to stop (you can do this part with any loop you'd like). (Side note - do you notice a connection between the number that is entered and the answer?)
2. Recall the program that you wrote that searches a sentence for a particular char. Rewrite this program so that it utilizes a for loop.
No comments:
Post a Comment