Write a program with a method named getTotal that accepts two lists that contain numbers as arguments and return the sum of the numbers and their average. Call this method and print the results.
In a box of total area 10000cm3, Mr. Varun has to pack the balls of given radius “r” and all the balls have the same volume, Help Mr. Varun to find the total number of balls that he can pack in the given box.
Requirements
Capture the radius of the ball “r”
Compute the volume (Hint: Volume=4/3πr3)
Calculate how many number of balls can be placed in the box of 10000cm3 box
Display the number of balls packed by Mr. Varun
Traversing a Sorted Linear Array
Inserting Item into Sorted Linear Array
insertItem()
Get value of ITEM to be inserted.
Call findLocationInsert()
findLocationInsert()
Search for position which ITEM can be inserted and Return position
Deleting item into Sorted Linear Array
deleteItem()
Get value of ITEM to be deleted
Call findLocationDelete()
findLocationDelete()
Search for the position in which ITEM will be deleted and return position
main() - Display option similar to this:
1. Insert value 2. Delete value 3. Traverse array 4. Exit
Provide switch statement which cases for the shown options are written.
array must be checked if it's already full or not.
Enter your choice: 1
Enter element to inserted: 5
Array Basic Operations
1. Insert a value
2. Delete a value
3. Traverse the array
4. Exit
Enter your choice: 1
Enter element to inserted: 3
Array Basic Operations
1. Insert value
2. Delete value
3. Traverse array
4. Exit
Enter your choice: 3
The elements of the array: 3 5
Describe any 10 Core Network Services that will be required in University of Ghana
Write a function to sort an array consists
of 10 integer numbers in descending order,
print the array before sorting and after
sorting.
Write a program to sort an array consists
of 10 integer numbers in ascending order,
print the array before sorting and after
sorting.
1-Write a C++ program that delete the 5th
element from the following list
{1, 5, 4, 7, 10, 50, 21, 24}
4.1 Write a program for each of the following:
(a) Listing all students whose CUM is K or higher. (Test the program using K = 3.00.)
(b) Listing all students in year L. (Test the program using L= 2, or sophomore.
1. Return types and basic algorithms
I. Write a program to find the sum of 10 integer numbers inside a separate function called sum() and print the total inside the main function.
II. Improve the above program to find even numbers in a given array.
III. Which parts of the above program (a) needs to be changed to code linear search?
TRUE OR FALSE? 1.MICROSOFT EXCEL CAN PERFORM MATHEMATICAL EQUATIONS. 2.RANGE,CRITERIA,AND LOGICAL TEST ARE PART OF THE AVERAGEIF SYNTAX. 3.EXCEL FORMULAS ALWAYS BEGIN WITH A SIGN. 4.EXCEL CAN BE USED TO CREATE A DATABASE. 5.COLUMN J AND ROW 9 IS ALSO REFERRED TO AS CELL 9J. 6.AVERAGE FUNCTION USED TO GET THE AVERAGE OF A CERTAIN RANGE OF CELLS IF A CONDITION IS MET. 7.SUMIF FUNCTION ADDS ALL THE NUMERIC VALUES IN A RANGE OF CELLS IF A CONDITION IS MET. 8.BOTH "IF" AND AVERAGEIF CAN PERFORM A LOGICAL TEST. 9.ASTERISK(*) SYMBOL IS USED TO MULTIPLY ITEMS IN EXCEL. 10.SUMIF FUNCTION ADDS VALUES THAT MEET A GIVEN CRITERIA. 11.IF FUNCTION CAN HAVE TWO RESULTS. 12.FUNCTIONS ARE MATHEMATHECAL EQUATIONS THAT CALCULATES THE VALUE OF A CELL. 13.THE INTERSECTION OF ROWS AND COLUMNS IS CALLED CELL REFERENCE. 14.AVERAGEIF FUNCTION RETURNS THE ARITHMETIC MEAN OF ALL THE CELLS IN A RANGE THAT MEET A GIVEN CRITERIA. 15.IN EXCEL,THE ACTIVE CELL IS INDICATED BY AN UNDERLINE.