QUESTION 5 The matric dance committee wants to use the songs with the most votes. They would also like to know how long the whole playlist would be. Code the following two methods to help them with this. 5.1. Create a method named sortSongs() in the AllSongs class. This method should sort the songs array (sArr). The songs should be ranked from those with the highest votes to those with the lowest. (7) 5.2. In the PlaylistUI class, add code in the correct place to sort the array before the playlist is displayed. (1) 5.3. Create a method called calcLength() in the appropriate class to determine the total length of the playlist. (6) 5.4. In the PlaylistUI class, add code to display the total length of the playlist with an appropriate message. (1) Question 5 Total: [15] Total: 125 marks
Blog
5.2 Bespreek DRIE maniere waarop mense die impak van hierd…
5.2 Bespreek DRIE maniere waarop mense die impak van hierdie menslike aktiwiteite wat verwering verhoog kan verminder. (3)
Instructions to candidates: This paper is divided into two…
Instructions to candidates: This paper is divided into two sections. Candidates must answer both sections. Section A of the paper is to be answered in SQL. Section B of this paper is to be answered using Object-Oriented Programming principles. Your program must make sensible use of methods and parameters. Make sure that you answer the questions in the manner described because marks will be awarded for your solution according to the specifications that are given in the question. Only answer what is asked in each question. For example, if the question does not ask for data validation, then no marks are awarded for it, and therefore no code needs to be written. If you cannot get a section of code to work, comment it out so that it will not be executed and so that you can continue with the examination. If possible, try to explain the error to aid the marker. When accessing files from within your code, DO NOT use full path names of the file, as this will create problems when the program is marked on a computer other than the one you are writing on. Merely refer to the files using their names and extensions, where necessary. Your programs must be coded in such a way that they will work with any data and not just the sample data supplied or any data extracts that appear in the question paper. Read the whole question paper before you choose a data structure. You may find that there could be an alternative method of representing the data which will be more efficient considering the questions that are asked in the paper. You must save all your work regularly. Make sure that your name appears as a comment in every program that you code.
QUESTION 8 Read the following case study and answer the…
QUESTION 8 Read the following case study and answer the questions that follow. Kosi Bay fish kraals Kosi Bay in northern KwaZulu-Natal is an example of a place where education and community involvement ensure that fishing remains sustainable. Local Thonga fishermen have been using a system of fish kraals for generations to catch fish sustainably. Population growth has placed greater demands on fish piles and has led to the use of other types of nets that are not sustainable. Conservation organizations and tourism operators intervened and instituted community-based educational programs. These programs have taught the local people that it is necessary to sustainably catch all fish. It also explained the benefits of tourism if the traditional fishing methods are continued. Today, fishing with fish kraals is again practiced sustainably and additional income from tourism, which is associated with this unique type of fishing, is earned. Source: Translated from Oxford Suksesvolle Sosiale Wetenskappe, Graad 9, Leerderboek Right-click on the button to view Source I in a new tab 8.1 Define the term over-fishing. (2)
Like those with paranoid personality disorder, those with av…
Like those with paranoid personality disorder, those with avoidant personality disorder usually:
Exergonic reactions are those that are ________ and that ___…
Exergonic reactions are those that are ________ and that ________ liberate free energy.
1.3.1 Identifiseer die TIPE neurone wat onderskeidelik deu…
1.3.1 Identifiseer die TIPE neurone wat onderskeidelik deur neuron A, B en C aangedui word. (3)
1.1.1 Die asskelet bestaan uit die: A. Falankse, klavikulu…
1.1.1 Die asskelet bestaan uit die: A. Falankse, klavikulum, tarsale bene, skedel B. Sternum, femur, ribbe, pelvis C. Boonste ledemate, rugmurg, radius D. Skedel, sternum, ribbekas, werwelkolom
1.1.5 Beelde van voorwerpe nader as 6m is gefokus op die r…
1.1.5 Beelde van voorwerpe nader as 6m is gefokus op die retina wanneer: A. Siliêre spiere saamtrek B. Pupil vergroot C. Spiere van die iris saamtrek D. Ronding van die lens verminder
1.1.6 Watter gemerkte deel stuur impulse direk na die brei…
1.1.6 Watter gemerkte deel stuur impulse direk na die brein? A. F B. G C. H D. I