public class ScienceFairProject
{
// these are the instance variables/
private static String projectName;
private static String contestantName;
private int score;
static int projectA = 0;...
Type: Posts; User: ZorraBella
public class ScienceFairProject
{
// these are the instance variables/
private static String projectName;
private static String contestantName;
private int score;
static int projectA = 0;...
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!!!!!!!
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...
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,...
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...
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...