Entries by Hannah Wangui

program

Using jGrasp and the Software Development Kit, write a program in response to the following prompt: />Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also, write a program to test your method.Submit your compiled Java code […]

 

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

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"