Chapter 6


2 comments:

  1. Group Project
    Faculty of Creative Media and Innovative Technology | BTT121 | Page 1 of 4
    Description:
    You have been assigned to develop a system that able to solve the problem in the
    construction area. Your system must able to show a menu driven program that will give
    an option to user to choose the type of problem. Consider the following problem:
    Problem one:
    A power station is on one side of a river that is one-half mile wide and a factory is eight
    miles downstream on the other side of the river. It costs RM7 per foot to run power lines
    over land and RM9 per foot to run them under water. Your objectives is to determine
    how long the power line should run under water and how long it should run over land to
    achieve the minimum total cost of laying the power line.
    Your

    ReplyDelete
  2. Your program must able to identify the following:
    - The width of the river
    - The distance of the factory downstream on the other side of the river
    - The cost of laying the power line under water
    - The cost of laying the power line over land
    - The total cost of constructing the power line.
    - The length of the power line that run under water and the length that run over
    land so the cost of constructing the power line is at the minimum.

    Problem two:
    A pipe is to be carried around the right –angled corner of two intersecting corridors.
    Suppose that the widths of the two intersecting corridors are 5 feet and 8 feet. Your
    objective is to find the length of the longest pipe, rounded to the nearest foot that can be
    carried level around the right-angled corner.
    Write a program that able to get the input of width of both the hallways. The program
    also able to show the length of the longest pipe, rounded to the nearest foot, that can be
    carried level around the right-angled corner.

    ReplyDelete