Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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 media company "GlobalAd" has received a
batch of advertisements from different product
brands. The batch of advertisements is a
numeric value where each digit represents the
number of advertisements the media company
has received from different product brands.
Since the company banners permit only even
numbers of advertisements to be displayed, the
media company needs to know the total
number of advertisements it will be able to
display from the given batch.
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.
Input
The input consists of an integer batch,
representing the batch of advertisements
Output
Print an integer representing the total number
of advertisements that will be displayed by the
media company
Constraints
0 < batchs 109​
If the user selects to capture a new product, you are required to save all the information
supplied by the user into memory. To achieve this, you may use arrays or array lists.
Sample Capture Product Screenshot
Q.1.4 Special consideration needs to be made for the selection of the product category. Allow
the user to make a selection between the following categories:
• Desktop Computer.
• Laptop.
• Tablet.
• Printer.
• Gaming Console.
Ann, an accountant reports that after turning on her new laptop, she received a massage stating her IP address is already in use on the system. She tried going back to her old desktop, which she now only uses for email, but received the same massage. As a network expert, you checked the account and sees a Comment that Ann requires special network set-up to connect to the banking software. Explain what could be the cause of the massage received by Ann and how you would resolve the issue as a network expert. Also what "special network set-up" is required to connect to the banking software
Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter.

Example 2: Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.

Example 3: Create a function with a local variable. Show what happens when you try to use that variable outside the function. Explain the results.

Example 4: Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.

Example 5: Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.

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.


LATEST TUTORIALS
APPROVED BY CLIENTS