## (Solved):Find the optimal value of the objective function for the following LP problem Max 2x + 3y s.t. 4x + 9y less than 72 10x + 11y less than 110 17x + 9y less than 153 x, y greater than 0 You hav… View Answer

Find the optimal value of the objective function for the following LP problem

Max

2x + 3y

s.t. 4x + 9y < 72

10x + 11y < 110

17x + 9y < 153

x, y > 0

You have to use a spreadsheet to solve this problem.

## (Solved):Divide the polynomial 6x^3 – 4x^2 + 7x – 2 by 2x – 1. View Answer

Divide the polynomial

$6{x}^{3}-4{x}^{2}+7x-2$

$6x^3 - 4x^2 + 7x - 2

$

by

$2x-1$

$2x - 1

$

.

## (Solved):Creating Magic Squares in C++: An n x n array, that is filled with integers 1, 2, 3, … , n2 is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is t… View Answer

Creating Magic Squares in C++: An n x n array, that is filled with integers 1, 2, 3, … , n2 is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value (see the magic square below). 2 7 6 9 5 1 4 3 8 Write a program that generates a magic square for an array of size 3 * 3. Please follow the given steps:

1. Declare a 2D array of 3 * 3.

2. Fill the array with unique values (1-9) generated randomly:

a. Generate a random number in the range of 1 – 9.

b. Check if the random number generated has been previously generated in the array (check if it is unique or not).

c. If the number is unique, store it in your 2D array.

3. Display the 2D array.

4. Check if the 2D array is a magic square, i.e: sum of each row = sum of each col = sum of each diagonal.

5. Keep repeating (looping) steps 1 to 4 till magic square found. Please make sure your code has following functions:

1. checkUnique(): Function to check if the random number generated is a unique number, i.e if the number is not previously generated number in your 2D array.

2. magicSquare(): Function to check if the 2D array is a magic square. Check if sum of each row, sum of each column a sum each diagonal are equal. You can use additional functions (optional) for other operations. Make sure your program runs till the magic square is found.