Given any whole number from user input, check whether it’s a positive or negative number. If the number is negative then increment it by 3 and multiply the result by 4, however if it’s a positive number then decrement by 4 and multiply it by 3. a) Create a flowchart to be followed to solve the above task b) Create a java program using your flowchart and see samples below Sample run 1: Enter a whole number: 4 Output: The Number 4 is above zero hence, Result of the calculations = 0 Sample run 2: Enter a whole number: -5 Output: The Number -5 is below zero hence, Result of the calculations = -8
Most employees earn R50 000 per year. Managers earn R20 000 extra per year. ► Most employees gjet 15 workdays leaves a year. Managers get an extra 3 days leave per year. Secretaries must work 40 per week.
Employee -name: String EmployeeDeconstructors +Employee(String) ceconstructor +oString(): String setName(String) : void + getName(): String +gotSalary(): double "getHours(): double *getteaveDays(): int HeaveApplication); void +rkl): 1. Code the classes Employee, Manager and Secretary. 2. Code an application with a main method. In this class you must code an array of type Employee with a maximum size of 20. a. Add a minimum of 10 objects to the array. You may hard-code these object values. The ob ects must be a mixture of Employee, Manager and Secretary. b. Display all the objects on the screen. Calculate, and then display the average salary of all employees. Extra Calculate and display the cost of the leave to the company for each employee.
You have been asked to write a simple question and answer programme. There is only one question to answer: "What is the capital of France".
The programme should ask the user this question, then prompt for a response.
The user then types in an answer.
If the answer is correct, the programme should tell the user that their answer was correct.
If the answer is incorrect, the programme should tell the user that their answer was wrong.
Write a program that has both height restrictions and an age restriction . To gain admission to the ride you need to be 0.6 feet and your age should be 5 or above
How can i store a funktion display that test a prime, next prime, previous prime display prime, and exit. Then add function call to display_menu in main function.
Given an array
mart of objects in the prefilled code and categoryOfItem, item as inputs, create a JS promise, resolve with "Item Found" text, if the
categoryOfItem matches with the category and the corresponding items list includes the itemreject with "Category Not Found" text, if the
categoryOfItem does not match with any category in the martreject with "Item Not Found" text, if the
items list does not include itemUse async/await and try/catch blocks.