Write a program to create an array in order to store 15 numbers then display only even numbers in one line and also display how many even numbers found.
You are required to write builds a record book for Projects being conducted at a department. A Project has an id, description, array list of members and start and end dates. In the Project class provide two abstract methods: getTeamSize(): that finds and returns the size of the team working on this project c and calculateCost(): that finds and returns the total cost of project. Provide the class MixedTeamProject which extends Project
a. This class represents a project that can have mixed types of members
b. Override the getTeamSize() appropriately so that it counts all members but makes sure that only active adhoc members are counted if there are any
c. Provide the implementation of calculateCost method so that the cost is calculated as under:
i. Salaries are added for adhoc members
ii. Salaries of contract members are added but 11% tax is added for each contract member salary
iii. Salary of all hourly member is added and a flat amount of 1000 is added to cover additional cost
You are required to write builds a record book for Projects being conducted at a department. A Project has an id, description, array list of members and start and end dates. In the Project class provide two abstract methods: getTeamSize(): that finds and returns the size of the team working on this project c and calculateCost(): that finds and returns cost of project. Provide a class ContractTeamProject that extends class Project
a. Provide an instance variable overheadCost (double). b. Override the calculateCost Method which calculates the project cost as a sum of all the member’ salaries and an additional surcharge at the rate of 11% of the salary amount plus the overheadCost
c. Override the toString to match the output .
You are required to write builds a record book for Projects being conducted at a department. A Project has an id, description, array list of members and start and end dates. In project class provide two abstracts methods: getTeamSize(): that finds and returns the size of the team working on this project c and calculateCost(): that finds cost of the project. Provide a class HourlyTeamProject that extends Project, Add an instance variable hourCost (double) that represents the utility bills cost charged per hour worked on this project by each team member. Provide a method getTotalHours() that returns the total number of hours worked by each member on this project. Override the calculateProjectCost method which calculates the total cost by following relation
Total cost = total salary of all members + hoursCost * total hours on this project
· Ask the first name, middle initial and last name of the student.
· Prompt the user to select between old student and new student by pressing either O (old student) or N (new student).
· If O is pressed, ask the student to enter the following grades per term:
o Prelim
o Midterm
o Prefinals
o Finals
· Compute the final grade of the student by using given formula: FG = ((Prelim * 20%) + (Midterm * 20%) + (Prefinals * 20*) + (Finals * 40%)). Display the full name of the student with his/her accumulated grade using the format given.
· If N is pressed, ask the student to enter his/her average grade then display the full name grade.
· Grade Format:
o 1.00 = 99 – 100
o 1.25 = 96 – 98
o 1.50 = 93 – 95
o 1.75 = 90 – 92
o 2.00 = 87 – 89
o 2.25 = 84 – 86
o 2.50 = 81 – 83
o 2.75 = 76 – 80
o 3.00 = 75
o 5.00 = Below 75
· If an invalid letter is pressed, display an error message.
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 65847
Samuel owns a shoe factory where there are N different machines operated for N different purposes. Each machine has its own motor. In order to avoid resonance, the rotation speed of any 2 machines should at least differ by 2 units. The rotation speed can only be in integer units and the maximum rotation speed of any motor is X units. Given minimum rotation speed of any motor to be 1 unit, you have to help Sam find out the number of different ways he can configure the speed of the motor. Input Specification: input1: N, denoting the number of machines. input 2X, denoting the maximum speed of the motor. Output Specification: Your function should return the total number of configuration modulus 10^4.
Discussion Assignment Unit 6
Number of replies: 19
Considering the Java program in section 6.3.3 “Dragging” of Eck (2019), describe what it does in response to specific operations of the mouse (mousePressed, mouseDragged, and mouseReleased), and how it does it.
You are encouraged to run the SimplePaint program for yourself to test its behavior. Then read through the program carefully to understand how that behavior arises.
Your Discussion should be at least 250 words in length, but not more than 750 words
Write a program that read four taste values for ten studens store the value in two dimensional array display the content of the array in tabular format using for loop
Odd even prime multiples
Humans have finally made contact with aliens from outer space who call themselves Primes. Naturally, each of their individuals loves prime numbers. Their emperor loves the prime number p the most. However, their maths is much more advanced than the version we use on Earth. They have very long numbers with several digits going up to 100 digits. A number is said to be valid for them if it follows the following conditions:
Task
The emperor has sent the message that he will consider humans an intelligent life form if you can tell him the number of valid numbers between L and R (both inclusive). Since the number of such numbers can be too large, you only need to tell the answer modulo (109+7).
For Full Instructions and Note Please Use Those Images as reference... Please help
https://drive.google.com/file/d/1As_XKXCbB2L2zHCMvbDIZfUiN46_QArO/view?usp=sharing
https://drive.google.com/file/d/1XqxcnlhhjqTTLc8PYcfz7tMdW7AFmcKa/view?usp=sharing