Entries by Hannah Wangui

Write two statements to read in values for birthMonth

Write two statements to read in values for birthMonth followed by birthYear, separated by a space. Write a statement to print the date using the format birthMonth/birthYear. Do not end with a newline   Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code “Newclient”

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

Calculate and output the number of 1 gallon cans

Question I know I’m missing something to indicate the rounding to the nearest integer but I can’t put it together…… />  // Calculate and output the number of 1 gallon cans needed to paint the wall, rounded up to nearest integer      cansNeeded = gallonsPaintNeeded/gallonsPerCan;   //Hint: this line is missing two operations      System.out.println(“Cans needed: ” + […]

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

public class BasicInput

Question I’ve tried to run this code:public class BasicInput {   public static void main(String[] args) { />      Scanner scnr = new Scanner(System.in);      int userInt = 0;      double userDouble = 0.0;      char ch;      String s;            System.out.print(“Enter integer: “);      userInt = scnr.nextInt();      System.out.print(“Enter double: “);      userDouble = scnr.nextDouble();      System.out.print(“Enter character: “);      ch = scnr.next().charAt(0);      System.out.print(“Enter string: […]

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"

strings

Question (1) Prompt the user for a string that contains two strings separated by a comma. (1 pt)Examples of strings that can be accepted:Jill, AllenJill , AllenJill,Allen Ex:   Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code “Newclient”

 

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"