Write one dimensional array java program that ask to the user to enter the array
size and reads n integers, compute their average, and find out how many
numbers are above the average. Your program first enter the array size and reads
the numbers and computes their average, then compares each number with the
average to determine whether it is above the average.
Sample Input/Output:
How many numbers do you have?6
Enter a value for array [1]:100
Enter a value for array [2]:10
Enter a value for array [3]:1000
Enter a value for array [4]: 500
Enter a value for array [5]: 200
Enter a value for array [6]: 77
List of elements: 100 10 1000 500 200 77
The sum of the 6 elements: 1887.00
The average of the 5 elements: 314.50
Numbers above average: 4
Write a program that approximate e using a loop that terminates the difference between the two successive values of e is less than 0.0000001
Given an integer number N as input. Write a program to print the double triangular pattern of N lines using an asterisk(*) character as shown below.There is space after each asterisk character. using while loop
how to create simple program using protected access modifier?
how to create simple program using private access modifier?
how to create simple program using public access modifier
Write a program that accepts the amount of money deposited in a bank account, the annual interest rate and the target amount (The amount of money the account holder wants to have in the account after a period of time) and then calculates the number of years it will take for the money to accumulate to the targeted amount. NB: 1) The interest being earned is Compound Interest. 2) Don’t use the formula for calculating compound interest. For example if the money deposited is 10000 and the target amount is 20000 and the account earns an interest rate (compound) of 10% pa, then the output should be: - It will take 8 years for your money to reach your target. By the end of this period, the amount in your account will be 21435.89
Design & Implement a C- program that can handle salesmen records of ABC Company. Each salesman has unique 4-digit id #, name, salary, monthly sale & commission (commission is computed depending on value of monthly sale). Net income of a salesman is salary plus commission. Make maximum use of user defined Functions. Conditions for calculating commission are as follows: ➢ Commission is 20% of monthly sale, if sale is equal to or greater than 15,000. ➢ Commission is 15% of monthly sale, if sale is equal to or greater than 10,000 and less than 15,000. ➢ Commission is 10% of monthly sale, if sale is equal to or greater than 8,000 and less than 10,000. ➢ Commission is 5% of monthly sale, if sale is equal to or greater than 5,000 and less than 8,000. ➢ No Commission, if sale is less than 5,000
Create an application that will display a multiplication table number entered by a user. The program must display the first five multiplication values
Write a function named "eliminate_duplicates" that takes an array of integers in random order and eliminates all the duplicate integers in the array.
The function should take two arguments:
(1) an array of integers;
(2) an integer that tells the number of cells in the array.
The function should not return a value, but if any duplicate integers are eliminated, then the function should change the value of the argument that was passed to it so that the new value tells the number of distinct integers in the array.