Java代写 | SENG1110/6110 Programming Assignment 1 – Semester 2, 2020

本次Java代写是编写一个公司管理系统程序

SENG1110/6110 Programming Assignment 1 – Semester 2, 2020

Your task in this assignment is to create a program that will help the management of a Juice company. When run, the
program must display a menu of actions to the user, including one that exits the program. Until the user chooses to
exit, the menu is displayed again after each action is completed.
The program must have the following functionalities:
1. Will allow the user to create a new factory for the company, up to a maximum of 3 factories. Each factory will
have the following information:
● name – the name of the factory.
● size – the size of the factory (it must be one of the chars “S”, “M” or “L”, if not, the program should show
a message and ask again). These three options are not case sensitive.
2. Will allow the user to create a new warehouse for a factory, up to a maximum of 1/2/3 per factory, depending
on the factory’s size (S/M/L). Each warehouse will have the following information:
● name – the name of the warehouse.
● fruit – the fruit that the warehouse can store. It can be only “apple”, “orange” or “pear”. If not, the
program should show a message and ask again.
● maxCapacity – the size of the warehouse, units in tons. It should be a positive number. If not, the
program should show a message and ask again.
3. Will allow the user to delete a factory from the company. The input will be the name of the factory. If the name
does not exist, the program should show a message.
4. Will allow the user to delete a warehouse of a factory. The inputs will be the name of the factory and the name
of the warehouse. If either name does not exist, the program should show a message.
5. Will allow the user to request the list of factories in the company and all information of each factory. When
listing the warehouses of a factory, only list the name and fruit of each warehouse. The output should fit the
following format:
Factory <name> has size <size> and <num> warehouses
Warehouse <name> has fruit <fruit>
Warehouse <name> has fruit <fruit>

If there are no factories, the program should show the message “No factories”.
6. Will allow the user to request the list of warehouses in a factory and all the information of each warehouse.
The output should fit the following format:
Warehouse <name> has fruit <fruit> and max capacity <num> tonnes
Warehouse <name> has fruit <fruit> and max capacity <num> tonnes

If the name of the factory does not exist, the program should show a message. If the factory has no
warehouses, the program should show the message “No warehouses”.
7. Will allow the user to request a list of warehouses with a particular fruit and which factory they belong to
(the user will input the warehouse fruit type). If the fruit is not one of the approved types, the program should
show a message. The output should fit the following format:
Warehouse <name> has that fruit type, and is of factory <name>
If there are no warehouses of that fruit type, the program should show the message “No warehouses with that
fruit”.


程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: [email protected]  微信:itcsdx


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

blank

发表评论