Write a function to calculate the cost of laying the cable

Assignment Help Basic Computer Science
Reference no: EM131339152

Telecommunications A cable company wants to provide service for residents of an island. The distance from the closest point on the island's beach, point A, directly to the mainland at point B is 2 kilometers. The nearest cable station, point C, is 10 kilometers downshore from point B. It costs $3500 per kilometer to lay the cable lines underground and $5000 per kilometer to lay the cable lines under water. The line comes to the mainland at point M. Let x be the distance in kilometers from point B to point M.

a. Write a function to calculate the cost of laying the cable.

b. At what distance x should the cable come to shore to minimize cost?

Reference no: EM131339152

Determine the deflection of the spring

A close colied helical spring of round steel wire 10 mm diameter having 10 complete from with redius of 60mm is subjected to an axial load of 200zN determine the deflection

Develop a scanner object in main method

Assume that inside main method below you make decision to develop a Scanner object, and then read in int and then double on one line, where two values are separated by space

Write a short program to interpolate the hat function

Write a short program to interpolate the hat function of Example 13.3 by trigonometric polynomials for l = 2,4,8,16, and 32. Measure maximum absolute error on the mesh 0:.01

What does each word of erd mean

ERD stands for Entity Relationship Diagram. There are three very meaningful words in that title. What does each word mean? What does the entire phrase mean? Normalization serv

Construct a suitable data structure for storing such trees

Design and implement an algorithm that will search a tree structure that may have more than two nodes emanating from each node. As part of the design it will be necessary to

Compute the mode of a set of n numbers

The mode of a set of numbers is the number that occurs most frequently in the set. The set (4, 6, 2, 4, 3, 1) has a mode of 4. Give an efficient and correct algorithm to com

Would you expect the mean or the median to be larger

E-mails. A university teacher saved every e-mail received from students in a large Introductory Statistics class during an entire term. He then counted, for each student who

Remember to make only one step at a time

Prove the following. Remember to make only one step at a time and not skip steps. Remember to write what rule allowed you to make each step, and which lines you applied it to

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd