import java.util.LinkedList;
public class StudentLinkedList { public static void main(String[]
args) { LinkedList<Student> linkedlist = new
LinkedList<Student>(); linkedlist.add(new Student("Ahmed
Ali", 20111021, 18, 38, 38)); linkedlist.add(new Student("Sami
Kamal", 20121021, 17, 39, 35)); linkedlist.add(new Student("Salem
Salim", 20131021, 20, 40, 40)); linkedlist.add(new Student("Rami
Mohammed", 20111031, 15, 35, 30)); linkedlist.add(new Student("Kim
Joe", 20121024, 12, 32, 32)); linkedlist.addFirst(new Student("Hadi
Ali", 20111025, 19, 38, 39)); linkedlist.addLast(new
Student("Waleed Salim", 20131025, 10, 30, 30)); linkedlist.set(0,
new Student("Khalid Ali", 20111027, 15, 30, 30));
linkedlist.removeFirst(); linkedlist.removeLast();
linkedlist.add(0, new Student("John Don", 20131025, 11, 31, 31));
linkedlist.remove(2); } class Student{ private String name; private
Long ID; private int [] marks = new int [3];
public Student(String name, long ID, int quizzes, int mid, int fin)
{ this.name = name; this.ID = ID; marks[0] = quizes; marks[1] =
mid; marks[2] = fin; } public String getName() { return name;
}
public Long getID() { return ID; }
public int[] getMarks() { return marks; }
@Override public String toString() { String temp = "student: " +
"name = " + name + ", ID = " + ID + ", marks = {" + marks[0] + ", "
+ marks[1] + ", " + marks[2] + "}"; return temp; } }
1- What is the content of the linkedList after the executing the following program?
2- Modify StudentLinkedList class by adding the following methods: printStudentList: print by calling and printing “toString” of every object in the linkedList. Every student object to be printed in a separate line. deleteStudentByID(long id): delete student object from the list whose ID is matching with the passed parameter. sortListByID(): sort the linkedlist according to students IDs. findMarksAverage(): find the average of all marks for all students in the list. findMinMark(int markIndex): find the student with the minimum mark in a specific index: o 0: Quizzes o 1: Midterm Exam o 2: Final Exam
In: Computer Science
Oscar Clemente is the manager of Forbes Division of Pitt, Inc., a manufacturer of biotech products. Forbes Division, which has $4.04 million in assets, manufactures a special testing device. At the beginning of the current year, Forbes invested $5 million in automated equipment for test machine assembly. The division’s expected income statement at the beginning of the year was as follows.
| Sales revenue | $ | 16,030,000 | |
| Operating costs | |||
| Variable | 2,160,000 | ||
| Fixed (all cash) | 7,620,000 | ||
| Depreciation | |||
| New equipment | 1,680,000 | ||
| Other | 1,350,000 | ||
| Division operating profit | $ | 3,220,000 | |
A sales representative from LSI Machine Company approached Oscar in October. LSI has for $6.12 million a new assembly machine that offers significant improvements over the equipment Oscar bought at the beginning of the year. The new equipment would expand division output by 10 percent while reducing cash fixed costs by 5 percent. It would be depreciated for accounting purposes over a three-year life. Depreciation would be net of the $540,000 salvage value of the new machine. The new equipment meets Pitt's 12 percent cost of capital criterion. If Oscar purchases the new machine, it must be installed prior to the end of the year. For practical purposes, though, Oscar can ignore depreciation on the new machine because it will not go into operation until the start of the next year.
The old machine, which has no salvage value, must be disposed of to make room for the new machine.
Pitt has a performance evaluation and bonus plan based on residual income. Pitt uses a cost of capital of 12 percent in computing residual income. Income includes any losses on disposal of equipment. Investment is computed based on the end-of-year balance of assets, net book value. Ignore taxes.
Required:
a. What is Forbes Division’s residual income if Oscar does not acquire the new machine?
b. What is Forbes Division’s residual income this year if Oscar acquires the new machine?
c. If Oscar acquires the new machine and operates it according to specifications, what residual income is expected for next year?
ANSWER IN DOLLARS NOT PERCENTAGE
(Enter your answers in thousands of dollars. Negative amounts should be indicated by a minus sign. Round your answers to the nearest whole dollars)
In: Accounting
Oscar Clemente is the manager of Forbes Division of Pitt, Inc., a manufacturer of biotech products. Forbes Division, which has $4.02 million in assets, manufactures a special testing device. At the beginning of the current year, Forbes invested $5.09 million in automated equipment for test machine assembly. The division’s expected income statement at the beginning of the year was as follows.
| Sales revenue | $ | 16,180,000 | |
| Operating costs | |||
| Variable | 2,050,000 | ||
| Fixed (all cash) | 7,600,000 | ||
| Depreciation | |||
| New equipment | 1,670,000 | ||
| Other | 1,380,000 | ||
| Division operating profit | $ | 3,480,000 | |
A sales representative from LSI Machine Company approached Oscar in October. LSI has for $5.07 million a new assembly machine that offers significant improvements over the equipment Oscar bought at the beginning of the year. The new equipment would expand division output by 10 percent while reducing cash fixed costs by 5 percent. It would be depreciated for accounting purposes over a three-year life. Depreciation would be net of the $600,000 salvage value of the new machine. The new equipment meets Pitt's 12 percent cost of capital criterion. If Oscar purchases the new machine, it must be installed prior to the end of the year. For practical purposes, though, Oscar can ignore depreciation on the new machine because it will not go into operation until the start of the next year.
The old machine, which has no salvage value, must be disposed of to make room for the new machine.
Pitt has a performance evaluation and bonus plan based on residual income. Pitt uses a cost of capital of 12 percent in computing residual income. Income includes any losses on disposal of equipment. Investment is computed based on the end-of-year balance of assets, net book value. Ignore taxes.
Required:
a. What is Forbes Division’s residual income if Oscar does not acquire the new machine?
b. What is Forbes Division’s residual income this year if Oscar acquires the new machine?
c. If Oscar acquires the new machine and operates it according to specifications, what residual income is expected for next year?
(Enter your answers in thousands of dollars. Negative amounts should be indicated by a minus sign. Round your answers to the nearest whole dollars)
|
||||||||||||
In: Accounting
If you add a constraint to an optimization model, and the previously optimal solution satisfies the new constraint, will this solution still be optimal with the new constraint added? Why or why not?
In: Statistics and Probability
What is the correlation between the proper training of new employees and performance within an organization? What is the significance of including an orientation program for new hires?
Thank you
In: Economics
The controller and sales manager are at odds over the pricing of a new product. What major influences should be considered in pricing the new product? Discuss each briefly
In: Accounting
In: Statistics and Probability
Explain how ROI works and how it would impact the purchase of new equipment.
Summarize why new equipment would be beneficial to the organization. Why or why not?
In: Accounting
How did the grid pattern transform New York
City?
How did the Erie Canal transform both the young nation and the New
York City?
In: Psychology
In: Operations Management