Java Guessing Game

Shop Work #1

For the javascript project I made a guessing game where you have to guess a randomly selected number between 1 and 100. The program will prompt the user to enter a guess and if the guess is less than the number the prompt will display “low” and then allow the user to enter another number. If the guess is higher than the selected number then the prompt will display “high” and allow the user to select another number. This process will repeat until the user gets the correct number, at which point the program will stop running and will display “correct!”.  

 

For this project I had to be reviewed on how to make the random number generator. We were also working on making functions and using parameters for the assignment. The function was fairly simple to make as all I had to do was pass a parameter for the guess that the user made and the random number generated by the program. Then make else-if statements to check the user’s guess against the random number to decide if the program should print “low”, or “high”.  There is also a while loop in the function that goes around the if statements and will continue to run while the user’s guess does not equal the random number.  When the user’s guess does equal the random number the function will exit the loop however the function will not stop executing because the print statement to tell the user that their guess is correct is outside the loop but inside the function.

 

Old Colony Website Design

Shop Work #1

This assignment was focused on seeing how we applied everything from the last year of learning into a real life website. This was also the first assignment we actually worked together as a group on.  I thought it would definitely be interesting to see how we worked as a team but I wasn’t sure how well we actually we would work as one. The assignment was to design a new website for our school (we were not publishing it, just practice). I found the assignment really fun to do because we chose this assignment, it was something we all agreed we wanted to do. Mainly because the actual website had just been done over and we all hated it, we thought we could do better. Famous last words. In hindsight we were incredibly naive, we thought we had the skills of professionals.

The website was…actually not bad there were some images that wouldn’t load, but we summed that up to a software problem. However for what it is and considering our skill level, its really good. We even got it responsive to a certain point. One thing we could’ve definitely improved upon was our organization, we had a Trello board, and we separated who would do which parts but the Trello board was eventually overflowing with different tasks. The most annoying thing about the assignment was the software we were working with, it wouldn’t allow us to all be on one site, I don’t even remember how we did it in the first place all I remember is that it caused a lot of problems for us. Overall the project was really fun and interesting, and I think we learned how to work together better and organizational skills.