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 Exercise03_Shirts {
private final static char SMALL_TSHIRT ='S';
private final static char MEDIUM_TSHIRT ='M';
private final static char LARGE_TSHIRT ='L';
/*
A t-shirt company rep from Top Threads just finished taking an order
from a client and needs to key it into the system. The client ordered,
3 Small shirts ('S'),2 Medium shirts ('M'), and 1 Large shirt ('L').
Implement the logic to reflect an order of 6 t-shirts.
Examples:
buildOrder()->['S','S','S','M','M','L']
*/
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: ('S','M','L','S','M','L','S',...)
Note: The number of shirts ordered is guaranteed to be non-negative.
Examples:
buildBulkOrder(6)->['S','M','L','S','M','L']
buildBulkOrder(3)->['S','M','L']
buildBulkOrder(4)->['S','M','L','S']
buildBulkOrder(0)->[]
*/
public char[] buildBulkOrder(int 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:
placeRequest(['M','L','S'])-> true
placeRequest(['M','S','L'])-> true
placeRequest(['M','M','L'])-> false
placeRequest([])-> false
*/
public boolean placeRequest(char[] 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!