Question: package com.techelevator; public class Exercise 0 3 _ Shirts { private final static char SMALL _ TSHIRT = ' S ' ; private final static
package com.techelevator;
public class ExerciseShirts
private final static char SMALLTSHIRT S;
private final static char MEDIUMTSHIRT M;
private final static char LARGETSHIRT L;
A tshirt company rep from Top Threads just finished taking an order
from a client and needs to key it into the system. The client ordered,
Small shirts S Medium shirts M and Large shirt L
Implement the logic to reflect an order of tshirts.
Examples:
buildOrderSSSMML
public char buildOrder
return new char;
Another customer called in and is hosting a large networking event and
needs a bulk order. Rather than indicate how many of each shirt they
wanted, they've asked for as even distribution as possible.
Implement the logic to generate an order representing as even a distribution
as possible, for example: SMLSMLS
Note: The number of shirts ordered is guaranteed to be nonnegative.
Examples:
buildBulkOrderSMLSML
buildBulkOrderSML
buildBulkOrderSMLS
buildBulkOrder
public char buildBulkOrderint numberOfShirts
return new char;
The warehouse is out of small shirts and will only request more when the
next order comes in that includes an S shirt.
Implement the logic to look through the next incoming order char order
and return true if we need to place an order for Small shirts.
Examples:
placeRequestMLS true
placeRequestMSL true
placeRequestMML false
placeRequest false
public boolean placeRequestchar order
return false;
no user input java,use arrays and loops pls
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
