Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The computer language is in processing. To create a program that will display a ball bouncing up and down on the screen. The movement of

The computer language is in processing.

To create a program that will display a ball bouncing up and down on the screen. The movement of the ball should be governed by "pseudo-physics." That is, for each frame (execution of draw() function) the new height (y-value) is calculated as follows.

velocity = velocity + timeStep * acceleration

height = height + timeStep * velocity

Tasks:

  1. Design a method (algorithm) to solve this problem using pseudocode or a flowchart.
  2. Translate your algorithm into an appropriate Processing program and test it.

Submit:

  • Pseudocode version of algorithm -or- flowchart version of algorithm
  • Processing program

Notes:

  • Remember: The positive direction for the y-axis in Processing is bottom to top.
  • The ball merely needs to bounce up and down; no horizontal (x) motion.
  • Be sure to include a program header (program name, purpose, your name, date created), and other appropriate inline comments.
  • You may add whatever additional features you wish. However, doing so will not impact your grade either up or down, unless the additional features prevent your successfully completing the project as described above.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago