Search:

Type: Posts; User: ZorraBella

Search: Search took 0.33 seconds.

  1. Replies
    1
    Views
    179

    What's wrong with my code?

    public class ScienceFairProject
    {
    // these are the instance variables/
    private static String projectName;
    private static String contestantName;
    private int score;
    static int projectA = 0;...
  2. Replies
    4
    Views
    265

    Re: Missing Loop, not sure what I need

    So it sounds like I was going at it backwards. I need to start the apartments at 1 and increase until I find the max profit. I will turn it around and see if I can get it to run. THANK YOU!!!!!!!
  3. Replies
    4
    Views
    265

    Re: Missing Loop, not sure what I need

    Sorry for the vague description on what I am trying to do. an example of what I am trying to do is, take 50 apartments with $600 rent. The maintenance for an occupied apartment is $27. For every...
  4. Replies
    4
    Views
    265

    Missing Loop, not sure what I need

    import java.util.Scanner;
    public class Apartment
    {
    public static void main(String[] args)
    {
    int unit, rent, main, increase, min=0, ntotal=0, total=0, profit, irent=0;
    int nunit=0, ncost,...
  5. Replies
    6
    Views
    356

    Re: height code not working

    Thank you for your help. I got my code to compile, but I have still working on getting it to exit if the put in the wrong answer to the first question. Instead my if statement lets the code run all...
  6. Replies
    6
    Views
    356

    height code not working

    I am just starting out in Java, I have lots to learn. I get the following error code.
    error:incompatible types
    gender=keyboard.next();
    required: char
    found: String
    Does this mean that I should...
Results 1 to 6 of 6