In industrial fabrication of plastics, waste is produced. This waste, contain poisonous compounds. Before a safe disposal, into the environment, it must first be treated, and the poisonous compounds, removed from the waste. The poisonous compound has been found to naturally decompose after some days, after which, the waste can be safely disposed into the environment. A computer has been dedicated to automatically discharge the waste to the environment, through an outlet valve when it has found the waste to be harmless after some days. After some years, the computer developed an irreparable fault, that needed to be replaced. As a seasoned Environmental Engineer, you’ve been employed to develop a program that can run on this new computer to do just that. Develop an algorithm that solves the problem. Implement your algorithm in python

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

In industrial fabrication of plastics, waste is produced. This waste, contain poisonous compounds. Before a safe disposal, into the environment, it must first be treated, and the poisonous compounds, removed from the waste. The poisonous compound has been found to naturally decompose after some days, after which, the waste can be safely disposed into the environment. A computer has been dedicated to automatically discharge the waste to the environment, through an outlet valve when it has found the waste to be harmless after some days.

After some years, the computer developed an irreparable fault, that needed to be replaced. As a seasoned Environmental Engineer, you’ve been employed to develop a program that can run on this new computer to do just that.

  1. Develop an algorithm that solves the problem.

Implement your algorithm in python

Expert Solution
Step 1

a) Algorithm that solves the problem

  1. Start
  2. Declare i ,j
  3. Read the concentration of the compound
  4. Set i = the concentration of the compound
  5.  Read the concentration of waste in the compound
  6. Set j = the concentration of the compound
  7. if (j<0.5*i)
    • Print "Compound can be safely disposed"
  8. else
    • Print " Compound is harmful"
Step 2

b) Python Script

Code:

# Input data
i = int(input("Enter the concentration of the compound : "))
j = int(input("Enter the concentration of waste in the compound : "))

# Apply algorithm 
if(j<0.5*i):
    print("Compound can be safely disposed")
else:
    print("Compound is harmful")

steps

Step by step

Solved in 4 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