Entries by Hannah Wangui

JAVA code

Question Hi- I need some help with JAVA code.When I select 1 for animal, it’ll ask for which animal. If I select 1 to 3, it works but if I select animal #4 it throws my index error even though it’s within the limitWhen I select 2 for habitat, it’ll ask for which habitat. Whatever […]

 

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

Java code

Question Need some help correcting my java code. There are 2 classes, ItemToPurchase  style=”color:rgb(55,71,79);”>and ShoppingCartPrinter, Item names, prices and quantities are entered by the user, so the code needs to be able to have different user inputs. The output i need is at the bottom. Below is the code i have so far for both classes. […]

 

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

An array

Question 1) Prompt the user to enter five numbers, being five people’s weights. Store the numbers in an array of doubles. Output the array’s numbers on one line, each number followed by one space. (2 pts) 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"

codeimport java

Question **Here is my codeimport java.util.Scanner;public class ParseStrings {  public static void main(String[] args) {      Scanner scnr = new Scanner (System.in);      Scanner inSS = null;      String userInput = “”;      String firstWord = “”;      String secondWord = “”;      boolean input = false; while ( !input) {  System.out.println( “Enter input string: “);  userInput = scnr.nextLine();  if (userInput.equals(“q”)){            System.out.println […]

 

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