Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java This lab must be completed Individually. Discussing ideas and communication between students is encouraged but sharing any part of the code is prohibited and
Java
This lab 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 enfer several values and will use these values to calculate the position of a projectile after a specific period. Our program will calculate the projectile motion by neglecting air resistance to simplify the calculations. The below diagram represents a projectile's motion under the influence of gravity. The provided formulas are used to calculate the projectile position at a given instance in time. The provided formulas are used to calculate the projectile position at a given instance in time. x=(v0,cos0)t Position at time t y=(v0sin0)t1/2gt2 Vo: represent the value of the projectiles initial speed. 0 : represent the initial angle in which the projectile was launched at. t: represents a given instance of time g: represent the value of gravitational force. Requirements: Your program should prompt the user to eater the initial angle of the prejectile in degrees . fr will then prompt the user to enter the initial velociey of the projectils. The program will also ask the user to specify the instance of rime in which the position of the grojectile will be caleulated af. 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. The program will also ask the user to specify the instance of time in which the position of the projectile will be calculated at. After that the program will use the user inputs and provided formulas to calculate the coordinates of the projectile. - g: gravitational force is a fixed value (unchangeable) of 9.8m/s2 - All user inputs can have decimal values - Since the user might enter a negative value, program needs to use the absolute values of any user input - Assume user will only enter numeric values (no validation is needed) - Output all numbers to two decimal point Program Specifications The full program will be in the main. 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. General Requirements - 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, - 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 he is seeing. - Your design should implement strong encapsulation rules - Your design should implement modularity concepts Demo To demo the lab, you can choose one of the following two options (Lab submission will not be accepted without a demo): - Option 1: Demo in person during the lab session on the day the lab is due. The Lab should be ready by then and should be running perfectly. No updates are allowed to the Unless you need to edit, it's safer to stay in Protected View. Demo To demo the lab, you can choose one of the following two options (Lab submission will not be accepted without a demo): - Option 1: Demo in person during the lab session on the day the lab is due. The Lab should be ready by then and should be running perfectly. No updates are allowed to the code after the demo. If you choose this option, you demo will be your submission and no further steps are needed. - Option 2: Create a separate 3-to-5-minute video to demo the code, testing it with different values/scenarios and explaining the code included. Make sure to state your name and id at the beginning of the video. An acceptable video will include detailed explanation of the code/logic used and discussion of any functions built or used in the program. Running the code is not enough for this demo to be acceptable. Submission (Lab submission will not be accepted without a demo): Process to submit the lab will depend on the choice you followed to demo your work: - If you decide to demo in person, no further steps are needed, and your grade will be calculated according to the code you show and how smooth the demo process goes. Grades will also be granted according to class coding guidelines, professionalism, output clarity and solution ingenuity. - If you decide to use video submission as demo process, then you will be responsible for submitting all the files (coding files and both videos) on dc connect. Few things to be aware of before submitting: Make sure to submit your work on DC Connect before due date Submit your .java files (not the full project, just the .java files you used to code your work) and the video you created as separate files, no zip files please. Submission (Lab submission will not be accepted without a demo): Process to submit the lab will depend on the choice you followed to demo your work: - If you decide to demo in person, no further steps are needed, and your grade will be calculated according to the code you show and how smooth the demo process goes. Grades will also be granted according to class coding guidelines, professionalism, output clarity and solution ingenuity. - If you decide to use video submission as demo process, then you will be responsible for submitting all the files (coding files and both videos) on dc connect. Few things to be aware of before submitting: Make sure to submit your work on DC Connect before due date Submit your .java files (not the full project, just the .java files you used to code your work) and the video you created as separate files, no zip files please. Up to 25% deduction if you decide to submit a zip or compressed file Grades will be granted according to class coding guidelines, professionalism, output clarity and solution ingenuity. - Late Penalty will be applied according to the course outline policyStep by Step Solution
There are 3 Steps involved in it
Step: 1
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