You have to design your own Java console application about any valid problem that your application must solve. Your solution can include solving a business problem, a new idea or even a game. Your application must make use of concepts such as arrays, loops, inheritance, constructors and information hiding. Output must be shown in the form of a report using the console.
In your solution, make use of as many concepts, and components dealt with in this course, but pay special attention to the following learning units: • Learning Unit 1: Advanced arrays. • Learning Unit 2: Introduction to inheritance.
The statements below shows the declaration of an array:
String[] Municipality ={”Steve Tshwete”, “Nkomazi”, “City of Mbombela”, “Govan Mbeki”};
1) Make use of a loop of your choice and write statement(s) that will display all array elements indicating the Municipality’s name as follows:
Municipality 1: Steve Tshwete
Municipality 2: Nkomazi
Municipality 3: City of Mbombela
Municipality 4: Govan Mbeki
1) Write a statement that will replace array element Nkomazi with White River.
3) What is the array length?
4) Make use of a loop of your choice and write statement(s) that will display all Municipalities, considering effects of question (2), starting with the last Municipality as shown below:
Municipality 4: Govan Mbeki
Municipality 3: City of Mbombela
Municipality 2: Nkomazi
Municipality 1: Steve Tshwete
Create a programm that will determine there correct vaccine for every candidate. Use the switch statement and the for loop to determine the right vaccine for individuals by using their temperature readings
-30-33 for Mordena
-34-36 mRNA
-37-38 Johnson and Johnson’s Janssen
-39-40 Pfizer-BioNTech
The program must be able to read temperatures up to four(4) decimal places after the comma & convert it to two(2) decimals. A summary of all the people that are vaccinated along with their associated vaccines must be listed in the output in a table form as follows:
Name and surname Temperature Vaccine
Mzamani Nkuna 34,37 mRNA
Themba Manana 37,66 Johnson and johnson’s Janssen
Charles Nkosi 32,55 Mordena
Norwell Mbewe 39,78 pFizer-BioNTech
Take note of the following :
1. Use an appropriate operator to convert an expression to a specified type.
2. Use an appropriate operator to set correct precision for decimals
3. Use an appropriate operator to manage the alignments in the summary of your candidates
Sort all the stacks in this order:
Stack1 in alphabetic order by name
Stack2 in alphabetic order by Surname
Stack3 in Numeric order (descending) by marks obtained
You have an ordered linked list with 5 object of type person in it.
Explain with an example of how to add and delete a person in an ordered linked list. Your list should remain ordered after the insertion and after the deletion of the item.
Note: a Person in this case should be an object that has a name, surname, age and gende
Write a program that inserts 25 random integers from 0 to 100 in sorted order in a linked list.
The program should calculate the sum of the elements and the floating-point average of the
elements.