Download presentation
Presentation is loading. Please wait.
1
Variables and input/output
Java Mini Project Variables and input/output
2
Requirements Build a simple calculator to add 2 numbers.
The calculator should prompt for 2 numbers and then display the sum of the numbers. The numbers can be integers or decimal numbers.
3
Storyboard Your final program should look like this:
4
=Double.parseDouble(string)
Due… You have today to complete this assignment. I will grade it tomorrow Use the body mass calculator code as a guide. To parse a decimal number instead of an integer you will need to use the method: =Double.parseDouble(string) This is worth 20 points.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.