Find two positive integers such that the sum of the first number
and four times the...
Find two positive integers such that the sum of the first number
and four times the second number is 100 and the product of the
numbers is as large as possible.
please double check answer
Solutions
Expert Solution
The answer sheet has two pages.it is the
first pagesecond/last
page
a)Find two positive numbers such that the sum of the first number
and twice the second number is 108 and the product is a maximum
b)figure out the dimentions of a rectangular solid that has a
square base of maximum volume if its surface area is 216 square
inches
Consider all positive integers less than 100. Find the number of
integers divisible by 3 or 5?
Consider strings formed from the 26 English letters. How many
strings are there of length 5?
How many ways are there to arrange the letters `a',`b', `c',
`d', and `e' such that `a' is not immediately followed by`e' (no
repeats since it is an arrangement)?
Three positive integers (a, b, c) with a<b<c are called a
Pythagorean triple if the sum of the square of a and the square of
b is equal to the square of c. Write a program that prints all
Pythagorean triples (one in a line) with a, b, and c all smaller
than 1000, as well the total number of such triples in the end.
Arrays are not allowed to appear in your code. Hint: user nested
loops (Can you...
The subset-sum problem is defined as follows. Given a set of n
positive integers, S = {a1, a2, a3, ..., an} and positive integer
W, is there a subset of S whose elements sum to W? Design a dynamic
program to solve the problem. (Hint: uses a 2-dimensional Boolean
array X, with n rows and W+1 columns, i.e., X[i, j] = 1,1 <= i
<= n, 0 <= j <= W, if and only if there is a subset of...
For each question below, calculate the number of four-digit
integers (1000 through 9999 inclusive; the first digit cannot be 0)
that satisfy the specified property:
1) How many four-digit integers are even (for example, 2102 and
8162, but NOT 2001)?
2) How many four-digit integers are consisted of four distinct
digits in strictly decreasing order (for example, 9621 and 8742,
but NOT 1352)? (Hint: combination problem)
3) How many four-digit integers are consisted of two pairs of
distinct digits (for...