2.Assign and print the roll number, phone number and address of two students having
names "Sam" and "John" respectively by creating two objects of the class 'Student'.
2. Coren was able to sell several pairs of Marikina shoes that have sizes of 9, 7, 11, 3, and
8. Consider samples of size 3 that can be drawn from this population
a. List down all the possible samples and corresponding sample mean
Sample
Sample Means
b. Construct the sampling distribution of the sample means.
Sample Means
Frequency
Probability P(x)
c. Draw a histogram of the sampling distribution of the sample mean.
Machine Problem 5.10.
Write a program using one-‐dimensional array that searches a number if it is found on
the list of the given 5 input numbers and locate its exact location in the list.
Sample input/output dialogue: E
Enter a list of numbers: 5 4 8 2 6
Enter a number to be searched: 2 2 found in location 4
Explain each number.
1) A smaller than average vocabulary handicaps children in their school works as well as in their communications with others;
2) Speech errors, such as mispronunciation and grammatical mistakes, and speech defects, such as stuttering or lisping;
3) Children who have difficulty speaking the language used in their school environment may be handicapped in their efforts to communicate and may be made to feel that they are “different”;
4) Egocentric speech and critical comments
5) Children are considered immature by both age mates and adults if they continue to show unacceptable patterns of emotional expression, such as temper tantrums
6) if such unpleasant emotions as anger and jealousy are so dominant in them, they become disagreeable and unpleasant to be with.
Trial balance of GM as at 31 Dec 2021 Debit(RM) Credit(RM)
Sales 126,500
Purchases 99,850
Premises (cost) 100,000
Accum. depreciation at 1 Jan. 2021_Premises 25,000
Plant (cost) 18,000
Accum. depreciation at 1 Jan. 2021_Plant 2,300
Wages & salaries 8,900
Rent expense 7,500
Opening Inventories at 1 Jan. 2021 5,000
Capital at 1 Jan. 2021 80,000
Drawings 25,000
Carriage inwards 4,000
Account receivables & Account payables 27,500 16,000
Bad debts written off 5,000
Other revenue 2,000
Cash at bank 18,950
Bank loan 30,000
300,750 300,750
Add'l info at 31 Dec 2021:
i.Wages and salaries accrued amount to RM700.
ii. Rent prepaid amounts to RM300.
iii. Bank loan interest of 10 per cent per annum is outstanding.
iv. Provision for doubtful debt for account receivables of 2 per cent is to be made.
v. Depreciation to be charged at 2 per cent of cost on the premises and 10 per cent of cost on the plant.
vi.Closing inventories RM12,500
prepare Statement of Financial Position as at 31 December 2021
Trial balance of GM as at 31 Dec 2021 Debit(RM) Credit(RM)
Sales 126,500
Purchases 99,850
Premises (cost) 100,000
Accum. depreciation at 1 Jan. 2021_Premises 25,000
Plant (cost) 18,000
Accum. depreciation at 1 Jan. 2021_Plant 2,300
Wages & salaries 8,900
Rent expense 7,500
Opening Inventories at 1 Jan. 2021 5,000
Capital at 1 Jan. 2021 80,000
Drawings 25,000
Carriage inwards 4,000
Account receivables & Account payables 27,500 16,000
Bad debts written off 5,000
Other revenue 2,000
Cash at bank 18,950
Bank loan 30,000
300,750 300,750
Add'l info at 31 Dec 2021:
i.Wages and salaries accrued amount to RM700.
ii. Rent prepaid amounts to RM300.
iii. Bank loan interest of 10 per cent per annum is outstanding.
iv. Provision for doubtful debt for account receivables of 2 per cent is to be made.
v. Depreciation to be charged at 2 per cent of cost on the premises and 10 per cent of cost on the plant.
vi.Closing inventories RM12,500
prepare Statement of Comprehensive Income for the year ended 31 Dec 2021
The population in countrv C decreases. due to a lower birth rate. At the same time, there is an increase in the
cost of fertilizer, which is used to grow vegetables. Explain how the market tor vegetables will be attected by
these changes. Clearly indicate how the equilibrium price and equilibrium quantity will be affected by these
changes. Make use or a combination or diagrams and verbal explanation to explain vour answer. Note that Vour
diagrams should be properly annotated and that marks will be deducted for any missing labels on our diagram.
A population consists of the values (6, 9, 5, 3). Consider samples of size 2 that can be
drawn from this population.
a. List down all the possible samples and corresponding sample mean
Sample
Sample Means
b. Construct the sampling distribution of the sample means.
Machine Problem 5.9.
Write a program using two-‐dimensional arrays that computes the sum of data in rows
and sum of data in columns of the 3x3 (three by three) array variable n[3[3].
Sample input/output dialogue:
5 9 8 = 22
3 8 2 = 13
4 3 9 = 16
-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐-‐
12 20 19
Trial balance of GM as at 31 Dec 2021 Debit(RM) Credit(RM)
Sales 126,500
Purchases 99,850
Premises (cost) 100,000
Accum. depreciation at 1 Jan. 2021_Premises 25,000
Plant (cost) 18,000
Accum. depreciation at 1 Jan. 2021_Plant 2,300
Wages & salaries 8,900
Rent expense 7,500
Opening Inventories 1 Jan. 2021 5,000
Closing inventories 12,500.
Capital at 1 Jan. 2021 80,000
Drawings 25,000
Carriage inwards 4,000
Account receivables & Account payables 27,500 16,000
Bad debts written off 5,000
Other revenue 2,000
Cash at bank 18,950
Bank loan 30,000
300,750 300,750
Add'l info at 31 Dec 2021:
i.Wages and salaries accrued amount to RM700.
ii. Rent prepaid amounts to RM300.
iii. Bank loan interest of 10 per cent per annum is outstanding.
iv. Provision for doubtful debt for account receivables of 2 per cent is to be made.
v. Depreciation is to be charged at 2 per cent of cost on the premises and 10 per cent of cost on the plant.
prepare Statement of Comprehensive Income for the year ended 31 December 2021