Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment must be completed Individually. Discussing ideas and communication between students is encouraged but sharing any part of the code is prohibited and
This assignment must be completed Individually. Discussing ideas and communication between students is encouraged but sharing any part of the code is prohibited and will be considered as plagiarism and a major breach of College's Academic Integrity policy which is defined in ACAD-101. In this project you will create a simple Java console application that will have the user enter several values and will use these values to calculate the position of a projectile after a specific period. Your program will calculate the maximum horizontal distance covered by a projectile by neglecting air resistance to simplify the calculations. The below diagram represents a projectile's motion under the influence of gravity. The provided formula represents the maximum horizontal distance covered by a projectile: R Vay v sin 20 V: represent the value of the projectiles initial speed. : represent the initial angle in which the projectile was launched at. g: represent the value of gravitational force. Requirements: Your program should prompt the user to enter the initial angle of the projectile in degrees. It will then prompt the user to enter the initial velocity of the projectile. Afterward, the program will use the provided user inputs and formulas to calculate the maximum horizontal distance of the projectile. g: gravitational force is a fixed value (unchangeable) of 9.8 m/s All user inputs can have decimal values Since the user might enter a negative value, your program needs to use the absolute values when needed. Assume the user will only enter numeric values (no validation is needed) Output value to three decimal point Program Specifications General Requirements The full program will be in the main class. No functions are required at this point. Once the user enters the values, your program should calculate and print the coordinates of the projectile in a meaningful output. Your program only needs to run once and will terminate after it calculates the required values. 1 Include an opening comment with your name, the name of the program, the date, and a short description. Follow the style guide! Use descriptive names and sensible datatypes for variables, constants, arrays, functions, etc. that follow our naming conventions. Use good spacing and make sure braces ({}) are located where they are supposed to be. Output messages must be meaningful. Displaying values is not enough, the user must understand what they are seeing. Your design should implement strong encapsulation rules Your design should implement modularity concepts
Step by Step Solution
★★★★★
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
This program first takes the users input for the initial angle and velocity converts the angle from ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started