New Dictionary
Peter is making a new dictionary.He wants to arrange the words in the ascending order of their length and later arrange the ones with the same length in lexicographic order.Each word is given a serial number according to its position.Find the word according to the serial number.
Input
The first line of input is a positive integer which is the serial number.
Word Serial Number
A 1
B 2
C 3
... ...
X 24
Y 25
Z 26
AA 27
AB 28
... ...
BA 53
... ...
ZZ 702
AAA 703
Explanation
Given serial number is 42.
As the serial number is between 26 and 52, the first character of the word is A.The remaining counter of the serial number is 16 (42-26).
The second character of the word is the 16th alphabet, which is P.
So, the output should be AP.
Sample Input1
42
Sample Output1
AP
Sample input2
751
Sample output2
ABW
Given the demand equation Q=250-50P . Determine the total revenue and marginal revenue functions. Does this situation occur in a perfectly competitive market? If yes why? If not why not?
37. In a perfectly competitive and constant-cost industry demand is given by Q = 2000 - 2P. The short total cost function at the scale of production that minimizes long-run costs for each identical firm is TC = 1000 + 100q + 10q2.
A. What will the long-run price be in this industry? How many firms will there be in long-run equilibrium?
B. What is the equation of the short-run supply curve if the industry is in long-run equilibrium?
C. Suppose that demand in this industry increases to: Q = 4000 - 2P. What will the new long run price be in this industry and how many firms will there be?
d. Describe how the industry will adjust to reach the new long-run equilibrium and illustrate your answer by drawing a graph of the firm and a graph of the industry.
a. Write algorithm using pseudocode and flowchart that uses while loops to perform the
following steps:
i. Prompt the user to input two integers: firstNum and secondNum note that firstNum
must be less than secondNum.
ii. Output all odd numbers between firstNum and secondNum.
iii. Output the sum of all even numbers between firstNum and secondNum.
iv. Output the numbers and their squares between firstNum and secondNum.
v. Output the sum of the square of the odd numbers between firstNum and secondNum.
b. Redo Exercise (a) using for loops.
c. Redo Exercise (a) using do. . .while loops.
Suppose cost of production of a firm is given by:
TC=128+50Q-16Q^2+2Q^3
What amount of the product should be produced to maximize profit of the firm if price per unit output is 74? Find the maximum profit or loss.
19. Suppose a given firm operating in a perfectly competitively market.
TFC = birr 600
TVC = birr 500 and TR = birr 700.
Should the firm stay in the business? What will be you answer if the TR changes to birr 450?
14. The total cost function of a firm is given by c = 100 + 40 q + 5q2.
A. Find Total fixed cost
B. Find the Marginal cost equation and the marginal cost of the 5th unit
C. Find Average variable cost equation and the AVC of the 4th unit
D. Find average fixed cost equation and the AVC of the 6th unit
E. Find average total cost equation and the ATC of the 3rd u
Illustrate the market for alcohol, labeling the demand curve, the social-value curve, the supply curve, the social-cost curve, the market equilibrium level of output, and the efficient level of output.
. Two bodies A and B in figure are separated by a spring. Their motion down the incline is resisted by a force P = 800 N . The coefficient of kinetic friction is 0.30 under A and 0.10 under under B. a.) compute the acceleration of block A b.) Compute the acceleration of block B c.) Determine the force in the spring.
New Dictionary
Peter is making a new dictionary.He wants to arrange the words in the ascending order of their length and later arrange the ones with the same length in lexicographic order.Each word is given a serial number according to its position.Find the word according to the serial number.
Input
The first line of input is a positive integer which is the serial number.
Output
The output should be a single line containing the word that represents the serial number.
Explanation
Given serial number is 42.
As the serial number is between 26 and 52, the first character of the word is A.The remaining counter of the serial number is 16 (42-26).
The second character of the word is the 16th alphabet, which is P.
So, the output should be AP.
Sample Input1
42
Sample Output1
AP
Sample input2
751
Sample output2
ABW