Search:

Type: Posts; User: silverpen10

Search: Search took 0.09 seconds.

  1. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    if (Age < 25 && numClaims == 0){
    System.out.println("Age = " + Age + " Claims = " + numClaims + " Policy Increase = $0");
    }

    It worked thank you very much
  2. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    nvm i got it now how do i fix that warning/error.
  3. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    im sorry i don't understand do i add that in my program files?
  4. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    it doesnt matter if i take out the scanner i get the same output
  5. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    Here's my new program, it's very similar just changed & to && and put brackets


    import java.util.Scanner;

    public class Unit5Assignment2
    {
    public static void main(String [] args)
    {...
  6. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    import java.util.Scanner;

    public class Unit5Assignment2
    {
    public static void main(String [] args)
    {
    Scanner input = new Scanner(System.in);

    System.out.println("What is your age?");...
  7. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    your right im thinking to much about code before i even get there thank you
  8. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    Im struggling with the 2nd problem. i get i would use logical operators but im not sure if i can use switch statment with logical operators.

    also i learned about bitwise operators, is there any...
  9. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    im struggling and want help thats all
  10. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    public class Unit5Assignment
    {
    public static void main(String [] args)
    {
    int Cartons;
    int N = 37;
    Cartons = N / 12;
    int remainder = N % 12;
    System.out.println("Total number of...
  11. Replies
    26
    Views
    3,413

    Re: SIMPLE PROGRAMING PROBLEMS help!!

    im not having a problem i just wanna see how other people do this
  12. Replies
    26
    Views
    3,413

    SIMPLE PROGRAMING PROBLEMS help!!

    here are the problems and try to do them as simple as possible. Thanks you guys are a big help.

    Program 1

    Assume you have N eggs and you pack them 12 to a carton. Write a program that...
Results 1 to 12 of 12