d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > 50fg For A Small Task > Java
12Next
Add Reply New Topic New Poll
Member
Posts: 8,250
Joined: May 10 2012
Gold: 0.00
Jan 15 2015 09:04pm
I'm taking an intro class to Java. I am supposed to have made a BMI Calculator that calculates BMI and asks what would the user's preferred BMI be, and then tell them how much they need to weigh to be their desired BMI.. that is due in 2 hours and I'm currently in the process of reading the assigned 78 pages. So I don't think I'll have time to comprehend the text enough to make it, so I've resorted to this...... :blush:

It's just a simple code, and I'm using Eclipse. Here is what i need done..


In this course, we will be building a multi-function calculator. As the first step towards that goal, we
will write a program that does some basic arithmetic operations.
Body Mass Index (BMI) is a value used to get an idea if a person is of a healthy weight. There is some
controversy surrounding the use of this metric, but it is an interesting thing to take a look at.
The formula for BMI is:
BMI = ( Weight in Pounds / ( Height in inches x Height in inches ) ) x 703
Your task for this assignment is to write a program that prompts the user for their weight in pounds and
height in inches and computes their BMI. Then, ask the user what they would like their BMI to be and
tell them what they would need to weigh in order to have that BMI.
Here is a sample run of the program:
How much do you weigh (in pounds)? 115
How tall are you (in inches)? 65
Your BMI is 19.13491124260355
A BMI between 20 and 24 is considered ideal. What would you like your BMI
to be? 22
Your weight needs to be 132.21906116642955 pounds for your BMI to be 22.0


You will be graded according to the following rubric (each item is worth 1 point):
• You have declared variables of the appropriate data types.
• You have prompted the user for the required information.
• You have read the user's information and stored it in variables.
• You have correctly computed the BMI.
• You have correctly computed the weight for the target BMI.
• You have displayed the results of the computations to the user.
• Your program compiles.
• Your program runs.
• You follow standard coding conventions (e.g variable names, indentation, comments, etc).
• Your Eclipse project was exported correctly.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jan 15 2015 09:07pm
Waiting 2 hours before the due date to turn in. Man you jumped right into senior year, huh?
Member
Posts: 8,250
Joined: May 10 2012
Gold: 0.00
Jan 15 2015 09:09pm
Quote (Eep @ Jan 15 2015 11:07pm)
Waiting 2 hours before the due date to turn in. Man you jumped right into senior year, huh?


Yep.. I didn't realize one chapter in this book was almost 80 pages. Lol

Are you able to help? I actually think I can do it with what I've read, but I won't be able to meet the deadline.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Jan 15 2015 10:57pm
Quote (axid3nt @ Jan 15 2015 10:09pm)
Yep.. I didn't realize one chapter in this book was almost 80 pages. Lol

Are you able to help? I actually think I can do it with what I've read, but I won't be able to meet the deadline.


I won't help, because that is counter-productive to your education.

Instead I must lecture you on how the point of these assignments is for you to learn, and that you must set aside the proper blocks of time to work on them, and blah blah blah

Member
Posts: 18
Joined: Jan 6 2015
Gold: Locked
Trader: Scammer
Jan 16 2015 09:02am
I can do this pretty easily.
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Jan 16 2015 12:50pm
Quote (MisterTrain @ Jan 16 2015 10:02am)
I can do this pretty easily.


Damn son. I got stumped on the output. How do you make it show decimals like that teach me
Member
Posts: 82
Joined: Nov 11 2014
Gold: 200.00
Jan 16 2015 01:39pm
Quote (Minkomonster @ Jan 16 2015 10:50am)
Damn son. I got stumped on the output. How do you make it show decimals like that teach me


Use "double" or "float" type variables.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jan 16 2015 01:47pm
Quote (Minkomonster @ Jan 16 2015 01:50pm)
Damn son. I got stumped on the output. How do you make it show decimals like that teach me


you can look up the IEEE format for doubles, convert each binary digit to decimal, look up the unicode to create numerical strings, and start to build your string from left to right as soon as the most significant digits no longer change.
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Jan 16 2015 05:53pm
Quote (carteblanche @ Jan 16 2015 02:47pm)
you can look up the IEEE format for doubles, convert each binary digit to decimal, look up the unicode to create numerical strings, and start to build your string from left to right as soon as the most significant digits no longer change.


I started doing this just to continue the troll. And then realized I need to fucking stop.
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Jan 16 2015 07:58pm
he needed help 24 hours ago, he probably already failed the assignment. you guys are just dicks. OP; if you need help pm me. i'll do your assignments for cheap fgs, A+ guaranteed
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll