0% found this document useful (0 votes)
6 views5 pages

Prog6112ta THT

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Prog6112ta THT

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

22; 23; 24 2023

MODULE NAME: MODULE CODE:


PROGRAMMING 1B PROG6112

ASSESSMENT TYPE: TAKE-HOME TEST (PAPER ONLY)


TOTAL MARK ALLOCATION: 60 MARKS
TOTAL TIME: This assessment should take you 1 Hour to complete, however
you have 21 Hours (midnight to 9PM on the same day) to submit.
This additional time has been allocated to allow for the
download, completion and upload of your submission.
By submitting this assessment, you acknowledge that you have read and understood all the rules
as per the terms in the registration contract, in particular the assignment and assessment rules in
The IIE Assessment Strategy and Policy (IIE009), the intellectual integrity and plagiarism rules in
the Intellectual Integrity Policy (IIE023), as well as any rules and regulations published in the
student portal.

INSTRUCTIONS:
1. Please adhere to all instructions. These instructions are different from what is normally
present, so take time to go through these carefully.
2. Independent work is required. Students are not allowed to work together on this
assessment. Any contraventions of this will be handled as per disciplinary procedures in The
IIE policy.
3. No material may be copied from original sources, even if referenced correctly, unless it is
a direct quote indicated with quotation marks.
4. All work must be adequately and correctly referenced.
5. You should paraphrase (use your own words) the concepts that you are referencing, rather
than quoting directly.
6. This is an open-book assessment.
7. Assessments must be typed unless otherwise specified.
8. Ensure that you save a copy of your responses.
8.1. Complete your responses in a Word document.
8.2. The document name must be your name.student number.Module Code.
8.3. Once you have completed the assessment, upload your document under the
submission link in the correct module in Learn.
Additional instructions:
• Calculators are allowed.
• Answer All Questions.

© The Independent Institute of Education (Pty) Ltd 2023


Page 1 of 5
22; 23; 24 2023

Question 1 (Marks: 30)


Write a Java application to display the price difference between two types of camera
technologies, DSLR and Mirrorless. Display the camera manufacturer and the cost of a DSLR versus
a Mirrorless camera. The table below represents the camera cost comparisons:

MIRRORLESS DSLR
CANON R 10 500 R 8 500
SONY R 9 500 R 7 200
NIKON R 12 000 R 8 000

Using single and two-dimensional arrays, produce the camera technology report and include the
total calculated difference for each camera manufacturer. If the difference between the
Mirrorless camera and DSLR is greater than or equal to R2 500, then display three stars ***.
In your solution, include the camera manufacturer with the greatest cost difference.

Sample screenshot

© The Independent Institute of Education (Pty) Ltd 2023


Page 2 of 5
22; 23; 24 2023

Question 1 Mark Levels of Achievement Feedback


Allocation
Excellent Good Developing Poor

Score Ranges Per Level (½ marks possible)

10 6-9 2-5 0-1


Declaration and
Population of single Correct declaration
Minor Major
and two- and population of Not
changes changes
dimensional array single and two- provided.
required. required.
dimensional array.

5 3-4 1-2 0
Printing of rows and
columns in the Correct printing of Minor Major
Not
report rows and columns changes are changes are
provided.
in the report. required. required.

Printing and 5 3-4 1-2 0


calculating the
difference between Correct printing Minor Major
the camera Not
and calculating of changes are changes are
technology costs provided.
costs. required. required.

Decision statement 5 3-4 1-2 0


to determine Correct decision
whether to print Minor Major
statement for the Not
three stars changes changes are
printing of three provided.
required required.
stars.

Determine and 5 3-4 1-2 0


display the Correct printing of
manufacturer with Minor Major
the manufacturer No
the greatest cost changes changes
with the greatest Output
difference required. required.
cost.

© The Independent Institute of Education (Pty) Ltd 2023


Page 3 of 5
22; 23; 24 2023

Question 2 (Marks: 30)


Design a console application that will print an estate agent property sale commission report. Use
an abstract class named EstateAgent that contains variables to store the estate agent's name and
property price. Create a constructor accepting the estate agent's name and property price as
parameters. In this class, also create get methods to get the estate agent name, property price
and estate agent commission. The agent commission is calculated at 20% of the property sale
price. The EstateAgent class must implement an iEstateAgent interface that contains the
following:

public interface iEstateAgent


{
String getAgentName();
double getPropertyPrice();
double getAgentCommission();
}

Create a subclass called EstateAgentSales that extends the EstateAgent class. The
EstateAgentSales class must contain a constructor to accept the estate agent name and the
property sale amount as parameters. Write code for the printPropertyReport method, which
prints the estate agent name, property sale price and the estate agent commission amount.

Finally, write a RunApplication class to instantiate the EstateAgentSales class. Sample output is
shown below, and you may use the same values to test your application.

Sample screenshot

© The Independent Institute of Education (Pty) Ltd 2023


Page 4 of 5
22; 23; 24 2023

Question 2 Mark Levels of Achievement Feedback


Allocation
Excellent Good Developing Poor

Score Ranges Per Level (½ marks possible)

5 3-4 1-2 0
iEstateAgent Minor
interface class iEstateAgent interface Major
changes Not
created class created. changes are
are provided.
required.
required.

Abstract Staff 10 6-9 2-5 0-1


class created Abstract Staff class
with a Minor
created with a Major
Constructor, changes Not
Constructor, Variables changes are
Variables and are provided.
and Methods. required.
Methods. required.

EstateAgentSales 5 3-4 1-2 0


class was created
to extend the EstateAgentSales class
EstateAgent class was created that
Minor
and contain a extends the Major
changes Not
Constructor and EstateAgent with changes are
are provided.
the Print Constructor and required.
required.
Property Report Property Report
method. method.

5 3-4 1-2 0
The report The report was
produced as per Minor Major
produced as per the Not
the sample changes changes are
sample. provided.
required required.

The file was 5 3-4 1-2 0


saved correctly
with suitable The file was saved Minor
Major
comments used correctly with suitable changes No
changes are
in the solution. comments. are Output
required.
required.

END OF PAPER

© The Independent Institute of Education (Pty) Ltd 2023


Page 5 of 5

You might also like