Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago