Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 ( 5 pts ) : Project name: ShipCostCalculator [ Create a new Java file with this name and include a main method OR

Task 1(5 pts):
Project name: ShipCostCalculator
[Create a new Java file with this name and include a main method OR rename the existing main.java. Add your new file to the GitHub repo and commit it.]
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.
Test runs: (insert the output widow copies here for the test runs)
- valid input less than 100
- valid input greater than 100
Be sure to add the file to the repo and commit and push it.
Task 2(5 pts):
Project name: BirthMonth
A program that asks the user to enter their birth month (integer 112 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.
Test runs: (insert the output widow copies here for the test runs
- valid input in range 1-12
- invalid input out of range
Be sure to add the file to the repo and commit and push it.
Task 3(5 pts):
Project name: PartyAffiliation
(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. Tests: just the four options D, R, I, Other. Use as cascaded if structure not separate if statements!
\\
Test runs: (insert the output widow copies here for the 4 test runs)
Be sure to add the file to the repo and commit and push it.
Task 4(5 pts):
Project name: TheaterKiosk
As people pass through an entry kiosk at the theater, they are prompted to enter their age. If they are 21 or older, they get a paper wrist band. Code a logic program that asks the user to enter their age and then if they are 21 or over displays a message that they get a wrist band. (Note that the program does nothing if they are not 21 or over...)
Test runs: (insert the output widow copies here for the 2 test runs)
Be sure to add the file to the repo and commit and push it.
Task 5(3 pts Extra or Graduate Credit):
Project name: NumCompare
A program that takes two numbers as inputs from the user and compares them. It indicates if they are equal or if they are not indicates the one that is less. This program should be bullet-proofed. If either input is not a number, the program should indicate that the user should try again and terminate.
EMBED SCREEN SHOTS OF NETBEANS HERE SHOWING YOUR PROGRAM RUN:
Be sure to add the file to the repo and commit and push it.

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

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions