Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~309 People Reached
Favorite Forums
Favorite Tags
Member Avatar for computerdude87

Can anyone help me put this code into seperate methods? [CODE] public static void Main(String[] args) { String num1String = JOptionPane.showInputDialog(null, "Please enter your first number"); String num2String = JOptionPane.showInputDialog(null,"Please enter your second number"); String num3String = JOptionPane.showInputDialog(null, "Please enter your third number"); Double num1 = Double.parseDouble(num1String); Double num2 = …

Member Avatar for NormR1
0
80
Member Avatar for computerdude87

Can anyone tell me why I keep getting a value of 0 returned? [CODE] public static void main(String[] args) { double getSum = 0; double getAverage = 0; String num1 = JOptionPane.showInputDialog(null, "Please enter your first number"); String num2 = JOptionPane.showInputDialog(null,"Please enter your second number"); String num3 = JOptionPane.showInputDialog(null, "Please …

Member Avatar for computerdude87
0
126
Member Avatar for computerdude87

Hi, I am trying to calculate how many rooms a hotel has, how many are occupied, and the percentage of rooms that are occupied. It is suppose to do this after a loop iterates once for each floor while skipping the 13th floor. I am new to this, any suggestions? …

Member Avatar for jonsca
0
103