Question
Design: You will need to use the following class for your program: TShirtOrder class It should include the following in the main method: Constants o
Design:
You will need to use the following class for your program: TShirtOrder class
It should include the following in the main method:
Constants o Use constants for the sales tax rate (currently %10), the shipping cost of %5, and the shirt price
. Variables o Three variables to keep track of how many shirts are ordered for each type o One variable to keep track of the number of characters to be printed. This variable only counts printed characters. Spaces are not counted. o Variables for first and last names, street address, city, state, and zip code.
Scanner to read the input
Statements to display the menu to the user similar to the above sample run.
Prompts for the user to display output similar to the above sample run.
Calculations for the subtotal, tax, shipping and total.
Statements to display the order summary similar to the above sample run.
Loops and conditions to perform the required operations in the most efficient way.
Author's Note: If the program could look as close as possible as the sample run on the right and include explanations it would greatly be appreciated! When coding your the program can you limit yourself to these concepts to keep it as simple as possible; so No arrays! PLEASE any expert out here I need your help ASAP THANK YOU!
Concepts covered:
Scanner and Scanner methods
DecimalFormat and the format method
String variables and String methods
Java arithmetic
If statements and conditionals
While or for Loop
I am having troubles displaying the number of letters printed at the back of the shirts in the order summary. When I use the variable I used in the String it giving me an error saying that particular variable "can't be resolved to a variable" yet I stored it with a string in my scanner as the user input. Ex: System.out.println("Chiefs Printed letters: " + printedTextChiefs.length); I still need the whole java code (eclipse) for the project not just this part!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started