Answered You can hire a professional tutor to get the answer.

QUESTION

Conditional Structures in Java if, if else, cascaded if, nested if, and switch Bullet-proofing user input with the Scanner hasNextTYPE test.

he output window from Netbeans in doc for EACH test run and there's several for each program.

1.      Project name: ShipCostCalculator

Main file name: shipCost.java

An application program where the user enters the price of an item and the program computes shipping costs. If the item price is $100 or more, then shipping is free otherwise it is 2% of the price. The program should output the shipping cost and the total price. Bullet proof the input so the user cannot break the program.

2.      Project name: BirthMonth

Main file name: birthMonth.java

A program that asks the user to enter their birth month (integer 1 - 12 inclusive). If the user enters a value in range, the program echoes the input ("Your birth month is: N") If the value is not in the range it outputs an error msg ("You entered an incorrect month value: N").  Here N should be the value they entered. Bullet proof, the value is in range! User: "You did not enter a number" or "You did not enter a number between 1 and 12. 

Tests: Bad Input, Number in Range, Number not in range.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question