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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

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

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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