Thursday, 10 September 2026

Code Solutions

"""
This program asks the user for three ingredients,
three amounts, and a number of servings, and
determines how much of each ingredient is needed
to serve the specified number of servings.
"""
# Get ingredient one and ounces
first_ingredient = input("Enter ingredient 1: ")
first_ounces = float(input("Ounces of " + first_ingredient + ": "))
# Get ingredient two and ounces
second_ingredient = input("Enter ingredient 2: ")
second_ounces = float(input("Ounces of " + second_ingredient + ": "))
# Get ingredient three and ounces
third_ingredient = input("Enter ingredient 3: ")
third_ounces = float(input("Ounces of " + third_ingredient + ": "))
# Get number of servings
servings = int(input("Number of servings: "))
# print(total ounces of each ingredient)
print("Total ounces of " + first_ingredient + ": " + str(first_ounces * servings))
print("Total ounces of " + second_ingredient + ": " + str(second_ounces * servings))
print("Total ounces of " + third_ingredient + ": " + str(third_ounces * servings))

Wednesday, 9 September 2026

Welcome to Programming 11/12/AP

Lab Expectations:
  • No food or drinks in the computer lab!!!! 
  • Attend all classes. If you are absent, it is your responsibility to make up the work (not mine). 
  • Complete all of the assignments to the best of your ability. You will not succeed in this class if you don’t do the work. 
  • Be prepared in your seat, when the second bell goes 
  • Only one person talks at a time. This includes any/all announcements. Do not be typing on the keyboard or playing with your mouse also falls under this category. 
  • Leave your area as you found it. Push in your chair, log out of the computer , the equipment should be in the condition you found it. 
  • CLOSE THE CLASSROOM DOOR!!!
  • Do not live on your cellular phone, if I notice it, I will take it away.  

Programming 11 - Coding

Programming JavaScript at CodeHS.com  Go to Link  
Class code is DF5BB

Programming using Python at CodeHS.com  Go to Link 
Class code is 26744

If you're new and need not sure of your capabilities start with:
Programming using Karel at CodeHS.com  Go to Link
Class code is 3549F

Once you've finished that, you can go onto any of the ones listed below.