Complete the code as specified in QUESTION 3.1 for the Transaction_U object and QUESTION 3.2 for the Question3_U form class - NSC Information Technology - Question 3 - 2020 - Paper 1
Question 3
Complete the code as specified in QUESTION 3.1 for the Transaction_U object and QUESTION 3.2 for the Question3_U form class.
3.1 The incomplete object class (Transa... show full transcript
Worked Solution & Example Answer:Complete the code as specified in QUESTION 3.1 for the Transaction_U object and QUESTION 3.2 for the Question3_U form class - NSC Information Technology - Question 3 - 2020 - Paper 1
Step 1
Write code for a constructor method that will receive the customer ID, the container size and the storage period in months as parameter values.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Write code for a method called calculateCost that will use the Transaction object's attributes to calculate and return the cost of renting the container.
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!