if (Age < 25 && numClaims == 0){
System.out.println("Age = " + Age + " Claims = " + numClaims + " Policy Increase = $0");
}
It worked thank you very much
Type: Posts; User: silverpen10
if (Age < 25 && numClaims == 0){
System.out.println("Age = " + Age + " Claims = " + numClaims + " Policy Increase = $0");
}
It worked thank you very much
nvm i got it now how do i fix that warning/error.
im sorry i don't understand do i add that in my program files?
it doesnt matter if i take out the scanner i get the same output
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)
{...
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?");...
your right im thinking to much about code before i even get there thank you
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...
im struggling and want help thats all
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...
im not having a problem i just wanna see how other people do this
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...