PointList Class
Write a class named PointList that keeps a list of Point objects in an ArrayList. The PointList class should accept any object that is an instance of the Point class,, or a subclass of Point. Demonstrate the class in an application.
This is My point class….
public class Point<T>
{
private T xCoordinate;
private T yCoordinate;
public Point(T x, T y)
{
xCoordinate = x;
yCoordinate = y;
}
public void setX(T ){
xCoordinate = x;
}
public void setY(T y) {
yCoordinate = y;
}
public T getX(){
return xCoordinate;
}
public T getY(){
return yCoordinate;
}
}
And this is the starting of my code…my teacher wants it this way
import java.util.ArrayList;
public final class PointList<T extends Point<? extends Number>>
{
ArrayList<T> arrList = new ArrayList<>();
}
In: Computer Science
With relevance to Organic Chemistry and acids and bases, can somebody teach me everything there is to know about pka?
In: Chemistry
A 7.50g bullet traveling at 490m/s embeds itself in a 1.59kg wooden block at rest on a frictionless surface. The block is attached to a spring with k = 89.0N/m
Find the Period
Find the amplitude of the subsequent simple harmonic motion.
In: Physics
Eric wants to estimate the percentage of elementary school children who have a social media account. He surveys 450 elementary school children and finds that 280 have a social media account.
Identify the values needed to calculate a confidence interval at the 99% confidence level. Then find the confidence interval.
z0.10 | z0.05 | z0.025 | z0.01 | z0.005 |
1.282 | 1.645 | 1.960 | 2.326 | 2.576 |
Use the table of common z-scores above.
In: Math
Design a teaching plan about bike safety (helmet) for a community population. The reaching plan must have objectives, contents outline, learning development and activities and evaluation.
In: Nursing
Hours | CuFt | #LargeFurniture | Elevator |
24.00 | 545 | 3 | Yes |
13.50 | 400 | 2 | Yes |
26.25 | 562 | 2 | No |
25.00 | 540 | 2 | No |
9.00 | 220 | 1 | Yes |
20.00 | 344 | 3 | Yes |
22.00 | 569 | 2 | Yes |
11.25 | 340 | 1 | Yes |
50.00 | 900 | 6 | Yes |
12.00 | 285 | 1 | Yes |
38.75 | 865 | 4 | Yes |
40.00 | 831 | 4 | Yes |
19.50 | 344 | 3 | Yes |
18.00 | 360 | 2 | Yes |
28.00 | 750 | 3 | Yes |
27.00 | 650 | 2 | Yes |
21.00 | 415 | 2 | No |
15.00 | 275 | 2 | Yes |
25.00 | 557 | 2 | Yes |
45.00 | 1028 | 5 | Yes |
29.00 | 793 | 4 | Yes |
21.00 | 523 | 3 | Yes |
22.00 | 564 | 3 | Yes |
16.50 | 312 | 2 | Yes |
37.00 | 757 | 3 | No |
32.00 | 600 | 3 | No |
34.00 | 796 | 3 | Yes |
25.00 | 577 | 3 | Yes |
31.00 | 500 | 4 | Yes |
24.00 | 695 | 3 | Yes |
40.00 | 1054 | 4 | Yes |
27.00 | 486 | 3 | Yes |
18.00 | 442 | 2 | Yes |
62.50 | 1249 | 5 | No |
53.75 | 995 | 6 | Yes |
79.50 | 1397 | 7 | No |
In: Math
Aluminum hydroxide reacts with sulfuric acid as follows: 2Al(OH)3(s)+3H2SO4(aq)→Al2(SO4)3(aq)+6H2O(l)
1)How many moles of Al2(SO4)3 can form under these conditions?
2)How many moles of the excess reactant remain after the completion of the reaction?
Thank you!!
In: Chemistry
Variable Costs, Contribution Margin, Contribution Margin Ratio
Super-Tees Company plans to sell 13,000 T-shirts at $16 each in the coming year. Product costs include:
Direct materials per T-shirt | $5.60 |
Direct labor per T-shirt | $1.12 |
Variable overhead per T-shirt | $0.48 |
Total fixed factory overhead | $45,000 |
Variable selling expense is the redemption of a coupon, which averages $0.80 per T-shirt; fixed selling and administrative expenses total $14,000.
Required:
1. Calculate the following values:
Round dollar amounts to the nearest cent and round ratio values to
three decimal places (express the ratio as a decimal rather than a
percentage).
a. Variable product cost per unit | $ |
b. Total variable cost per unit | $ |
c. Contribution margin per unit | $ |
d. Contribution margin ratio | |
e. Total fixed expense for the year | $ |
2. Prepare a contribution-margin-based income statement for Super-Tees Company for the coming year. If required, round your per unit answers to the nearest cent.
Super-Tees Company | ||
Contribution-Margin-Based Operating Income Statement | ||
For the Coming Year | ||
Total | Per Unit | |
$ | $ | |
$ | $ | |
$ |
3. What if the per
unit selling expense increased from $0.80 to $1.75? Calculate new
values for the following:
Round dollar amounts to the nearest cent and round ratio values to
four decimal places (express the ratio as a decimal rather than a
percentage):
a. Variable product cost per unit | $ |
b. Total variable cost per unit | $ |
c. Contribution margin per unit | $ |
d. Contribution margin ratio | |
e. Total fixed expense for the year | $ |
In: Accounting
In: Economics
Please Show calculations and work
Company has budgeted the following unit sales:
2019 Units
January 10,000
February 8,000
March 9,000
April 11,000
May 15,000
The finished goods units on hand on December 31, 2018, was 2,000 units. Each unit requires 2 pounds of raw materials that are estimated to cost an average of $4 per pound. It is the company's policy to maintain a finished goods inventory at the end of each month equal to 20% of next month's anticipated sales. They also have a policy of maintaining a raw materials inventory at the end of each month equal to 30% of the pounds needed for the following month's production. There were 5,760 pounds of raw materials on hand at December 31, 2018.
1. Prepare a production budget for January and February.
2. Prepare a direct materials budget for January and February
In: Accounting
Discuss the benefits of the multiple types of e-payment system to the customers?
In: Economics
A 22 g ball with a radius of 29 mm rolls back and forth in a
hemispherical bowl of radius 6 cm.
(a) What is the period of the oscillation if the ball is
solid?
(b) What is the period of the oscillation if the ball is
hollow?
(c) What is the percent difference between the two?
In: Physics
Two objects are moving in the xy-plane. The first, with mass 2.8 kg, has a velocity v1 = (-2.0 m/s) i + (-3.5 m/s) j; the second object, with mass 1.5 kg, has velocity v2 = (2.1 m/s) i + (-1.5 m/s) j.
(a) What is the total momentum of the system?
( -2.45 i + -12.05 j)
kg·m/s
(b) If the system observed at a later time shows that the 2.8 kg
object has v'1 = (2.0 m/s) i,
what is the velocity of the 1.5 kg object?
( ? i + ? j) m/s
(c) Consider again the initial situation. Now suppose that there
has been a mass transfer, so that the first object now has a mass
of 2.6 kg. The total mass is conserved. What is
v'1 if the velocity of the second object is
(-2.5 m/s) j + (1.3 m/s) k?
(? i +? j +? k)
m/s
(d) Calculate the sum of the kinetic energies in the initial
configuration and in the configurations of parts (b) and (c).
Configuration (a)
? J
Configuration (b)
? J
Configuration (c)
? J
In: Physics
What of the following statements is true for refracting telescopes?
In: Other
Driver’s License Exam 20PTS PYTHON AND FLOWCHART The local driver’s license office has asked you to design a program that grades the written portion of the driver’s license exam. The exam has 20 multiple choice questions. Here are the correct answers: 1.B 6.A 11.B 16.C 2.D 7.B 12.C 17.C 3.A 8.A 13.D 18.B 4.A 9.C 14.A 19.D 5.C 10.D 15.D 20.A Your program should store these correct answers in an array. (Store each question’s correct answer in an element of a String array.) The program should ask the user to enter the student’s answers for each of the 20 questions, which should be stored in another array. After the student’s answers have been entered, the program should display a message indicating whether the student passed or failed the exam.(A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions.
******Need Python code
***** Need pseudocode and flowgorithm flowchart
In: Computer Science