This program generates a random password. The password is at least 10 characters long and includes at least 1 number and special character. You can tell the program how many special characters, numbers, and letters you want. The password has letters, numbers, and other characters randomly dispersed throughout. For example,…
Python
Python Tic Tac Toe Using Tkinter
Copy and paste this code into a python IDE, and you got tic tac toe!
Python Simple and Compound Interest Calculator
Don’t have a calculator? Don’t worry. Just paste this code into Python and let Python do all the work.
%02d – python
In python, %d is similar to %s, but uses numbers instead of strings. This prevents typing str() continuously. The %02d could be useful in creating leading 0s. This could be used in digital clocks that need to always have 4 digits. Example: Output: Example: Output:
CCC ’17 S3 – Nailed It!
Nailed It! is a CCC senior 3/ junior 5 question. The method to solve this is similar to Escape Room. The first thing to do to solve this problem is to create a list that measures that number of boards that are length N into the term N. Then, we…
CCC ’20 S2 – Escape Room
For a Junior 5 question, Escape Room isn’t that easy. The brute-force method would be to use breadth first search and find factors, but that will almost guarantee the time will exceed the limit. To solve this, we will need to use a method that doesn’t require any calculations involving…
CCC ’21 S2 – Modern Art
Modern Art is a CCC problem. Notice that if you brush on a specific square for an odd number of times, it ends up being a gold square. If it is even or 0, it is a black square. Using this, we could create a table that has the numbers….
Mouse Journey
Mouse Journey is a problem that is related to simple math. Read the problem first. The logic is simple: the total number of possibilities is the number of possibilities for the one above and the one to the left. The start is 1, and the cat areas are 0. Now,…
CCC ’03 S3 – Floor Plan
Floor plan is a CCC senior 3 problem that is very confusing at first, and gradually becomes more understandable. IndexError is more common. Functions greatly aid to help make the code for the solution. First, make a function called findarea. This function, given a coordinate, will find the area of…
CCC ’00 S2 – Babbling Brooks
Babbling Brooks is an example of a problem that is good for functions. There could be two functions, one of them seperates and the other joins. There could be a simple part that isn’t in a function, but most of the work and ligic is into the functions. Sample solution…
