code in JAVA please read the requirement carefully and write the code. one more thjng don't copy the code from other chegg users i already saw them. thanks you so much in advance.
Request edite C About This Lab In this tab, you will be creating an "over-calculating program. You will ask the user for some information about themselves, and then you will perform some over-calculations on that data. This lab will enforce all the basics of Java such as saving data to variables and performing operations on them. Name Requirements Java file name: OverCalculator.java Main class name: OverCalculator Instructions Part 1: Gather user's data We want to prompt the user for the following data: 1. Their full name 2. Their age, in years 3. Their height, in meters (le: 1.7) 4. Their weight, in pounds (ie: 178) HINT: Scanner is what allows us to get data from the user, But we need to know the data type we will be expecting Review the functions Scanner bas in the live documentation Part 2: Calculate & display data Once we get all the data, we want to display to the user the following data: 1. Their full name, in all capital letters 2. Their age in: a Years b. Months c. Weeks d. Days e. Hours f. Minutes 8- Seconds HINT - There are 52 weeks in a year and 7 days in a week: 24 hours in a day and 60 minutes in an hour 3. Their body-mass index (BMI): a. BMI formula = weight / height NOTE- you cannot use ^ as an exponent operator in Java, is a logical operator, which we will learn about later b. You should display the BMI once as a decimal number and once as an integer HINT - this is where typecasting comes in to play Sample Output What is your full name? Ufkun Erdin What is your age in years? 28 What is your height in meters? 1.83 What is your weight in pounds? 210 Name: UFKUN ERDIN You are 336 months old You are 1456 weeks old You are 10192 days old You are 244608 hours old You are 14676480 minutes old You are 880588800 seconds old Your BMI is 62.707158 Your BMI (casted to int) is 62 MACROok Pro General Lab Requirements CSC ZII These are the general requirements that apply to all lab submissions in this course. Your source code should have no syntax errors. If there is even a single syntax error in your lab project, it will not compile, meaning the instructor will not be able to run your program. If the source code fails to compile, you will receive a zero on your lab submission. Include a proper header at the top of your Java file. Header Format Lab
Name: * ID: * Class: CSC 211 - Semester: ) with the appropriate text. You should adhere to this format as closely as possible. You do not need to include the symbols in your header fields. Provide documentation using comments. You should describe the purpose of your code using comments. If you do not include proper documentation, then it is assumed that you do not understand how your code works. Use proper styling, indentation, and naming conventions in your Java code. It is important to adhere to the commonly recognized conventions in Java programming. This means that your source code: - Should not have excessive widespace or lines that extend beyond 80 characters. - Should be indented appropriately. - Should have appropriately formatted identifiers for variables, constants, classes, and methods, Write your code efficiently. Your code should be written in such a way that avoids unnecessary instructions. This includes: - Using the right Java tools (such as selections and loops) to accomplish the project's task. - Avoiding too many nested for loops. - Avoiding the creation of too many unnecessary variables. Feel free to ask your lab instructor if you are worried about your code's efficiency Write your own code and comments, and submit your work individually. You may work with other students, but you are required to personally construct your source program and write documentation comments in your own words. If you submit an exact copy of another student's program, you will be found guilty of plagiarism