Write an algorithm and draw a flow chart diagram

Assignment Help Data Structure & Algorithms
Reference no: EM131066903

Q1- Odd natural numbers form a sequence 1, 3, 5, 7, 9, 11, ...

Find the rule to find the nth term in the sequence of odd natural numbers.

Write an algorithm and draw a flow chart diagram to produce the sum and average of first n odd natural numbers. For example, the sum of first 5 odd natural numbers, 1+3+5+7+9 = 25, so their average is 25/5 = 5.

Q2- An inventor has an innovative product idea. He can either take a lump sum payment for the patent from an established manufacturer, or he can attempt to produce it with his own start-up company.  If he attempts his own start-up, the amount he will receive depends on the market response to his product, which could be poor, medium or excellent.  What should he do?

Probabilities and pay-outs are as follow:

-Start-up payouts

Poor=$300,000

Medium =$1,000,000

Excellent=$3,400,000

-Manufacturer payout

Flat rate =$850,000

-Probabilities

P(Poor) = 0.4

P(Medium) = 0.55

P(Excellent) = 0.05

Q3- Variables A, B, C & D are the first 4non-zero digits of your student ID. ID number: 15917711

A

B

C

D

 

 

 

 

The constraints of a linear programming problem are given as:

y ≥ -((A+10)/(B+2))x + (A+10)

y ≥ -((C+3)/(D+4))x+ (C+3)

y ≤ ((C+3)/(D+4))x + (A+10)

x ≤ A + B + C + D

x ≥ 0

y ≥ 0,

and the objective function is:

f(x, y) = -0.2x + 4y

a. Substitute variables A, B, C & D into the constraints, plot the constraints and indicate (shade) the feasibility region. You may use the grid overleaf or attach your own plot.                                                          

b. Write all the corner points of the feasibility region found in (a).

c. Evaluate the objective function for all these corner points. Find the point that maximizes the objective function and the point that minimizes the objective function.                                      

Q4- A developer has a 1 hectare section on which to build houses. They have 10,000 man-months of labour available. Their preferred luxury units need 550m2 per unit and 30 man-months of labour, yielding $1,100,000 profit per unit.

New planning rules require them to build at least 10% of their houses as affordable units, which make less profit per unit at $300,000, but take less land at 50m2 and less labour at 10 man-months per unit.

The developer wants to maximize their profit, given the constraints.

a. Complete the following table.              

 

Luxury

Affordable

Maximum Available

Land Required (m2)

 

 

 

Labour Required (man-months)

 

 

 

b. Suppose x is the number of luxury units and y is the number of affordable units. Write all the constraints on the development in the form of inequalities in terms of x and y.

c. Plot the inequalities on the following template, by choosing an appropriate scale. Label the corner points and indicate the feasible region.

d. Write an objective function in terms of the variables x and y for this problem.

e. Evaluate the objective function in (g) with each corner point from (c) and determine the x and y values that give the maximum profit. Assume that whatever the numbers of luxury and affordable unit that are produced, all will sell.

Reference no: EM131066903

Questions Cloud

Quality rating and improvement system : In this module, you have explored a number of current trends in early childhood education. One trend that has been embedded into early childhood education systems is Quality Rating and Improvement Systems (QRIS).
Moles of excess reactant is left unreacted : A 500 g sample of Al2(SO4)3 is reacted with 450g of Ca(OH)2. A total of 596g of CaSO4 is produce. What is limiting reactant in this reaction, and how many moles of excess reactant is left unreacted.
Find examples of both from the financial services sector : Find examples of both from the financial services sector.
Visual representation of comprehensive early childhood : Comprehensive Early Childhood Systems are an important tool to meet the needs of young children and their families while incorporating research and current trends. By bringing together early childhood stakeholder across sectors, children can be s..
Write an algorithm and draw a flow chart diagram : Write an algorithm and draw a flow chart diagram to produce the sum and average of first n odd natural numbers. For example, the sum of first 5 odd natural numbers, 1+3+5+7+9 = 25, so their average is 25/5 = 5
Identify rationales for each of the patterns and challenges : Prepare 1-2 paragraph introduction of your Case Study. Identify one pattern, challenge, or need associated with each parameter of the person you interviewed for your Case Study in Week 1(physical, mental, emotional, and spiritual). Identify ration..
Determine the amount of depreciation expense for the years : Determine the amount of depreciation expense for the years ended December 31, 2012, 2013, 2014, and 2015
Mass-volume percent concentration : Calculate the concentration of a NaHCO3 (in water) solution in several ways and are given the following information: 25 g NaHCO3, 500 mL solution. (a) Calculate the mass/volume percent concentration.
Approximate net charge on this amino acid : A. What carbonyl or amino functional group would you expect to be associated with each dissociation? B. What would be its approximate net charge on this amino acid at a pH of 2?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Survey of fault tolerance policy for load balancing scheme o

This paper investigates about fault-tolerance in load balancing schemes in distributed environment. There are some more parameters influencing QOS but our main focus is on fault tolerance and load balancing.

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Learning for numeric prediction

Write down the output (class) values and number of instances that appear in each of the leaf nodes A, B and C of the tree - Learning for Numeric Prediction

  Design of web pages

Explain how a web designer defines a page as XHTML as opposed to HTML and recognize two different types of XHTML standards.

  Write algorithm using pseudo code consensus algorithm

Write an algorithm, using pseudo code, "Consensus algorithm": A group of ten people need to decide which one flavor of ice cream they will all order, out of three options.

  Include methods to set and get values for each data field

Design a class named MagazineSubscription that has fields for a subscriber's name, the magazine name, and number of months remaining in the subscription. Include methods to set and get the values for each data field.

  Implement a virtual memory simulator based on demand paging

Will simulate the step by step execution of the OPT algorithm using the stored reference string; if there is no reference string stored yet, an error message must be displayed.

  Algorithm to keep track of sufficient information

Your algorithm must keep track of sufficient information so that, for any computer Cb it is possible to retrieve in O(n) time a sequence of communications by which Cb could have become infected.

  Draw a structured flowchart or write pseudocode

Draw a structured flowchart or write pseudocode that describes the process of looking up a word in a dictionary. Pick a word at random and have a fellow student attempt to carry out your instructions.

  1 add 12ten to 15ten in binary and then subtract 12ten from

1. add 12ten to 15ten in binary and then subtract 12ten from 15ten in binary.2. using 4-bit numbers to save space

  Describe an algorithm that takes as input a list of n

Describe an algorithm that takes as input a list of n distinct integers and finds the location of the largest even integer in the list or returns 0 if there are no even integers in the list.

  Which includes and algorithm that takes an array

Write an application which includes and algorithm that takes an array, selects the high and low integer from the array of integers with each pass and builds a new array of integers by inserting the high and low selection with each pass. Your ..

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