Tuesday, 3 March 2020

Using Python 3

Today i learnt how to independently draw a flow chart, I also learnt how to put in programmes to do mathematical equations.
NumA = input("please enter the first number.")
NumB = input("please enter the second number.")
Add = int(NumA) + int(NumB)
print ("Addition: " + str(Add))
Sub = int(NumA) - int(NumB)
print("Subtraction: " + str(Sub))
Mul = int(NumA) * int(NumB)
print("Multiplication: " + str(Mul))
Div = int(NumA) / int(NumB)
print("Division: " + str(Div))
      
After that, I tried to create a program that calculated the circumference of a circle if a radius was entered into the program (it isn't finished).
NumA = input("please enter the radius of a circle")
Diameter = int(NumA) * 2
print ("Multiplication: " + str(Diameter))
Cir=

Tuesday, 18 February 2020

Using Python 2

This lesson we drew flow charts which showed us an idea of how programmes work, after that we used python to create a simple program which when run, will display the name we entered into the program.
I learnt that in programming, characters are counted from 0, not 1. i also learnt that there are different shapes that we use in flow charts to represent different commands.

Tuesday, 28 January 2020

Using Python 1

Today i ran some programs using Python, i ran a program that printed letters to make a Christmas tree.
Here is my program:
print("hello world")
print("                                 I")
print("                                III")
print("                               IIIII")
print("                              IIIIIII")
print("                               IIIII")
print("                             IIIIIIIII")
print("                            IIIIIIIIIII")
print("                                 O") 
print("                                 O")
print("                                 O")

Tuesday, 14 January 2020

Scratch reflection and evaluation

https://scratch.mit.edu/projects/343108039/

Were you able to create the game you planned?

-I changed some of my plan so it isn't the same as the original plan. I changed it because the original plan was too hard and would take too long to complete.


Describe 2 problems that you overcame when creating your scratch game?

1. A lot of sprites would be on the wrong layers like they would be behind or in front of another sprite which they weren't supposed to be on. I solved this problem by using a block that moves sprite forwards or backwards or by a layer or to the first or last layer.

2. On the second level that was the first "lava"i put in the game, at first, the sprite wouldn't die after touching the lava the sprite would just go through it. To solve this problem i used a sensing block and a motion block, every time the sprite touched the orange lava, the sprite would automatically go to a designated spot.


What have you learnt about programming during the project?

- Programming is pretty easy once you get the hang of it

-If you forget or put a block in the wrong place, the whole game might not work


If you were to create another game, what would you do differently

-I would make more levels and have other sprites that would kill me instead of lava only