Programming Warm Up Archive
Thursday, Dec 4th, 2008
- Write a program that calculates the hypotenuse of a triangle. Ask the user for the things you need and write a function to perform the actual calculations.
- Call the program classwork10
Wednesday, Dec 3rd, 2008
- Write a program that uses a function to find the circumference of a circle. Ask the user for the thing(s) you need to solve for C (circumference) and define pi as a constant. I suggest taking pi out to around 20 decimal places. Use the function CircleC to find the circumference and display it on the screen.
- This is a classwork not an assignment.
Tuesday, Dec 2nd, 2008
- What is a parameter?
Monday, Dec 1st, 2008
- What does this do?
- result+=5;
Wednesday, Nov 26th, 2008
- Get all of your files turned in today.
- You need to turn in the following:
- Prime Number: Print out the code and staple it to the pseudo-code. In addition, rename the file and place it in the hand in bin. (assm 8)
- Calorie Calculator: Print out the code, I do not need thew pseudo-code. In addition, rename the file and place it in the hand in bin. (dowhile-practice)
- Rename example: P-7-brown-lastname,firstname-assmname.cpp
Tuesday, Nov 25th, 2008
- GET TO WORK!
Monday, Nov 24th, 2008
- We have a guest who is observing Mr. Brown so we will pick up with Mike Tyson tomorrow.
- Make a new Code Warrior Project called do-while-practice
- Place the comments at the top and then turn off your monitor.
- Get out a piece of paper and a writing utensil to take some lightweight notes.
Tuesday, Nov 18th, 2008
- Assignment 10:
Write a program that finds all of the prime numbers between 1 and 100. A prime number is a number that can only be divided by one and itself.
Monday, Nov 17th, 2008
- Create a new program called practice-loop2
Thursday, Nov 13th, 2008
- Make a new cpp file.
- Call it loop-practice
Wednesday, Nov 12th, 2008
- Read this http://www.hitmill.com/programming/cpp/forLoop.htm
- Then apply the for loop to your birth day project. C’mon you can do it. Don’t give up!
- Ben will help.
Tuesday, Nov 11th, 2008
- Open your files from yesterday
- Let’s talk about questions you have.
Monday, Nov 10th, 2008
- Mr. Hanson will be with you today, I will be back tomorrow. (Doctor appt for a sonogram to look at our little minotaur, look it up)
- Finish your program from Friday
- Make a program that allows the user to enter 5 test scores and then you find the highest, lowest, and average test score. Store the 5 test scores in an array.
- When you finish write program2:
It is surprising that anytime you have 30 or more people together the chances of two people having the same day as their birthday are quite good. Write a program to mimic this situation. Your program should randomly generate 30 numbers within the range of 1 to 31 and store them in an array called birthdays of type int. At this point the program will ask the user for his/her birthday (just the number of the day, ie: February 7th, 1961 would just be 7) and then compare your birthday against all the values stored in the array. If any of them match display a message that tells the user a match was found. If no matches are found then tell the user that no matches were found. This is classwork and due in the middle of the period tomorrow.
Friday, Nov 7th, 2008
- Open Code Warrior
Thursday, Nov 6th, 2008
- Define the word Array in your own words in Word
- Below that paste in a definition you find from an Internet resource.
Wednesday, Nov 5th, 2008
- Bonus Day: Finish your Game today.
- If you are done work on your Centuar.
Friday, Oct 31st, 2008
- Your game is due today, be sure I have it electronically and printed.
- If you are finished work on your Centaur
Tuesday, Oct 28th, 2008
- Continue working on your game
- It is due Friday, 10/31.
Friday, Oct 24th, 2008
- Continue working on your game.
- We have three rounds of Number Stumper again today.
Wednesday, Oct 22nd, 2008
Stop, calibrate and listen.
wait for Mr. Brown.
Tuesday, Oct 21st, 2008
- Open our program from yesterday
Monday, Oct 20th, 2008
- Define string (in the programming sense)
- Compare your answer with your neighbor
Thursday, Oct 16th, 2008
- On a piece of paper write a switch statement for rolling a die (1 thru 6)
- I am just interested in the portion for the switch; don’t write any other part of the program.
Wednesday, Oct 15th, 2008
- On a blank piece of paper write the pseudocode for a program that allows the user to pick a number between 1 and 10 (inclusive)
- If the user picks 1 then say “One, that’s my fav”, if the user picks 7 then say “Seven is the most common lucky number, but not mine”, if they pick anything else say “wrong”
Tuesday, Oct 14th, 2008
- You have half of todays period to finish the age indicator program AND turn it in.
Monday, October 13th, 2008
- Get out your pseudocode worksheet from Friday.
Wednesday, Oct 8th, 2008
- From yesterday’s usage define pseudo-code. What is it? When should it be used?
- Convert the following line of C++ code to pseudo-code
cout << "Your grand total is " << total; - Write your answers below your warm up from yesterday in Word
Tuesday, Oct 7th, 2008
- At any given time how many days of the week can it be?
- On any given roll of a standard six sided die, how many numbers can roll?
Monday, Oct 6th, 2008
- Today is the last day to work on Assm 4 - the paint program
- It should be turned in both electronically and printed
- If you are finished you should be working on your griffin.
Monday, Sept 29th, 2008
- Continue working on the Paint Assm
- We will be reviewing the logic behind the program today
Thursday, Sept 25th, 2008
- Open Word
- Write down questions you have from yesterday about the new assignment.
Wednesday, Sept 24th, 2008
- Open and read Assignment 4 Description
- It will help you greatly if you read the Assm 4 Notes as well
- Modulus divides a number and instead of returning the answer it returns the remainder, so 4%2 equals 0 because 2 goes into 4 evenly. However 5%2 equals 1 because 2*2 is 4 which leaves a remainder of 1. Now the question becomes how can you use modulus in this program?
- If you have no clue, do everything except the calculation of paint cans
- This is due on Friday at the end of the period.
Tuesday, Sept 23rd, 2008
- What is a condition?
- Write your own definition in word and then look up a definition.
Friday, Sept 19th, 2008
Thursday, Sept 18th, 2008
- You have today and tomorrow to complete Assm 3
- Use your time wisely and ask if you have questions
Wednesday, Sept 17th, 2008
- Please open your program from yesterday
Tuesday, Sept 16th, 2008
- Continue finishing up your data type chart
Monday, Sept 15th, 2008
- Knowing what you know about programming and the everyday definition of the words below attempt to define them in programming sense.
- Words to define: constant, data type
Friday, Sept 12th, 2008
- Open your assm4 file.
Thursday, Sept 11th, 2008
- Turn in your Gift Certificate Program (assm 3)
- Reminder: we turn things in by printing them AND by copying only the cpp into the hand in bin
- Once turned in, open Assm 3 in CodeWarrior and await me
Wednesday, Sept 10th, 2008
- Turn off your monitors
Tuesday, Sept 9th, 2008
- In your own words, after our discussion from yesterday, formulate a definition of variable.
- Write it on your Word document from yesterday, (be sure your name is on it) print it and turn it in
- Open your cpp program from yesterday so we can finish.
Monday, Sept 8th, 2008
- Open MS Word
- Using google, define variable. Copy and paste the definition to MS Word.
- Be prepared to share the best definition you find.
- Write a mathematical formula that contains a variable. Type it in MS Word.
Friday, Sept 5th, 2008
- You have 25 min to complete your program and turn it in
- If you are done explore Photoshop






