monica has cooked n dishes and collected the data on the level of satisfaction for all the dishes from a guest. the guest returns an array, where the ith element of the array is the liking level of the ith dish. also, the time taken to cook the ith dish is i. like-to-time coefficient of a dish is calculated by multiplying the time taken to cook food with its liking level, i.e., input 2[i]. totally like-to-time coefficient is calculated by summing up all individual coefficients of dishes. you want the total like-to-time coefficient to be maximum. you can also remove some dishes, in which case, a new coefficient is calculated using the left dishes. find the maximum sum of all possible like-to-time coefficients.
You have access to the sequence genomes for moss and the lycophyte
Selaginella. Your goal in analyzing the data is to write a ground-breaking paper that
answers an important question about the evolution of plants. What questions
would you try?
Find, approximately, the amount of metal in a closed tin can 3 inches in diameter and 5 inches high, if the metal is 1/32 inches thick.
Find by use of differentials the approximate total area of a right circular cone whose base radius and height are 5.03 inches and 11.89 inches, respectively.
If the Demand function is P=10-3q than what will be the total revenue at q=3
Calculate the real wage(W/P) if the value of the markup, u=0.1
Given the demand function Qd = 40-2p and the supply function 2P-Q = 20. Assume the government impose at a tax of t per unit on quantity supplied and the producer adjust the supply function to include the tax.
a. Find the tax rate which will maximize the tax revenue?
b. Find the maximum revenue which can be obtained from taxation?
Develop a class called Complex that represents a complex number. An example of a complex number is 5 + 10 i (5 is the real part and 10 is the imaginary part of a complex number). Use public integer values to represent the real and imaginary parts of a complex number.
A company wants to transmit data over the telephone, but it is concerned that its phones may be tapped. All of its data are transmitted as four-digit integers. It has asked you to write a program that will encrypt its data so that the data may be transmitted more securely. Your script should read a four-digit integer entered by the user in a prompt dialog and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then build the script that displays the encrypted integer.
To write a java program that reads a file name from the user, displays information about whether the file exists, whether the file is readable, or writable, the type of file and the length of the file in bytes.