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

  Prove there exist no deterministic algo for election in ring

Prove that there exists no deterministic algorithm for election in rings of known, even size where communication is by synchronous message passzng.

  Develop modified versions of the quicksort and mergesort

Using the recursive algorithm, described in the previous section, develop an iterative function with the same functionality as the recursive nextPermutation function. Recall, that the iterative function should not contain recursive calls - it uses..

  Discuss the different redundant array of independent disks

Discuss how you would use different RAIDs in the workplace.

  Do the planning and write an algorithm to solve the problem

Do the planning and write an algorithm to solve the problem

  Define how to building a binary search tree

Three of these operations (all but add) must visit every node in the tree. One of these must use preorder traversal, one must use inorder traversal, and one must use postorder traversal.

  Draw a hierarchy chart and then plan the logic for a program

Draw a hierarchy chart and then plan the logic for a program for the sales manager of The Couch Potato Furniture Company. The manager needs a program to determine the profit on any item sold. Input includes the wholesale price and retail price for..

  Construct a graph of a social network

IS679: Social Network Application and Analytics - Determine whether the graph/network is directed or undirected. If directed, transform it into undirected graph/network - Prepare an input file to Gephi based on the above undirected graph/network.

  Write height-balanced tree code with backpointers

Write height-balanced tree code with backpointers, based on the height-balanced tree code - The programming language is C or C++; test your code before submission using the gcc or g++ compiler.

  Decryption speed and diffie-hellman

Increase of a single bit in the size of the encryption key doubles the amount of needed computations - Show how the recipient of the message, who knows e, produces the plaintext.

  Maekawa''s algorithm

Maekawa's Algorithm is used to achieve mutual exclusion for 13 sites. Suppose the sites are labeled 1, 2, ..., 13. Find the request sets R1, R2, ... , R13. Suppose sites 1, 6, 12 want to enter a critical section ( CS ) and they have sent requests in ..

  Create a chart for each sales person in the categories

Open Excel and start with a blank spreadsheet. In cell A10 type in the words "iHaul Sales Force Facts and Figures" - do not use quotes, do use font size 16, and make the text bold.

  Enhance the pseudocode using arrays and loops

Enhance the pseudocode in the attachment by using arrays and loops. Also, instead of hardcoding the product names within the program, ask the user to enter the product names in addition to the prices

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