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

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...

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...

Building My Future - A Survival Guide

Welcome back to my blog! This post is for the second Action Project of the Humanities class, Endurance. In this unit, Apothesis, we started to think about our futures and contemplate where we would go from here. As the end of the school year nears the end, everyone is preparing to step into the next chapter of their life. We continued to look at how other influential figures have endured and their journeys over their lives. We also examined the difference between endurance by force and choice and the skills required in each situation after a Field Experience at Bender's Martial Arts. While we were there, we engaged in a fitness boot camp that tested our physical and mental limits. For this Action Project, we were tasked with creating a survival guide that could serve as a map for our futures. The survival guide focuses on our dream or mission and what we will need to fulfill that mission as we grow up. I hope you enjoy reading about my plan for the future. I hope you enjoyed readin...