Program this with JAVA only with arrays, inheritance, polymorphism, exception, interfaces, and abstract classes.

You have the following products data file:

1,name1,desc1,100,50,50,D
2,name2,desc2,50,12,W
3,name3,desc3,30,20,W
4,name4,desc4,80,60,55,D

-------------- For each record, the following data are common:
product id, product name, product description, product price

For records that end with D (Dimensional), the two values before the D letter are product width and length.
For records that end with W (Weighted), the value before the W letter represents the product weight.

------------ Create an abstract class named Product which contains the following attributes:
product id, product name, product description, product price, and calcPay() abstract method.

Create a subclass from the Product class to represents the Dimensional Product, add the following attributes:
width and length. Implements the calcPay() so that it returns the result of (width * length * price).

Create another subclass from the Product class to represents the Weighted Product, add the following attribute:
weight. Implements the calcPay() so that it returns the result of (weight * price).

------------- When the program run, the following choices appear:

1- Show All Products
2- Add Product
3- Delete Product
4- Edit Product
5- Calculate Total Price
6- Save data to file
7- Exit Enter your choice:

--------------- Notes

1- Read the data from the file and store it in an array of type Products.
2- Add, Edit, and Delete operations changing the data in the array and when you choose the 6th choice (Save data to file), the changes are stored to the file.
3- Calculate Total Price (the 5th choice), sums the result of calling calcPay() from each object in the array.

Program this with java language only with arrays, inheritance, polymorphism, exception, interfaces, and abstract classes.

Solved
Programming in Java 1 Answer Anonymous(s) Post

Rank the wires according to the rate at which energy is transferred to thermal energy within them, greatest first.

Three wires, of the same diameter, are connected in turn between two points maintained at a constant potential difference. Their resistivities and lengths are ρ and L (wire A), 1.2ρ and 1.2L (wire B), and 0.9ρ and L (wire C). Rank the wires according to the rate at which energy is transferred to thermal energy within them, greatest first.

Solved
General Physics 1 Answer Anonymous(s) Post

Fill in the table.

Solved
International Business 1 Answer Information Technolgy

Prepare the capital accounts of the partners in the general ledger in order to calculate the amount that must be paid to each partner upon the dissolution of the partnership.

Kim Dash and Kanye East are partners in a business called K&K, a classy dog parlor in one of the upmarket suburbs of Cape Town. K&K has a December year-end. Up to recently Kim and Kanye were not only business partners, but also madly in love and engaged to be married. However, a few weeks ago Kanye realized that Kim is having an affair with the shop owner across the street from K&K. This broke his heart and he broke off the engagement immediately. Kim and Kanye then decided to dissolve K&K, as they found it difficult to see each other at work after this ordeal. K&K’s last day of business was 30 June 2019.

Kim & Kanye’s partnership agreement states the following terms and conditions:

  • Kim & Kanye share profits and losses in the ratio of 6:4;
  • Capital accounts earn interest at 12% per annum and are calculated on opening balances;
  • Current accounts do not earn interest;
  • Kim is a specialist dog hairstylist, so she earns a salary of N$20 000 per month while Kanye earns N$10 000 per month;
  • Interest is charged on drawings at 15% per annum.


The trial balance for the previous financial year ended 31 December 2018 is given below:

  Note debit (N$) Credit (N$)
Capital account: Kim     140 000
Capital account: Kanye 1   160 000
Current account: Kim     16 000
Current account: Kanye     19 000
General reserve     20 000
Land and buildings - cost 2 350 000  
Equipment - cost 1 30 000  
Equipment- Accumulated depreciation 1   30 000
Bank   145 500  
Loan: Bankned Ltd 3   160 000
Debtors   32 500  
Consumable stock   12 000  
Creditors     25 000
TOTAL   570 000 570 000


Additional information:

  1. During the year, Kanye inherited money from his uncle and he used his inheritance to contribute an additional N$150 000 capital to K&K on 1 March 2019. The partnership used the full amount of the additional capital contribution to buy state-of-the-art equipment which enabled them to wash and cut dogs’ hair faster and more efficiently than before.

    The equipment was delivered on 15 March 2019 but was only fully installed and ready for use on 31 March 2019.

    Equipment is depreciated over 5 years using the straight-line method. The residual value for this equipment was estimated to be N$15 000. All old equipment was sold for N$5 000 on 1 May 2019.
  2. As per K&K’s policy, land and buildings are not depreciated.
  3. The loan from Bankned earns interest at 10% per annum (payable monthly). Annual capital repayments of N$10 000 are made on 1 May of each year. All payments and interest have been correctly accounted for up to 30 June 2019.
  4. The draft financial statements for the period ended 30 June 2019 show a preliminary profit of N$132 750, however, this includes salary withdrawals by Kim of N$40 000 on 1 February 2019 and N$30 000 by Kanye on 1 April 2019. Furthermore, none of the events noted in note 1 above were accounted for in this preliminary profit.
  5. It was decided to transfer the balances of the current accounts to the respective capital accounts of the partners before the dissolution entries were passed.


Dissolution of the partnership (30 June 2019):

  • Debtors amounted to N$22 000 at the end of June. The partners offered a 5% discount to all debtors if they settled their accounts by 30 June 2019. All debtors took up this offer except for one of the older clients who’s account will not be recovered, amounting to N$3 000.
  • All creditors and the loan to the bank were settled by 30 June 2019. Creditors amounted to N$14 000.
  • The inventory on hand on 30 June 2019 at the cost price amounted to N$13 500. All inventories were bought by a competitor of K&K for N$9 400.
  • Land and buildings were sold for N$1 million before estate agent fees. The lawyers deducted the estate agent fees of 7.5% before transferring the proceeds to K&K’s bank account.
  • The recently installed equipment was sold for N$130 000.


REQUIRED: 
Prepare the capital accounts of the partners in the general ledger in order to calculate the amount that must be paid to each partner upon the dissolution of the partnership. You may assume that there were enough cash funds available to settle outstanding capital balances.

Solved
Balance Sheet 1 Answer Anonymous(s) Post

Find the probability without using excel function.

An automobile manufacturer is concerned about a fault in the braking mechanism of a particular model. The fault can, on rare occasions, cause a catastrophe at high speed. The distribution of the number of cars per year that will experience the catastrophe is a random variable with variance = 5.

  1. What is the probability that at most a total of 30 cars in 35 years will experience a catastrophe?
  2. What is the probability that an average of fewer than 3 cars in 35 years will experience a catastrophe?

find the value without using excel function.

Solved
Theory of probability 1 Answer Anonymous(s) Post

Assess the maximum and minimum power requirements of the fuel cell, the volume of the feasible fuel storage (25% boot space as the restriction and compressed hydrogen at 700bar), and maximum achievable travel range.

The technical specification of a typical small passenger vehicle are: Dimensions and Wights Boot Space Gross Vehicle Kerb Weight 410 litres 1380 kg 978 kg Fuel Economy Mileage (Motorway) Mileage (urban) Mileage (overall) 14.5 km/Litres 9.2 km/litres 11.4 km/lires Capacities Fuel Tank Capacity 45 Liter Performance Maximum Speed 0-100 kph % Mile 144 kph 18.4 secs 26.6 secs Engine Engine Type Displacement Power 1.3L End 1299 cc 59PS@5000rpm 100Nm@3200rpm Torque PEMFC Fuel Utilisation: 75% Stack Efficiency: 60% SOFC Fuel Utilisation: 90% Stack Efficiency: 65% If this vehicle is to be powered by a fuel cell system, then assess the maximum and minimum power requirements of the fuel cell, the volume of the feasible fuel storage (25% boot space as the restriction and compressed hydrogen at 700bar), and maximum achievable travel range. Discuss your design and compare them with the ICE vehicle. Overall engine efficiency supposed to be given. Include your system design.

No Answer
Mechanical Engineering 0 Answer Sami Temo

Determine the no-load speed.

A DC shunt motor has a full load rating of 15 hp, 230 volts, 57.1 amperes, 1400 rpm. The armature circuit resistance is 0.13 ohm and the field circuit resistance is 115 ohms. Neglecting the effect of armature reaction, determine the no-load speed.

Solved
Electrical Machines 1 Answer Anonymous(s) Post

Construct a 95% confidence interval for the mean of the population paired differences.

A company sent seven of its employees to attend a course in building self-confidence. These employees were evaluated for their self-confidence before and after attending this course. The following table gives the scores (on a scale of 1 to 15, 1 being the lowest and 15 being the highest score) of these employees before and after they attended the course.

Before

8

5

4

9

6

9

5

After

10

8

5

11

6

7

9

  1. Construct a 95% confidence interval for the mean of the population paired differences.
  2. Interpret the results.

in progress
Theory of probability 1 Answer Anonymous(s) Post