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 problems with "spacing" when entering data as the user from the scanner. It will not let me display the space between a full name ex: "The Rock". Even if I try to print using "scan.nextLine(); " instead of "scan.next " same thing for the spaces between the address. It wants me to write it as a single word but I need it to display same as the sample run.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_2

Step: 3

blur-text-image_3

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions