[solved] – Question 73322
Implement another function; pass the array (again using a pointer) to it. The function should then sort the array using the Bubble Sort algorithm. The function should use pointers for all computations (counter variables, traversal, swap).Give me code in c++
Expert Answer
[solved] – Question 73336
Initialize an integer array of size 10; pass it to a function ‘arrIncrement’ using a pointer. The function should increment all elements of the array by one. Then display the updated array on screen.code plz
Expert Answer
[solved] – Question 73348
Can you please give me the code on the topic “SCHOOL ADMISSION” using structures.
Expert Answer
[solved] – Question 73370
Paula and Danny want to plant evergreen trees along the back side of their yard. They do not want to have an excessive number of trees. Write a program that prompts the user to input the following: The length of the yard. The radius of a fully grown tree. The required space between fully grown trees. The program outputs the number of trees that can be planted in the yard and the total space that will be occupied by the fully grown trees. failed planting parameter
Expert Answer
[solved] – Question 7346
USE Programming C only
Requirements: use arrays & loops.
Q1. Given an unordered list [3,]9, 100, 100, 98]. User inputs a number. Write a C program to check whether this number is in the list.
Requirements:
. If the number is in the list, report the number and its position. Otherwise, report that the number is not in the list.
. The position to report starts from 1.
Note:
. If the user inputs the number which is in the list and have multiple occurrences (e.g., 100), you either can just reports it is in the list and the one occurrence. Or you can report all the occurrences. Think about the differences.
Sample run1:
please enter a number to check: 32
number 32 is not in the list.
Sample run2:
please enter a number to check: 98
number 98 is in the list, position: 5
Sample run3:
please enter a number to check: 100
number 100 is in the list, position: 3
Expert Answer
[solved] – Question 73482
Initialize an integer array of size 10; pass it to a function ‘arrIncrement’ using a void pointer.
The function should increment all elements of the array by one. Then display the
updated array on screen. (use casting)
Expert Answer
[solved] – Question 7351
Write a C program to output a triangle of asterisks with five rows.
Expert Answer
[solved] – Question 73548
9. Write a java recursive function that computes and returns the sum of all elements in an array, where the array and its size are given as parameters.
Expert Answer
[solved] – Question 73549
5. Write a Java program to print all the LEADERS in the array.
[An element is leader if it is greater than all the elements to its right side.]
Expert Answer
[solved] – Question 73550
3. Assume that we are given n pairs of items as input, where the first item is a number and the second item is one of three colors (red, blue, or yellow). Further assume that the items are sorted by number. Give an algorithm to sort the items by color (all reds before all blues before all yellows) such that the numbers for identical colors stay sorted.
For example: (1,blue), (3,red), (4,blue), (6,yellow), (9,red) should become (3,red),
(9,red), (1,blue), (4,blue), (6,yellow).
Expert Answer

