IN JAVA 1.Write a class Item with these following requirements
ØHas two properties: itemName (text) and MSRP (decimal)
ØHas a getTax() method that has no implementation. This method returns a decimal value
ØHas a finalPrice() method that returns the price after tax
ØThis class cannot be instantiated
ØThis class is encapsulated
2.Write a class Electronics that inherits Item with these following requirements
ØHas two properties: manufacturer (text) and tax (decimal). tax value is shared among all electronic items
ØHas a constructor that initializes all attributes
ØProvide an implementation for getTax()
ØThis class is encapsulated
3.Write a class Shop that sells electronic items with these following requirements
ØHas two properties: shopName (text) and itemSold (collection). itemSold stores all the items that the shop sold. You can choose any Java built-in collection type that you like
ØHas a constructor (you can decide which input to have)
ØHas a method sellItem() that add a sold item to itemSold
ØHas a method getSoldList() that returns the names of all items sold in an array. This method shows an error when the collection is empty
ØThis class is encapsulated
4.Write a class Test that creates a Shop, sells a few items, then test getSoldList() and sortSoldList()
ØAssuming tax rate is 7%
In: Computer Science
Vector A = (-2, 2.4) and vector B = (4, 2.3). Find the magnitude of the component of A perpendicular to the direction of B
In: Physics
In: Economics
Discuss in details the strategic benefits of Business Inelegance systems
In: Computer Science
Labradors come in three colors-- black, brown and yellow. What is the genetic basis for these different coat colors? One gene produces melanin, a pigment which is deposited in the dog's fur and makes the color dark. With this gene, allele B (black) is dominant to allele b. Only in the case of a recessive homozygote (bb) will the dog's phenotype be brown. The regulatory gene is separate from the melanin gene but it acts as a switch, either turning the melanin gene on or turning it off. Allele E is dominant and allows for the melanin to be deposited in the dog's fur ("on" switch), but if the switch gene is a recessive homozygote, the melanin is blocked ("off" switch) and a yellow dog is the result!
Review the information on Labrador retrievers above. What are the phenotypic ratios of the F1 generation offspring of two dihybrids? Make sure to match the numbers with coat colors (e.g, which number in the ration goes with which color). Use a Punnett square to determine the ratios and show your work. Make sure to state the phenotypic ratios. Finally, what color are the parents?
In: Biology
Consider a consumer’s consumption-saving decision in a two-period model. Suppose that the real interest rate is r. This consumer’s current income is y and the future income is y’ . The government imposes lumpsum taxes t and t’ in the current period and future period, respectively. In addition, the government subsidizes savings with rate q: the consumer needs to pay 1 /(1+q) to save one unit of consumption. That is, the budget constraint of the current period is c + s/( 1 + q) = y − t.
(a) (10 points) Derive the lifetime budget constraint. Graphically illustrate this person’s budget constraint, endowment point, and optimal choice. Assume that this consumer is the lender (saver).
(b) (10 points) What will be the effects of decreasing q on (c, c’ , s), respectively? Assume that this consumer remains as the lender, and the substitution effects are dominating. Explain.
In: Economics
A stone is dropped at t = 0. A second stone, with 6 times the mass of the first, is dropped from the same point at t = 130 ms. (a) How far below the release point is the center of mass of the two stones at t = 350 ms? (Neither stone has yet reached the ground.) (b) How fast is the center of mass of the two-stone system moving at that time?
In: Physics
A) At a temperature of 27 ?C, what is the speed of longitudinal waves in hydrogen (molar mass 2.02 g/mol)? The ratio of heat capacities for hydrogen is ?=1.41.
| Answer:v = |
1320 |
m/s |
B) At a temperature of 27 ?C, what is the speed of longitudinal waves in helium (molar mass 4.00 g/mol)? The ratio of heat capacities for helium is ?=1.67.
| Answer:v = |
1020 |
m/s |
C)
At a temperature of 27 ?C, what is the speed of longitudinal waves in argon (molar mass 39.9 g/mol)? The ratio of heat capacities for argon is ?=1.67.
| Answer:v = |
323 |
m/s |
D,E, F i need help please and show work please
D)Compare your answer for part A with the speed in air at the same temperature. The ratio of heat capacities for air is ?=1.40.
E)Compare your answer for part B with the speed in air at the same temperature. The ratio of heat capacities for air is ?=1.40.
F)Compare your answer for part C with the speed in air at the same temperature. The ratio of heat capacities for air is ?=1.40.
In: Physics
Show by graphing how a change (upward shift or downward shift) in each of the following factors would alter the shape of the total product curve for medical care. A. An increase of education spending. B. An improvement in lifestyle. C. An improvement in the environment.
In: Economics
In an engine, a piston oscillates with simple harmonic motion so that its position varies according to the expression x(t) = 15.0 cos(20.0t) where xis in centimeters and t is in seconds. At t = 1 s, find (a) the position of the piston, (b) its velocity, and (c) its acceleration. Find (d) the period and (e) the amplitude of the motion. (f) Sketch a plot of the acceleration as a function oftime. Scale the plot properly.
In: Physics
What are the basic differences between proprietary and public companies?
there are 5 basic differences between proprietary and public companies.
In: Economics
Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), and load the questions into an array of questions. You will need to implement the following class hierarchy (given in UML):
Once the test bank has been loaded, simply iterate over the array of questions and have each question printed out to the screen.
The test bank (text file) will have the following format:
For this assignment, you may download this sample code for reference. A sample test bank file is as follows:
3
TF 5
There exist birds that cannot fly?
true
MC 10
Who was the President of the USA in 1991?
6
Richard Nixon
Gerald Ford
Jimmy Carter
Ronald Reagan
George Bush Sr.
Bill Clinton
E
TF 10
The city of Boston hosted the 2004 Summer Olympics?
false
In: Computer Science
Write a C program that accepts a port number as a command line
argument, and starts an HTTP server. This server should constantly
accept() connections, read requests of the form
GET /path HTTP/1.1\r\n\r\n
read the file indicated by /path, and send it over the "connect"
file descriptor returned by the call to accept().
In: Computer Science
Given that labor is a resource that needs to be used efficiently, what responsibility do you feel the government has in decreasing unemployment? Does the negative relationship between inflation and unemployment have any impact on your decision?
In: Economics