CFU'S

Here is some work we did in class to help us understand how to use python

CFU #1

In CFU #1 we learned how to create variables, use input, and use print. Using those 3 things we were able to create a program that allows the user to input their first and last name and the computer will output "Hello" with their name.

CFU #2

In CFU #2 we learned how to do basic operations (multiplication, division, additon, and subtraction) using python. The programs prompts the user to enter their name and 2 numbers. The computer will then use those 2 number to run the operations and output what the equations are equal to

CFU #3

In CFU #3 we learned how to do basic operations (multiplication, division, additon, and subtraction) using python. The programs prompts the user to enter their name and 2 numbers. The computer will then use those 2 number to run the operations and output what the equations are equal to

CFU #4

In CFU #1 we learned what import math was which would allow us to use square root, absolute value, exponents, etc. We created a prorgram where the user is prompted to enter 2 numbers. Those 2 numbers will then go through the quadratic formula and then roots will be outputted

CFU #5

In CFU #5 the user had to enter the amount of pennies, nickels, dimes,quarters, toonies, and loonies. The program we created will then calculate how much money the user has.

CFU #6

In CFU #6 we created a program where we used import random and import math to as the user to enter a number and then another number will be randomly picked by the computer. Those 2 number will then go through the operations the program has and ouput the answers to those equations.

CFU #7

In CFU #7 we learned how to create functions. Using those functions the program will run finding the sum and average of the numbers.

CFU #8

In CFU #8 we learned about if-else statement. Using that we created a program that ask the user if they ordered delivery and if they did the cost and the cost per person.

CFU #9

In CFU #9 we created a program that ask the user how many times they want to roll the dice. For every round a random number will be picked and the user has to guess the number.

CFU #10

In CFU #10 the program uses import random to generate a random number. The user then has to guess the number that was generated.

CFU #11

In CFU #11 the program prompts the user get to pick what function they want to run. Once they input it the function will then run.

CFU #12

In this program the user get to pick what version they want. Version 1 allows the user to guess the password infinite times. Version 2 allows the user 3 guesses

CFU #13

In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.

CFU #14

In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.

CFU #15

In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.

CFU #16

In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.

CFU #17

In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.

CFU #18

In CFU #1 we learned how to use variables and input. We also learned how to print out variables in a sentence.