Intro to Algebra
We started Chapter 6 today - section 6.1 - Solving one-step inequalities.
I also gave a new schedule and assigned homework #1.
Computer Science 2
In order to warm everyone back up to computer programming, I gave two problems. You need to demonstrate that each of these runs correctly for credit on this assignment:
1. Write a program that prints out a list of perfect squares up to (and including) the integer value specified by the user. For example, if the user enters in 100, the output of the program should be:
1 4 9 16 25 36 49 64 81 100
Print an error message to the user if they enter in a negative number.
2. Write a program that will count the number of instances in a given sentence of a specified char by the user. For instance:
The user enters in a sentence: “I love Computer Science.”
Then specifies a char: o
The program then returns something to the effect of: “There are 2 ‘o’s in your sentence.”
No comments:
Post a Comment