John decided to create a manufacturing firm. It produces various, mainly mechanical details. John wants to automate details producing requests, but sadly he cannot write code. He asks you to write a simple manufacturing controller.
You are given two methods, requestProduct and getNumberOfProducts:
getNumberOfProductsshould return the total number of requested products;requestProductshould keep track of requested products, and format the product argument in the format:No. Requested Detail.
For example:
ManufacturingController.requestProduct("detail 1");
should return:
1. Requested detail 1
and
ManufacturingController.requestProduct("Wrench");
should return:
2. Requested Wrench
After execution of these two commands,
ManufacturingController.getNumberOfProducts();
should return:
2