A chemical manufacturer, Desla, is currently planning on this production and delivery network to fulfill its production demand. Table 2.1 shows the production capacity and production cost. Table 2.2 shows the distance between production site and market. Table 2.1: Production capacity and production cost at production site Production site Production capacity, CAP| Production cost, | (ton/month) | 1,000 PROCOST (RM/ton) 50,000 Old York Table 2.2: Distance between production plant and market j, DIST, (km) Production site Market j Bongkok 500 Tukyo Longdon Old York 300 600 Develop a flowchart for following program: A program is expected to determine the total cost (TC) and the quantity of transferred chemicals (ton/month) to each market j (TRAN). The program is expected to generate a loop by gradually adding 10 ton/month of chemicals to TRAN, where the initial value of all elements in TRAN, is set as zero. The total cost (TC) is given in Eq 2.1, where PROD is the production quantity at production site (ton/month), and TRCOST is the unit transport cost (RM/ton/km). TC = E PROD × PROCOST +E,TRAN, × DIST, × TRCOST Eq 2.1 PROD is subjected to the production capacity (CAP), as given by Eq 2.2. PROD

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Algorithm and flowchart 

 

A chemical manufacturer, Desla, is currently planning on this production and delivery network
to fulfill its production demand. Table 2.1 shows the production capacity and production cost.
Table 2.2 shows the distance between production site and market.
Table 2.1: Production capacity and production cost at production site
Production site
Production capacity, CAP | Production cost,
| (ton/month)
1,000
PROCOST (RM/ton)
50,000
Old York
Table 2.2: Distance between production plant and market j, DIST; (km)
Market j
Bongkok
Production site
|Old York
Tukyo
300
|Longdon
600
500
Develop a flowchart for following program:
A program is expected to determine the total cost (TC) and the quantity of transferred
chemicals (ton/month) to each market j (TRAN). The program is expected to generate a loop
by gradually adding 10 ton/month of chemicals to TRAN, where the initial value of all
elements in TRAN, is set as zero.
The total cost (TC) is given in Eq 2.1, where PROD is the production quantity at production
site (ton/month), and TRCOST is the unit transport cost (RM/ton/km).
TC = E PROD × PROCOST +E¡TRAN; × DIST; × TRCOST
Eq 2.1
PROD is subjected to the production capacity (CAP), as given by Eq 2.2.
PROD < CAP
Eq 2.2
The quantity of transferred chemicals between production site and market j, TRAN;, are
subjected to Eq 2.3, where the total transferred chemicals between production site and market
j is equal to production quantity,
PROD = E,TRAN;
Eq 2.3
Transcribed Image Text:A chemical manufacturer, Desla, is currently planning on this production and delivery network to fulfill its production demand. Table 2.1 shows the production capacity and production cost. Table 2.2 shows the distance between production site and market. Table 2.1: Production capacity and production cost at production site Production site Production capacity, CAP | Production cost, | (ton/month) 1,000 PROCOST (RM/ton) 50,000 Old York Table 2.2: Distance between production plant and market j, DIST; (km) Market j Bongkok Production site |Old York Tukyo 300 |Longdon 600 500 Develop a flowchart for following program: A program is expected to determine the total cost (TC) and the quantity of transferred chemicals (ton/month) to each market j (TRAN). The program is expected to generate a loop by gradually adding 10 ton/month of chemicals to TRAN, where the initial value of all elements in TRAN, is set as zero. The total cost (TC) is given in Eq 2.1, where PROD is the production quantity at production site (ton/month), and TRCOST is the unit transport cost (RM/ton/km). TC = E PROD × PROCOST +E¡TRAN; × DIST; × TRCOST Eq 2.1 PROD is subjected to the production capacity (CAP), as given by Eq 2.2. PROD < CAP Eq 2.2 The quantity of transferred chemicals between production site and market j, TRAN;, are subjected to Eq 2.3, where the total transferred chemicals between production site and market j is equal to production quantity, PROD = E,TRAN; Eq 2.3
The program will prompt the user to key in value for unit transportation cost (TRCOST). The
expected program input and output is shown as Figure 2.1 below:
Command Window
Unit Transportation cost, TRCOST (RM/km/ton of chemicals):10
Transferred chemicals (tons/mth) from production site to market j
Tukyo
Bongkok Sinkapore
old York:
330
330
330
The total cost (RM/month):
53460000
fr
Figure 2.1: Expected program input and output from Matlab
Transcribed Image Text:The program will prompt the user to key in value for unit transportation cost (TRCOST). The expected program input and output is shown as Figure 2.1 below: Command Window Unit Transportation cost, TRCOST (RM/km/ton of chemicals):10 Transferred chemicals (tons/mth) from production site to market j Tukyo Bongkok Sinkapore old York: 330 330 330 The total cost (RM/month): 53460000 fr Figure 2.1: Expected program input and output from Matlab
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY