### [Solved] Let L(t) be the length of a certain fish at time t. Assume that this fish griwa according to the von Bertalanffy equation

Let L(t) be the length of a certain fish at time t. Assume that this fish griwa according to the von Bertalanffy equation dL(t)/dt=k {A-L(t)}, where k and A are positive parameteres. A study shows that the asymptotic length of fish is equal to 300 inches and that it takes this fish 20 months to each half its asmptotic length. Let L(0)-1 . a. Determine the value of k and A by showing the equation. b. how long will it take until the fish reaches 50% of its asymptotic length ?

Answer to Let L(t) be the length of a certain fish at time t. Assume that this fish griwa according to the von Bertalanffy equation….

### [Solved] Replace the following Matlab matrix assignment statements in vectorized forms by equivalent FOR (4 points each)

Replace the following Matlab matrix assignment statements in vectorized forms by equivalent FOR (4 points each) and WHILE (6+6 = 12 points each) loops. Develop two versions of WHILE loop, one with an infinite loop and a BREAK statement, the other without. a. a = [1 : 7 : 91] b. c = a(2 : 3 : 9) c. b = a(10 : -2: 2) d. d(1 : 2 : 10) = a(1:5) e. g(1:3, 1:4) = [11 : 14; 21 : 24; 31 : 34]

Answer to Replace the following Matlab matrix assignment statements in vectorized forms by equivalent FOR (4 points each)…

### [Solved] Lab 3 exercise-Demonstrate the impact mobile and cloud technology on business”.

Lab 3 exercise Demonstrate the impact mobile and cloud technology on business”. Write the steps and all the related screenshots. Enhance your ideas other information if needed Your demonstration should explain

• Mobile impact on the business. (In terms of communication, productivity improvement, marketing etc…..)

• Cloud Technology impact on the business. (In terms of convenience, cost saving, reliability, availability, security and privacy, etc…..)

Recent developments in the mobile communication technology have generated massive improvements in various business areas. Widespread adoption of mobile technology has also had significant effects on how businesses communicate, changing the way they deal with….

### [Solved] In Java Develop an email registration for the new email address the user can register by GUI by submitting the required data

In Java Develop an email registration for the new email address the user can register by GUI by submitting the required data like name ,email address…in the registration form .it needs to be checked whether the email already exists or not.if it exists then it should through an error just beside the email field , without submitting the form first .if the username is unique then the entry should be submitted to the server where it is inserted into the database .this task will involve java and RMI array or MySQL.

Java File Email_Registration.java

*/

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet; ….

### [Solved] You are working on a documentation file userNotes.txt with some members of your software development team.

You are working on a documentation file userNotes.txt with some members of your software development team. Just before the file needs to be submitted, you manager tells you that a company standard requires that two blank spaces be left between the end-of-sentence period (.) and the start of the next sentence. (This rule does not affect sentences at the very end of a line.)

For example, this is OK: Turn the knob. Push the “on” button. This is not: Turn the knob. Push the “on” button.

Asking around among your team members, you discover that some of them have already typed their sentences in the approved manner, but others have inserted only a single blank between sentences. You need to fix this fast, and the first thing you want to do is to find out how bad the problem is. What command would you give to list all lines of userNotes.txt that contain sentence endings with only one blank before the start of the next sentence? What command would you give to print (display on the screen) the corrected text of userNotes.txt with all sentence endings having required two blanks before the start of the next sentence? LINUX

I have tried: grep ‘/. ‘ userNotes.txt; grep ‘/./s’ userNotes.txt; grep ‘/./s\$ ‘ userNotes.txt, grep ‘/. \$ ‘ userNotes.txt, grep ‘/. [/s] ‘ userNotes.txt

Answer to You are working on a documentation file userNotes.txt with some members of your software development team….

### [Solved] Intel Investments, Inc. manages funds for a number of companies and wealthy clients

Intel Investments, Inc. manages funds for a number of companies and wealthy clients. The investment strategy is tailored to each client’s needs. For a new client, Intel has been authorized to invest up to \$1.5 million in two investment funds: a high-risk stock fund and a low-risk money market fund. Each unit of the stock fund costs \$200 and provides an annual rate of return of 20%; each unit of the money market fund costs \$300 and provides an annual rate of return of 3%. The client is content with minimizing risk subject to the requirement that the annual income from the investment be at least \$200,000. According to Intel’s risk measurement system, each unit invested in the stock fund has a risk index of 10, and each unit invested in the money market fund has a risk index of 6. Intel’s client also specified that at least \$500,000 has to be invested in the money market fund.

Letting,

S = units purchased in the stock fund

M = units purchased in the money market fund

Min 10S + 6M

s.t.

200S + 300M ≤ 1,500,000 Funds available

0.15*200S + 0.03*300M ≥ 200,000 Annual Income

M ≥ 500,000/300 Units in money market

S, M ≥ 0

The computer solution is shown below:

 Cell Name Final Value Reduced Objective Allowable Allowable Cost Coefficient Increase Decrease \$B\$15 Units Invested S 4625 0 10 16.6666667 10 \$C\$15 Jars Produced F 1666.666667 0 6 1E + 30 3.75 Cell Name Final Value Shadow Constraint Allowable Allowable Price R.H. Side Increase Decrease \$B\$20 Whole tomatoes LHS 1425000 0 150000 1E + 30 75000 \$B\$21 Tomato Sauce LHS 200000 0.25 200000 15000 1942.857143 \$B\$22 Onion & Jalapeno LHS 1666.666667 3.75 1666.66667 294.117647 1666.666667

Suppose the risk index for the stock fund (the value of S) increases from its current value of 10 to 12. How does the optimal solution change, if at all?

1. Suppose the risk index for the money market fund (the value of M) increases from its current value of 6 to 8. How does the optimal solution change, if at all?
2. Suppose S increases to 12 and M increases to 8. How does the optimal solution change, if at all?

Answer to Intel Investments, Inc. manages funds for a number of companies and wealthy clients. The investment strategy is tailored…..

### [Solved] StayCool, an Indian manufacturer of Air Conditioners, has two plants – one in Mumbai and the other in Chennai

StayCool, an Indian manufacturer of Air Conditioners, has two plants – one in Mumbai and the other in Chennai. Each plant has a capacity of 250,000 units. The two plants serve the entire country, which is divided into four regional markets: the North, with a demand of 100,000 units; the East, with a demand of 50,000 units; the West, with a demand of 150,000 units; and the South, with a demand of 150,000 units. Two other potential sites for plants are Delhi and Kolkata. The variable production and transport costs (in thousands of rupees) per AC from each potential production site to each market are shown below:

Table: Transportation cost and Production capacity (‘000 Rupees) per AC at StayCool

 North East West South Current Capacity Chennai 19 20 18 14 250 Delhi 19 15 19 20 0 Kolkata 15 19 20 17 0 Mumbai 20 19 15 18 250 Current Demand (‘000s units) 100 50 150 150

StayCool is anticipating a compounded growth in demand of 35% for the next year and must plan its network investment decisions carefully. An additional capacity of 150,000 units can be added any of the four plants, by incurring a one-time cost of 1.5 billion rupees. Assume that StayCool plans to meet all demand.

a. Provide the facility configuration model for StayCool in written form. Detail the decision variables with a clear description of each, the objective function and the constraints. Do not copy/paste from Excel.

[Hints: The model is similar to the Home Store example in Lecture 2. The model of the Home Store example can be found in “In-class exercise 2 – Model.doc” available in BrightSpace. The binary variables (one for each plant) should be defined as: yi=1 if an additional capacity of 150,000 is added to plant i; yi=0 otherwise. The capacity constraint for plant 1 (plant in Chennai) is then given by x11+x12+x13+x14≤250+150y1.]

b. Run the model with Excel Solver. Is additional capacity recommended? How much and where?

c. What is the optimal total cost (transportation + production + additional capacity costs) of the solution provided?

d. Now suppose that from some reason, the route from Mumbai to the West is no longer available. How does the optimization problem change in terms of equations? You do not need to re-run the model to find the optimal solution.

[Hints: Think about adding a constraint with respect to the quantity shipped from Mumbai to the West, i.e., x43, or changing the cost parameter c43 which is now 15.]

e. Suppose that the East market must be served by Kolkata due to some service level requirement. How does the optimization problem change in terms of equations? You do not need to re-run the model to find the optimal solution.

[Hints: Think about adding constraints with respect to the quantities shipped from plants to the East, i.e., x12, x22, x32 and x42.]

Answer to StayCool, an Indian manufacturer of Air Conditioners, has two plants – one in Mumbai and the other in Chennai….

### [Solved] Write a class definition line and a one line docstring for the class Dog. Write an __init__ method for the class Dog that gives each dog its own name

When you modify the file dog.py the changes will not be reflected in the shell, even if you execute import dog again. Therefore, always start a new shell after modifying the class Dog.

Problem 1
Write a class definition line and a one line docstring for the class Dog. Write an __init__ method for the class Dog that gives each dog its own name and breed. Test this on a successful creation of a Dog object.
>>> import dog
>>> sugar = dog.Dog(‘Sugar’, ‘border collie’)
>>> sugar.name
Sugar
>>> sugar.breed
border collie

Problem 2
Add a data attribute tricks of type list to each Dog instance and initialize it in __init__ to the empty list. The user does not have to supply a list of tricks when constructing a Dog instance. Make sure that you test this successfully.
>>> sugar.tricks
[]

Problem 3
Write a method teach as part of the class Dog. The method teach should add a passed string parameter to tricks and print a message that the dog knows the trick.
>>> sugar.teach(‘frisbee’)
Sugar knows frisbee

Problem 4
Write a method knows as part of the class Dog. The method knows should check whether a passed string parameter is in the dog’s list of tricks, print an appropriate message and return True or False.
>>> sugar.knows(‘frisbee’)
Yes, Sugar knows frisbee
True
>>> sugar.knows(‘arithmetic’)
No, Sugar doesn’t know arithmetic
False

Problem 5
Create a class attribute species of type str to be shared by all instances of the class Dog and set its value to ‘canis familiaris’. The class attribute species should be defined within the class Dog but outside of any method.
>>> dog.Dog.species
‘Canis familiaris’
>>> sugar.species
‘Canis familiaris’