Programming Warm Up Archive

Content

Happy Summer

Enjoy your summer!  I had a great year with you.

In my absence…

If you are reading this that means that my child is being born (Woohoo!).  I am planning to be absent 10 school days.  Follow the subs instructions, work diligently, and be polite to your fellow students.

  1. You will receive the Mad libs assignment I discussed with you, read it carefully.
  2. It seems easy, but it can be challenging.  Use your time wisely, this is due upon my return.
  3. You are well aware what is acceptable if you should finish.

Thursday, March 26th, 2009

  1. Update your time dependent PHP script.
  2. Be sure it is working, if not troubleshoot your errors.

Monday, Feb 23rd, 2009

  1. Check out your new assignment (click on assignments)

Tuesday, Feb 17th, 2009

  1. Following from the example we created on Friday add the following
    • Store the sex of the children in the array (we already did that), just don’t display it on the screen
    • Give the user the option of displaying any person’s children who has at least one girl (format your output nicely)
    • Also, allow the user to pinpoint a person and their child to be displayed in the screen.  For example, ask the user which student they want to see?  ‘2’ is entered which would mean I would want to see the second student and then ask which child would you like to see?  ‘1’ would then display the sex of student 2’s first child.
    • This should be completed before class ends.

Friday, Feb 13th, 2009

  1. Make a new C++ program called lastname-practice-multiArray
  2. Place appropriate comments at the top

Monday, Feb 2nd - Friday, Feb 6th, 2009

  1. Finish the original Assignment (Encrypt and Decrypt a message)
  2. On Tuesday Ben is going to lecture on manipulating files.
  3. After his lecture, your new assignment is to make the same program as before but the program must open a text file (.txt) and decypher or encrypt its contents (depending upon the users choice).  It’s really easier than it sounds.
  4. The next assignment is a fun and easy assignment that Ben will introduce when/if everyone is finished.
  5. Stephen and David, you need to complete your assignment before you can get back on the computer.  The sub has been notified.  And to any others who decide to play games or watch movies, the sub has plenty more assignments for you.
  6. Please be respectful and polite to both the sub and Ben.  Thanks and see you next week.

Thursday, Jan 29th, 2009

  1. Let’s discuss the current project and where we’re headed.

Thursday, Dec 18th, 2008

  • Strings explained today.
  • What is a palindrome?

Monday, Dec 15th, 2008

  1. Review the test Data for the Measurement Problem

Thursday, Dec 11th, 2008

Assignment 9

Write a program that asks for the user’s height, weight, and age and then computes clothing size according to the following formulas:

Hat size = weight in pounds divided by height in inches and all that multiplied by 2.9.

Jacket size (Chest in inches) = height times weight divided by 288 and then adjusted by adding one-eighth of an inch for each 10 years over age 30.  (Note that the adjustment only takes place after a full 10 years.  So, there is no adjustment for ages 30 through 39, but one-eighth of an inch is added for age 40)

Waist in inches = weight divided by 5.7 and then adjusted by adding one-tenth of an inch for each 2 years over age 28.  (Note that the adjustment only takes place after a full 2 years.  So, there is no adjustment for age 29, but one-tenth of an inch is added for age 30.)

Use functions for each calculation.  Your program should allow the user to repeat this calculation as often as the user wishes.

Friday, Dec 5th, 2008

  1. For a given problem users are dealing with circles inside of squares.  The user wants to input the radius of a circle and the length of one side of a square.
  2. The user wants a result set including the following: the Area of the Circle, the Area of the Square, and the percentage of Area the circle takes from inside the Square
  3. Pass a single variable in the function call.  If the variable equals 1 then spit out the answers inside the function, if the variable equals 0 then return the percentage back.
  4. Consider what to do if the user enters a circle that is larger than the square.  (Tell them to enter the circle radius again)

Thursday, Dec 4th, 2008

  1. 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.
  2. Call the program classwork10

Wednesday, Dec 3rd, 2008

  1. 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.
  2. This is a classwork not an assignment.

Tuesday, Dec 2nd, 2008

  1. What is a parameter?

Monday, Dec 1st, 2008

  1. What does this do?
  2. result+=5;

Wednesday, Nov 26th, 2008

  1. Get all of your files turned in today.
  2. 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)
  3. Rename example: P-7-brown-lastname,firstname-assmname.cpp

Tuesday, Nov 25th, 2008

  1. GET TO WORK!

Monday, Nov 24th, 2008

  1. We have a guest who is observing Mr. Brown so we will pick up with Mike Tyson tomorrow.
  2. Make a new Code Warrior Project called do-while-practice
  3. Place the comments at the top and then turn off your monitor.
  4. Get out a piece of paper and a writing utensil to take some lightweight notes.

Tuesday, Nov 18th, 2008

  1. 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

  1. Create a new program called practice-loop2

Thursday, Nov 13th, 2008

  1. Make a new cpp file.
  2. Call it loop-practice

Wednesday, Nov 12th, 2008

Tuesday, Nov 11th, 2008

  1. Open your files from yesterday
  2. Let’s talk about questions you have.

Monday, Nov 10th, 2008

  1. 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)
  2. Finish your program from Friday
    1. 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.
  3. 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

  1. Open Code Warrior

Thursday, Nov 6th, 2008

  1. Define the word Array in your own words in Word
  2. Below that paste in a definition you find from an Internet resource.

Wednesday, Nov 5th, 2008

  1. Bonus Day: Finish your Game today.
  2. If you are done work on your Centuar.

Friday, Oct 31st, 2008

  1. Your game is due today, be sure I have it electronically and printed.
  2. If you are finished work on your Centaur

Tuesday, Oct 28th, 2008

  1. Continue working on your game
  2. It is due Friday, 10/31.

Friday, Oct 24th, 2008

  1. Continue working on your game.
  2. 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

  1. Open our program from yesterday

Monday, Oct 20th, 2008

  1. Define string (in the programming sense)
  2. Compare your answer with your neighbor

Thursday, Oct 16th, 2008

  1. On a piece of paper write a switch statement for rolling a die (1 thru 6)
  2. I am just interested in the portion for the switch; don’t write any other part of the program.

Wednesday, Oct 15th, 2008

  1. 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)
  2. 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

  1. You have half of todays period to finish the age indicator program AND turn it in.

Monday, October 13th, 2008

  1. Get out your pseudocode worksheet from Friday.

Wednesday, Oct 8th, 2008

  1. From yesterday’s usage define pseudo-code.  What is it?  When should it be used?
  2. Convert the following line of C++ code to pseudo-code
    cout << "Your grand total is " << total;
  3. Write your answers below your warm up from yesterday in Word

Tuesday, Oct 7th, 2008

  1. At any given time how many days of the week can it be?
  2. On any given roll of a standard six sided die, how many numbers can roll?

Monday, Oct 6th, 2008

  1. Today is the last day to work on Assm 4 - the paint program
  2. It should be turned in both electronically and printed
  3. If you are finished you should be working on your griffin.

Monday, Sept 29th, 2008

  1. Continue working on the Paint Assm
  2. We will be reviewing the logic behind the program today

Thursday, Sept 25th, 2008

  1. Open Word
  2. Write down questions you have from yesterday about the new assignment.

Wednesday, Sept 24th, 2008

  1. Open and read Assignment 4 Description
  2. It will help you greatly if you read the Assm 4 Notes as well
  3. 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?
  4. If you have no clue, do everything except the calculation of paint cans
  5. 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

  1. You have the entire period today to complete Assignment 3
  2. If you are done, work on your Griffin
  3. Use these images as inspiration: one, two, three, four, five, six, seven, eight, nine, ten

Thursday, Sept 18th, 2008

  1. You have today and tomorrow to complete Assm 3
  2. Use your time wisely and ask if you have questions

Wednesday, Sept 17th, 2008

  1. Please open your program from yesterday

Tuesday, Sept 16th, 2008

  1. Continue finishing up your data type chart

Monday, Sept 15th, 2008

  1. Knowing what you know about programming and the everyday definition of the words below attempt to define them in programming sense.
  2. Words to define: constant, data type

Friday, Sept 12th, 2008

  1. Open your assm4 file.

Thursday, Sept 11th, 2008

  1. Turn in your Gift Certificate Program (assm 3)
  2. Reminder: we turn things in by printing them AND by copying only the cpp into the hand in bin
  3. Once turned in, open Assm 3 in CodeWarrior and await me

Wednesday, Sept 10th, 2008

  1. Turn off your monitors

Tuesday, Sept 9th, 2008

  1. In your own words, after our discussion from yesterday, formulate a definition of variable.
  2. Write it on your Word document from yesterday, (be sure your name is on it) print it and turn it in
  3. Open your cpp program from yesterday so we can finish.

Monday, Sept 8th, 2008

  1. Open MS Word
  2. Using google, define variable. Copy and paste the definition to MS Word.
  3. Be prepared to share the best definition you find.
  4. Write a mathematical formula that contains a variable. Type it in MS Word.

Friday, Sept 5th, 2008

  1. You have 25 min to complete your program and turn it in
  2. If you are done explore Photoshop
Jeff Brown
Montgomery County Public Schools
25921 Ridge Road
Damascus , MD , 20872 USA
(301) 253-7062