My Fusion Home For A Year

  • For this assignment, we were asked to create a simple project in Onshape, testing our skills on that platform. We were told to make something simpler, like a skateboard, rather than a functioning NASA-level rocket. With this in mind, I started designing my skateboard. Keep in mind, I hadn’t used Onshape for a while and my skills were a bit rusty.

    I started my design by creating a sketch. This allowed me to draw a simple rectangle in the middle of the screen, which would end up becoming the base of the skateboard. I then used the Extrude tool to turn the base of the skateboard into a 3d object. Now I had a 3d rectangle with no curves which was my objective. Using the Fillet tool, I added edges on the base of the skateboard to give it a more accurate representation. I then added another rectangle on the bottom to create the area that the wheels would be attached. I then had to use the Extrude tool again to remove the bottom part of the base to then be able to create the part that holds the wheels. I created another sketch of another rectangle to build the actual wheel base. Using the Extrude tool once again, I created the rectangle in the middle of the skateboard. I then created another sketch of 2 circles in the bottom of the base to create the spot where the axel will go. Using the Extrude tool again, I created a hollow part in the middle of the base for the axels. The base of the skateboard was nearly complete. I still had a weird chunk on the bottom so I hade to create one more sketch and then Extrude to get rid of that part. To create an aerodynamic looking skateboard, I had to use the Fillet tool on the bottom of the base to shave off some of the unimportant material at the bottom that makes the skateboard look artificial.

    Moving on to the second of three part studios, I had to create the axels that would connect the wheels to the car. This was very straight forward. All I had to do was sketch a simple circle and then Extrude to the length that I wanted. Since I was going to put everything together during the Assembly phase, I only had to sketch one.

    I then started working on the wheels which, as the same as the axels, I only had to draw one wheel using the sketch and Extrude tool. Since I wanted the axle to fit snug into the wheels, I had to create another extrude and have it go all the ay through the tire. I know had a tire with a hole in the middle. I created one more extrude and put another circle in the middle of the tire and extruded up to a length where the axel would fit snug.

    Once I had completed all of the pieces, I had to put them together in the Assembly window. Since I had only sketched one axel and one tire, I had to duplicate them in the assembly window. Assembly was one of the hardest parts because I had to line up every individual piece and make sure they all fit together. I then had to create a blueprint of everything that I had made and also a Bill of Materials.

    Overall, this project taught me crucial skills about how to use Onshape, which will be crucial throughout the year. This was a fun way to test my skills and learn more about how to use certain tools like the Fillet tool.

    https://sgs.onshape.com/documents/8575b607013d299eaa77365d/w/db1dd5b5526939fa2150faff/e/fd6345add22f97fea774c154?renderMode=0&uiState=68e29f826f8e0a00faa8a954

  • For my coding assignment, I was asked to design a simple code with the help of AI that made a game. For someone with no background in coding, this was a daunting task. I had to start by asking Gemini, “Please guide me through coding.” This was probably one of the hardest parts. Gemini wants to just do everything for you. Once I got it to help me step by step, I started to make progress. This coding assignment took me more time then I thought it would because I thought I knew more about coding than I did, and I didn’t realize how much de-bugging you have to do.

    The Code

    Before I get into the coding part, I want to say that the most important aspect of this assignment was a user friendly design. I added funny text results and an easy way to enter the number. I also didn’t want the game to crash on a misprint so I made sure that even if a letter is entered, the game wouldn’t crash. I start with import random to tell the code that I am giving it a set of numbers, and it has to pick one. Then I move on to telling it that the “secret number” still has to be picked at random and is between 1 and 100. Using import random and secret number, I was able to create a different number every time. This would allow the player to try again and not know the answer. I then say enter the code for the actual guessing of the number. I knew one of the hardest parts would be that someone may try to crash my program by entering and letter so I told Gemini to help teach me how to change that. I used the else and break command to keep the input valid and ValueError to give the response if the input was wrong. Then using the greater than and less than signs, I added more text prompts for correct guesses. When debugging, I realized that I hadn’t adding headings and Gemini helped me fix this error. Then, saying else helped because if the answer wasn’t a number like I mentioned before, I could change the response to make it something that would notify the person to enter an integer. It would also work for if the answer was over 100. Once again using the greater than and less then signs, I was able to add text prompts to tell the player if their guess was too high or too low. Once again I had some help from Gemini on the code mumbo jumbo while debugging this part of the code. Then using the code from before, I looped it so it would run until the player guessed the number. I used a lot of excepts and while because this code had many factors that need to be filled before the end result. The looping part was tricky as well so I tried a few times but then resorted to Gemini to help me out. I the had to figure out a way to break that input loop when the response wasn’t a variable and then get back into that input loop. Finishing the code of with print ( Congratulations, one of the few things I remember from when I tried coding when I was 5.

    Overall, this coding assignment taught me some critical skills I will need for the rest of the year and how to efficiently use Gemini, which I had never used before. I couldn’t find my Gemini transcripts because I used the Gemini on Colab, so there were no transcripts.

    import random
    
    secret_number = random.randint(1, 100)
    
    while True:
        try:
            guess = int(input("Enter your guess (between 1 and 100)If you dare!: "))
            if guess < 1 or guess > 100:
                print("Please enter a number between 1 and 100.")
            else:
                break  # Exit the input loop if the input is valid
        except ValueError:
            print("Invalid input. Please enter an integer.")
    
    
    while guess != secret_number:
        if guess < secret_number:
            print("Too low! Juuuuuust a bit outside. Try again.")
        elif guess > secret_number:
            print("Too high! So close. Please Try again.")
    
        while True:
            try:
                guess = int(input("Enter your guess (between 1 and 100): "))
                if guess < 1 or guess > 100:
                    print("Please enter a number between 1 and 100.")
                else:
                    break  # Exit the input loop if the input is valid
            except ValueError:
                print("Invalid input. Please enter an integer.")
    
    
    print("Congratulations! You guessed the number! Try agian,     if you dare!")

    https://colab.research.google.com/drive/1Xzk_TWiqmGnEsLUq4aROnSVb2wwklXpy#scrollTo=bbfbfe0dhttps://colab.research.google.com/drive/1Xzk_TWiqmGnEsLUq4aROnSVb2wwklXpy#scrollTo=bbfbfe0d

  • Welcome to User’s blog Sites. This is your first post. Edit or delete it, then start writing!