Pre-AP Computer Science (2012-2013)


Assignment #1 - Due Date -Tuesday 10/23/2012

1) "THE GUESSING GAME" - create a random integer and put in to a var called number1 (up to and including 10)
2) keep prompting the user until they correctly guess the random number -- when they do -- print out good guess.
3) else if wrong guess, print out bad guess - try again..

Assignment #2 - Due Date - Thursday 10/25/2012
1) Write a  calculator program..
--constantly prompt user for following string input:
q - quit program
+ - will add
- will subtract
* will multiply
/ will divide.
% will mod
if they enter anything other than the q -- you need to prompt user for two doubles and the do
operation - and then print out answer -- then go back to main menu to start all over again...

Assignment #3 - Due Date - Monday 10/30/2012
Star Wars Name Generator
How to determine your "Star Wars" name:


For your new first name:

1. Take the first 3 letters of your 1st name and add
2. the first 2 letters of your last name

For your new last name:

3. Then take the first 2 letters of your Mom's maiden name and add
4. the first 3 letters of the city you were born

How to determine your Star Wars honorific name and title:
1. take the last three letters of your last name and reverse them.
2. add the name of the first car you drove/owned
3. insert the word "of"
4. tack on the name of the last medication you took.

Assignment #4 - Due Date - Monday 10/30/2012
Digits


Write a program that prompts the user to enter an int and then outputs both the individual digits of the number and the sum of the digits. For example, the program should: output the individual digits of 3456 as :
3
4
5
6
and the sum is 18