Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java using a for loop finding number of characters for customized jerseys based on user input A program is needed to manage sales of

In Java using a for loop

finding number of characters for customized jerseys based on user input

A program is needed to manage sales of Super Bowl souvenir t-shirts. There are three types of shirts that we are selling:

Patriots t-shirts : $40

Dolphins t-shirts : 25

Lions t-shirts: $40

. Input: Your program is to display a menu listing each type of shirt. It should then prompt the user for the number of Steelers t-shirts they would like to order. After the number of Patriots t-shirts has been entered (which may be 0), if the number was greater than 0, we will ask if they need to add lettering to the shirt (costs 1 dollar per printed letter) the program should continue displaying a prompt and reading the number to order for the other two types of t-shirts in the same way. The program also needs to keep track of the customer name and mailing address. Prompt and read the customers name, street address, city, state, and zip code.

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

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago