I wrote a program that will ask the user for a series of words. Then plug them into a paragraph template.
The assignment was easy because we mostly used concatenations and variables. It was good practice for the work we have completed before. To improve the code, I would have added more sentences so the story would have been longer and more engaging.
For this lab, you will find the area of an irregularly shaped room with the shape as shown above. Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area using are of a rectangle (length * width) and the area of a right triangle is (0.5 * the base * height).
I liked this project because it was an adventure to use Math to find the area of the irregular shape. It was difficult to find the area of the shape with a plan of how to divide the shape. After the plan, the assignment went smoothly.
You have decided to design a fashion chatbot that helps people pick out their fashion preferences. Your bot can gauge what types of clothes and accessories the user might like. Your chatbot should ask the user the following (minimum requirements for the grader) and then give answers depending on the answers the user inputs:
at least 6 questions
at least 3 if-elif-else statements
the use of the random module and randomly generated numbers
Based on these criteria, some responses will be based on what the user types and some will be based on random numbers.
It was a stressful project but when it was complete I was happy that the code worked well together. The difficulty was to keep track of the number of variables and what the chatbot will say when the user input yes, no, or any other answer. After completing it, it was fun to talk to the Chatbot. To edit the code, I would have added more questions to talk to the user.
Write a program that will ask a user how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is divisible by 3 or not. Continue doing this as many times as the user indicated. Once the loop ends, output how many numbers entered were divisible by 3 and how many were not divisible by 3.
I enjoyed this project because it was centered around one of my favorite subjects, Math. It was fun to figure out how the code should work. Working with the input function, variable, for loops and the modulus was a good way for me to practice my skills in coding and Math. A challenge was to make the user determine the number of times the program should check if the number is divisible by 3. To make the code more challenging, I would add an input in which the user can ask what number they can divide by.
Create a unique ringtone using python code in a platform called earsketch. The criteria was: must use both of the EarSketch functions fitMedia() and setEffect() You must use string operations (concatenation or splicing) to create your own beat, using the EarSketch function makeBeat(). You must use for loops to add repetition to your ringtone. You must use at least one user-defined (custom) function to create musical sections for your ringtone. Your ringtone should be a minimum of 60 seconds and a maximum of 90 seconds Your ringtone should include a sound clip found in the EarSketch sound library. Your ringtone should appeal to high school students. Your ringtone should use efficient code whenever possible
I had a blast while working on this project. I wanted to make a funky and unique beat that would stand out when played. I wanted the user to enjoy and dance to their ringtone rather than be annoyed at how it sounds. The hardest part of the project was to find beats that blend well together and conveys my theme well. It was a tough task but I believe that I completed it well. The part I enjoyed the most was hearing the product after every choice I made. I felt proud that I could make a song so well put together. I would like to make a different song that had more planning and thought put into the process of making the song.
Create a storyboard that will be used for your animation idea
I wanted to create a fun animation that had a solid background story and the viewers can understand what it is about. The hardest part was finding a topic to explore. It surprised me that it was very hard to come up with an idea.
In this assignment, you will use all of the graphics commands you have learned to create an animated scene. Your program should have a clear theme and tell a story. You may pick any school-appropriate theme that you like.
The program must include a minimum of:
5 circles
5 polygons
5 line commands
2 for loops
1 global variable
I had to change the animation concept because I did not have enough time to create the story I wanted to in the initial storyboard. I enjoyed seeing the end product. If I had more time, I would have made a more detailed animation and made it have more content.
Reflection questions were used to reflect on the animation-making process.
It was nice to reflect on the hard work that I put into the animation. I think that I could have made a more detailed animation and added more content. I think that I could have made a more descriptive story. I think that I could have made the animation more interesting. I think that I could have made the animation more challenging.
Reflection Questions
1. Describe the theme of your project. What is it about?
What story does it tell?
The project was to be about a girl walking her dog in a
forest. I wanted the theme to be peaceful and relatable.
2. How is the theme that you chose above reflected in
the graphics you created?
I used various shapes to create the background and the
characters. It made the peaceful scene that I wanted.
3. Describe a problem, challenge, or error you had while
writing the code for your assignment and how you solved it.
I had an issue with how to use loops to make the animation
run. The way I solved the issue was to do some research on
how to use loops in the animation. I also asked my
classmates how they used the loops in their works. It
helped to hear people explain how they got the animation
to work. Also, I had difficulty making my initial idea into
an animation so I changed into something simpler.
4.Iteration is the process of trying out solutions, then
changing them over and over until a project is complete.
How did you use iteration while creating your program?
I used iteration to have the things I designed to move.
5.If you had more time to work on this assignment, what would
you like to add to your project?
I would have added more details in the animation and made a
short film.
We created a website allowing users to draw on a platform using circles. If the user clicks on the screen, it will erase everything on the screen. We did this code using p5.js, a JavaScript library.
I enjoyed creating the project and using functions and parameters to make the program possible. To edit the code, I would make the dots smaller so they appear as a pencil stroke and change the cursor's icon to a pencil. I would also make it possible for the user to have a access to the option to erase the entire page, or they control where to erase. Overall, I am proud of my work.
In this program, we explored the Carnegie Mellon School of Computer Science graphics module and created various shapes. The final task was to create an avatar.
This is one of my favorite projects because I had the opportunity to be as creative as I pleased. I designed a pirate named Hack. It was very difficult to estimate the correct placement of different shapes.
This program was to create a game in which the goal is to eliminate all of the bricks with a ball while keeping the ball bouncing.
I did everything correct in the code but unfortunately, the module was corrupted, which resulted in my work not working. It is disappointing because the brick-breaking game is one of my favorite apps to play. I believed that I was going to get the opportunity to code something I loved, but I was wrong. I enjoyed coding, but it was impossible to get the full experience without seeing the output.
This Python code defines functions to handle date-related calculations. It checks if a given year is a leap year, calculates the number of days in a given month, considering leap years and calculates the total number of days passed in a given year up to a specific date. Finally, the code prompts the user to input a date and choose between two options: either to calculate the number of days in the given month or the number of days passed in the given year up to that date.
The code was straightforward unitl I had to write the days_passed function. I did not know how to calculate the number of days passed in a year so I did research using the different resources and was able to complete the code.
This Python code serves as a simple event manager. It allows users to add events by specifying the event name, month, day, and year. The code ensures that the entered month and day values are valid (within appropriate ranges) and adjusts the number of days based on whether the year is a leap year or not. Users can add multiple events, and the program will display all the entered events with their corresponding dates in a formatted manner.
This was simple because I was buliding of the foundation that I created in Project 7 which is above. It was challenging to add in the event adding element but it was overall a good learn experience.
This Python code manipulates a 2D list of cities. Initially, iterates through the list and prints each city in a row-by-row manner. Then, reverses the order of the cities within each row of the list and prints the modified list. Essentially, the code demonstrates how to print and manipulate 2D lists containing city names.
I liked this project because it really gave me a challenge. It was I new topic that I had no background knowledge so I had to use trial and error to get the code to run.