Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. Define a task class to generate a mark for 50 students for a Java multithreaded application. Use class Random to generate the marks at

image text in transcribed
image text in transcribed
a. Define a task class to generate a mark for 50 students for a Java multithreaded application. Use class Random to generate the marks at random between 0 to 100. The task should display the thread name and the marks. The task will be executed using two threads, namely Grading Thread I and Grading Thread II. Grading Thread I will be suspended for 1000 milliseconds after the generation and the display of each mark. Similarly, Grading Thread II will be suspended for 500 milliseconds. Put the task class in a package. Name the task class appropriately. Q2 (a) EKF Sdn Bhd is studying its cash flow requirement for the next 6 years. The company plans to buy various machines over the 6-year planning period in which RM50,000 to be spent in the next two years. Also, the company plans to spend RM60,000 three years from now and RM30,000 five years from now. Determine the present worth of the planned expenditures at an interest rate of 10% per year compounded semiannually. (6 marks) SULIT (BMFG 4623) -English Version- SULIT (b) Alokin Bhd is electrical harness manufacturer for various vehicle manufacturers that is well known for its quality product. To maintain its product quality, the company is looking at two options to upgrade its jigs and fixtures. Table 2 shows various costs for two different options. It is assumed that the interest rate is 12% per year. Table 2: Various cost for two different options, Description Option A Option B Option First cost (RM) 30,000 40,000 50,000 Maintenance cost per year (RM) 20,000 6,000 5.000 Salvage value (RM) 5.000 Life, years 5 16.000 18,000 5 i. Determine the best option for the company by using present worth analysis. (12 marks) ii. Find the value of first cost for the option not selected above so that it will become more economical alternative

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+management system of the MNE?

Answered: 1 week ago