Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in net beans,1. Task 1: Project name: ShipCostCalculator Main file name: shipCost.java An application program where the user enters the price of an item and

in net beans,1.Task 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 they user cannot break the program.

2.Task 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. Careful here! You have to first bullet proof the input before you can check to see if the value is in range! Be sure to communicate clearly with the 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.

EMBED SCREEN SHOT(S) OF NETBEANS HERE SHOWING YOUR PROGRAM TEST RUN(S):

Task 3: Project name: PartyAffiliation Main file name: partyAffil.java (This task uses Strings:) A program that prompts the user for their party affiliation (Democrat, Republican, or Independent) and responds accordingly with a Donkey, Elephant, Person, or Other. (i.e. You get a Democratic Donkey.) Notes: create a menu so the user chooses D, R, or I and assume that any other choice will be Other. This program does not require any input checking. Tests: just the four options D, R, I, Other.

EMBED SCREEN SHOT(S) OF NETBEANS HERE SHOWING YOUR PROGRAM TEST RUN(S):

Task 4: Project name: TypeTeller Main file name: typeTeller.java

Create a program that prompts the user to Enter some stuff: . Determine if the stuff is an int or a double and read it in with the appropriate Scanner method, otherwise read it in as a String. Echo the input value back to the user indicating that it is either an int, double, or string.

EMBED SCREEN SHOT(S) OF NETBEANS HERE SHOWING YOUR PROGRAM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago