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

The Drinking Bird Clock

Welcome back to my blog. This post is for the third Action Project of the STEAM class Light, Sound, and Time. This unit, Time, has been all about how we perceive time and what it actually is. We first questioned when time originated and why we believe time began directly after the Big Bang. Then, we looked at older methods of telling time such as using the position of the sun for a sundial. We also looked at longitude and latitude and how we determine our position because of it. For determining latitude, you can use the North Star if you are in the Northern Hemisphere or a sextant which is a device that uses mirrors to find the angle of the sun to the horizon. For determining longitude, you can use time zones and Greenwich Mean Time (GMT). To continue our examination of time-telling devices, we spent time studying pendulums and the Foucault pendulum which is a pendulum that can rotate 360 degrees and show how the Earth will rotate beneath it if it were at the North Pole. For Field Expe...

Diddley Bows: One-stringed guitars

Welcome back to my blog. This post is for the second Action Project of the STEAM class: Light, Sound, and Time. This unit, sound, was all about how sound is made and what happens for humans or animals to perceive it. Sound travels as a longitudinal wave and is explained as vibrations coming from a source that we perceive to be sound. To start, we examined how the human ear worked and our range of audible frequencies compared to infrasound and ultrasound which humans can’t hear. We then looked at the speed of sound and how it changes based on the medium it travels through. Following the understanding of how sound travels, we investigated traveling faster than the speed of sound or breaking the sound barrier and also the Doppler Effect. Lastly, we looked at stringed instruments like guitars and found how they make sounds. We also had one Field Experience at Guitar Center to look at the guitars and other instruments there. For this Action Project, the task is to create a diddley bow which...

Redesigning Chicago, One Neighborhood At A Time

Welcome back to my blog. This post is for the third Action Project of the STEAM class Urban Planning. In this third and final unit, Flow, we focused on how cities and urban areas have developed over the years. We first learned about how cities have always been centered around trade which has always relied on transportation and studied different modes of travel over the years that all contribute to urban planning. We took some time to learn about eminent domain which is something the state can use to claim private land from a private citizen for its own use if it has a strong case such as public use. We then looked at INVEST South/West, Chicago Mayor Lori Lightfoot's community development initiative to reverse disinvestment on Chicago's South and West Sides. This initiative is trying to bring together multiple city departments, community organizations, and corporate partners and so far the city has aligned more than $1.4 billion in public and private investment. We then moved on...