This assignment must be completed Individually. Discussing ideas and communication between students is encouraged but sharing...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
This program first takes the users input for the initial angle and velocity converts the angle from ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Radu invested in shares of four different companies at the beginning of the year. At the end of the year the share values had increased or decreased as follows: Second Time Around Clothing 8.69%...
-
The goal of this assignment is to learn about real-world SDLC failures and apply what we've learned about the SDLC to these "cases". I hope that, by doing this, you will not be involved with (or,...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-4. Ivan and Irene paid the following in 2012 (all by check or can otherwise be...
-
Angelo Bank is planning to replace some old ATM machines and has decided to use the York Machine. Anita Chavez, the controller, has prepared the analysis shown here. She has recommended the purchase...
-
Liquid drains from a small hole in a tank, as shown in Fig. P4.60, such that the velocity field set up is given by υr ≈ 0, υz ≈ 0, υθ = ωR2/r, where z...
-
Jeff is the new inventory manager for Alan Company. During the year-end inventory count, Jeff forgets that the company stores additional inventory in a back room, causing his final ending inventory...
-
A steam turbine discharges \(5000 \mathrm{~kg} / \mathrm{h}\) of steam at \(40^{\circ} \mathrm{C}\) and 0.85 dry. The air leakage in the condenser is \(15 \mathrm{~kg} / \mathrm{h}\). The temperature...
-
DeMarco Company is developing a cost formula for its packing activity. Discussion with the workers in the Packing Department has revealed that packing costs are associated with the number of customer...
-
Two students that are 100 meters apart are traveling toward each other at a uniform speed of 5 m/s. How long will it be before they meet in seconds? 1. Draw a position vs time graph for each student....
-
The Porsche Club of America sponsors driver education events that provide high-performance driving instruction on actual racetracks. Because safety is a primary consideration at such events, many...
-
10.8. An object has a free fall in the gravitational field of Earth from infinity to Earth's surface, while another object falls from a height h = RE with constant acceleration g. Show that they both...
-
XMZ stock has a price of $10 per share. Earnings per share are expected at $2 and the reinvestment rate is 50%. Dividends are set at 50% of earnings. The investments of XMZ have a 20% rate of return....
-
What is "Time Study" and what purpose does it serve? What is "Value Analysis"? What is forecasting? Describe the steps in the forecasting process? Describe the various elements in the time series...
-
Cam Ltd.'s organisational policies and procedures requires all financial reports to be produced in Microsoft Excel. Cash Book Opening balance 1,920 Accounts payable 3,300...
-
CityToronto bank provides mortgages for individuals and businesses up to $300,000. Write a Java console application that keeps track of mortgages and computes the total amount owed at any time...
-
1) A system is loaded as shown in the figure below. Points A and C are bearing locations. Shaft is made of a steel having Sy: 5AB MPa and Sut: 6BA MPa. (All dimensions are in mm, D/d is 1.1 and...
-
Let // be the vector space of dimension 3 over the field F. Then the total number of subspaces of dimension 2 is (Answer should be integer)_
-
Citing a scientific article, explain in your own words, how DNA fingerprinting has been used in forensic science to solve crimes and why it may not always be accurate or effective.
-
Calculate the amount of the child and dependent care credit allowed for 2012 in each of the following cases, assuming the taxpayers had no income other than the stated amounts. a. William and Carla...
-
Amy is a calendar-year taxpayer reporting on the cash basis. Please indicate how she should treat the following items for 2012: a. She makes a deductible contribution to an IRA on April 15,...
-
Emily Jackson (Social Security number 765-12-4326) and James Stewart (Social Security number 466-74-9932) are partners in a partnership that owns and operates a barber shop. The partnership's first...
-
When a honeybee flies through the air, it develops a charge of +17 pC. How many electrons did it lose in the process of acquiring this charge?
-
Falling raindrops frequently develop electric charges. Does this create noticeable forces between the droplets? Suppose two 1.8 mg drops each have a charge of +25 pC; these are typical values. The...
-
A housefly walking across a surface may develop a significant electric charge through a process similar to frictional charging. Suppose a fly picks up a charge of +52 pC. How many electrons does it...
Study smarter with the SolutionInn App