Skip to main content

Input Manipulation Using Python

Welcome back to my blog. This post is for the projects in the Computer Science class. In Computer Science we have been learning about different types of coding and how computers work. We have done math problems in binary code and practiced making something from using python. In these two projects we used python to code a advanced calculator that you can use to find what the temperature in Celsius is based off of your input of your temperature outside in Fahrenheit. The second project here is a code that uses your inputs to create a letter to a state representative to talk about something important to you. Both of these codes have been checked multiple times to see if there were any errors or changes that needed to be made. If you would like to try them out for yourself you can do so by typing in your responses on the right to the questions that are asked.

The first project is an advanced calculator that takes an input of a given temperature in Fahrenheit and converts it into Celsius for the user. I was able to do this by putting the formula into python and having the user enter a number that follows that formula to calculate the result. To run this and see how it works all you need to do is type in the temperature in Fahrenheit for you and press enter.

Advanced Calculator:


The second project is a form letter that could be used when writing about some community issues or problems that you care about to a state representative or alderman. This code requires multiple inputs that the user puts in and then it will print them out into a group of sentences. To see this function you just answer the few questions that it prompts you with and will create the letter.

Form Letter:

Those are both of the coding projects that I have created. I hope that they were easy to manage and worked well for you. I had some fun when building them and its nice to see that after many tries you can eventually get your code fixed. Creating the calculator was a little challenging when trying to make the formula run smoothly and have the code identify certain pieces as integers that have to be put into a string for it to be layed out like that. Sometimes the coding can be complicated but I solved it in the end thanks to feedback and my father who works a web designer. It was cool to see what other projects my classmates made compared to my own and see their process of creation. Coding can be used for so much more than changing Fahrenheit to Celsius and I can't wait to use it more in the future.

Comments

Popular posts from this blog

United States Refugees: What must they go through?

Welcome back to my blog. This post is for the workshop class, The War on X. The War on X is a new elective class at GCE this Fall term that focuses on current events that their own small battles and large levels of importance. Some topics that were up for discussion were the War on Afghanistan, the War on Immigration, and Critical Race Theory. For this first unit the majority of the class decided to talk about the War on Immigration. More specifically we focused on the United States-Mexico border and the situation there. We looked into the history of a border and eventually wall being at the border in the first place and moved on to examine more recent events from the presidency of Donald Trump. We also looked at the entry process for immigrants, asylum seekers, and refugees to enter the United States. In this small Action Project we were asked to choose one of the three groups trying to enter the US and look at their entrance process further. I chose to study refugees more because the...

Spilling Into Something Else

Welcome back to my blog! This post is for the first Action Project of the Humanities class, Equality. In this first unit, we have learned about equality and how to reach an egalitarian society. We also dove into intersectionality, sociology, and social stratification. We started reading There There  by Tommy Orange, a novel following the stories of Native American characters in Oakland grappling with a complex and painful history and identity. With the idea of creating zines for our Action Project, we had multiple Field Experiences that gave us a chance to observe and study all kinds of zines. These FEs include looking at the zine collection in the Joseph Regenstein Library at the University of Chicago, Co-Prosperity artist space and gallery to investigate underground and independent media, and Howling Pages Comics, where the owner promotes zines created by young people and small press or independent comics. This Action Project asks us to choose a historical event that exemplifies...

How To Make A Dreamcatcher

This is the second and final Action Project in the units of the Who Am I class in the Humanities Course. This unit was called Doubt and Dream. For a decent amount of this unit we talked a lot about our dreams and what they mean. We talked more about philosophy and psychology like Continental Rationalists or British Empiricists and the Freudian analysis. There were a few Field Experiences that we embarked on such as the Continuum Center, The Art Institute, and also Cheetah Gym where we learned about the philosophy of jujitsu. This final action project was about making a dreamcatcher and explaining what it symbolizes and what it means to us. Everyone's dreamcatcher was different because it is made to represent you and everyone is different. The materials we used for the dreamcatchers were lace, string, wires, and beads. My dreamcatcher and everything about it is below. GHS, 2020 The center of my dream catcher symbolizes remembrance and acceptance of death. We all know that we...