Java Menu Drawing Sine

Launched Feb. 2023

Tags

  • Java
  • User Input, Scanner
  • Input Validation
  • Graphics, DrawingPanel
  • Backend Software Development
  • Math

This was one of my first projects in Java, where I began to learn to gather input from the user, validate and process that input, and display different visuals and results.

A menu in the console showing various options for user input.

Feel free to download the code from my GitHub repository, or watch the video below to see what the program does. The menu has these options:

  1. Calculate the y value (vertical position) for a given x value (horizontal position, in radians) on a sine graph.
  2. Calculate the area of the sine graph roughly using between 1 and 500 rectangles. More rectangles is more accurate.
  3. Draw the sine curve with 1 to 500 rectangles for a visualization, using the DrawingPanel import from the text buildingjavaprograms.com to simplify Graphics.
  4. Exit the program.

Thanks for checking out my project!

If you'd like to see the full documentation for this project, feel free to view it here!

Back to Portfolio

Thank you!

Thanks for checking out my work! If you've got a project or job you think suits me, contact me here, by email, or on LinkedIn.

Contact Me

Thanks for dropping by!

Back to top