SCM3202 Topic 6 C/C++

Java Python SCM3202 Topic 6 Assignment

A Chinese company wants to set up a manufacturing plant in Germany that purchases raw material from a supplier in Berlin and deliver finished goods to customers in five markets including Hamburg, Bremen, Hanover, Leipzig, and Dresden. The freight rates, weight of raw material and finished goods to be transported, and latitude and longitude of the source and markets are shown in the following table.

Source (S)/ Market (M)

City

Latitude

Longitude

Tonnes

€/tonne-km

S1

Berlin

52.51

13.39

3,400

3.00

M1

Hamburg

53.68

10.03

2,000

3.50

M2

Bremen

dai 写SCM3202 Topic 6 AssignmentC/C++

53.31

9.19

550

2.00

M3

Hanover

52.59

9.99

500

2.00

M4

Leipzig

51.49

12.56

500

2.00

M5

Dresden

51.23

14.09

500

2.00

Note: The tonne is a metric unit of mass equal to 1,000 kilograms. It is also referred to as a metric ton.

Use the Center-of-Gravity (COG) method to determine the least-cost location for the plant location. Round the answer of latitude and longitude of COG to 2 decimal places.

You can apply the following formula and templates to perform the calculation         

使用清华大学国内镜像源指令,执行到一半报错如下,如何解决? Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\admin\appdata\local\temp\pip-build-efwgya\pyusb\setup.py", line 117, in <module> 'Topic :: System :: Hardware :: Hardware Drivers' File "c:\python27\lib\distutils\core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "c:\python27\lib\site-packages\setuptools\dist.py", line 315, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "c:\python27\lib\site-packages\setuptools\dist.py", line 361, in fetch_build_eggs replace_conflicting=True, File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 850, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1122, in best_match return self.obtain(req, installer) File "c:\python27\lib\site-packages\pkg_resources\__init__.py", line 1134, in obtain return installer(requirement) File "c:\python27\lib\site-packages\setuptools\dist.py", line 429, in fetch_build_egg return cmd.easy_install(req) File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 665, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 695, in install_item dists = self.install_eggs(spec, download, tmpdir) File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 862, in install_eggs os.path.abspath(dist_filename) distutils.errors.DistutilsError: Couldn't find a setup script in c:\users\admin\appdata\local\temp\easy_install-qcf8jb\setuptools_scm-8.2.1.tar.gz ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-build-efwgya\pyusb\
03-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值