Question

No errors were found in the text.

          No errors were found in the text.
        

Added by Dennis B.

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
No errors were found in the text.
Close icon
Play audio
Feedback
Powered by NumerAI
Ivan Kochetkov Kathleen Carty
Jennifer Stoner verified

Supreeta N and 54 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
write-a-code-c-that-solves-the-following-problemsuppose-dave-drops-a-watermelon-off-a-high-bridge-and-lets-it-fall-until-it-hits-the-water-if-we-neglect-air-resistance-then-the-distance-d-in-16542

Write a code (C++) that solves the following problem: Suppose Dave drops a watermelon off a high bridge and lets it fall until it hits the water. If we neglect air resistance, then the distance d in meters fallen by the watermelon after t seconds is d = 0.5 * g * t^2, where the acceleration of gravity g = 9.8 meters/second^2. Write a program that asks the user to input the number of seconds that the watermelon falls and the height h of the bridge above the water. The program should then calculate the distance fallen for each second from t = 0 until the value of t input by the user. If the total distance fallen is greater than the height of the bridge, then the program should tell the user that the distance fallen is not valid.

Supreeta N.

given-a-certain-physics-problem-create-functionprojectilemotion-solver-that-would-take-in-the-following-inputs-below-and-return-the-needed-information-when-the-function-is-called_-name-progr-49461

Given a certain Physics problem create a function(projectilemotion_solver) that would take in the following inputs below and return the needed information when the function is called. Name the program containing the function projectilemotion.py then create another program main_program.py and import projectilemotion.py ‐A long jumper leaves the ground at an angle of 20.0° above the horizontal and at a speed of 11.0 m/s. ‐ (a) How far does he jump in the horizontal direction? (b) What is the maximum height reached? Given a projectile motion problem like this where the angle and speed are given, the range or distance travelled in the horizontal direction can be determined by using the formula: R = (v_i^2 * sin 2θ_i) / g The maximum height can be determined using the formula: h = (v_i^2 * sin^2 θ_i) / 2g

Supratim P.

using-fortran-scientific-programming-language-i-want-you-to-design-a-program-that-is-able-to-calculate-the-quadratic-formula-using-fortran-scientific-programming-languagei-want-you-to-design-58042

Akash M.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,610 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,727 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,401 solutions

*

Transcript

-
00:01 Hello students, as here is the explanation of the code over here which is written in a c+ + program that calculates the distance of watermelon falls given the number of the seconds and the height of the bridge.
00:15 So it also checks if the total distance fallen is greater than the height of the bridge and informs the users if it's not the valid scenario.
00:23 So as of here you can see it defines the constant g representing the acceleration due to the gravity that is 9 .8 and initializes the variables t as well as h to store the input for the time and the height.
00:46 Then the program prompts the users to enter the number of the seconds that is the t and also the program prompts the users to enter the number to enter the waterfall and the height of the bridge above the water that is the height in a meter.
01:03 So then it checks if the entered values are non -negative.
01:08 So if it is a non -negative, if either value is negative then it displays an error and exits from it.
01:16 If both the values are non -negative then the program calculates the distance fallen as the distance fallen is equal to using the formula 0 .5 into the gravity of into the power of t by t is to 2.
01:35 So weight g is the acceleration due to gravity and t is the time in a second...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Join the community

18,000,000+

Students on Numerade


Trusted by students at 8,000+ universities

Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever