Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
java x 15
Member Avatar for custurd12

Im trying to average the user input by a string of numbers, It prints out without a problem but the output is very wrong Enter some numbers: 0,4,3,5 48.0 import java.util.Scanner; public class avg { public static void main(String[] args) { System.out.println("Enter some numbers"); Scanner in=new Scanner(System.in); String nums=in.nextLine(); double …

Member Avatar for scudzilla
0
119
Member Avatar for custurd12

[code] import java.io.*; import java.util.*; public class lab11_2{ Scanner in=new Scanner(System.in); private int month=12; private int sum; private int value; private int rainfall; private double total=0; private double average; private double standard_deviation; private double largest; private double smallest; private double months[]; public lab11_2(){ months=new double[12]; } public void setMonths(){ for(int …

Member Avatar for JamesCherrill
0
2K
Member Avatar for custurd12

A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for custurd12

my program won't even run so i must have missed something drastically but i don't see it.... anyway, Create a class called Factor that has a public method called calculateFactor. The method has two two arguments of type integer and checks whether the smaller of the two integers is a …

Member Avatar for stephen84s
0
142
Member Avatar for custurd12

Create a class called Factor that has a public method called calculateFactor. The method has two two arguments of type integer and checks whether the smaller of the two integers is a factor of the larger of the two integers. The method will return a factor or a zero. Write …

Member Avatar for VernonDozier
0
153