The Chemistry department has 4 computers, the Physics department has 8, the English de-
partment has 2, and the Math lab has 12. Write a program that produces the following out-
put. Have the computer perform the calculation in the last line. Format the output using the
appropriate escape sequences.
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}
Construct an ADT (any of your choice but make it unique) with appropriate data members and member functions (CRUD for now). Your implementation will be purely abstraction based i.e. you will make separate files for header, implementation and driver class. In your driver class you will have a list corresponding to the ADT. You will test your program for all list operations.
develop a new system to help farmers manage their poultry farm. The system must be tailored to the farmers and be very easy to use.
document all the necessary requirements.
write a program that will fulfil all the requirements of a poultry farming business.
Below are some ideas to help you with the requirements and developing of the software.
The program should help the farmer with:
Inventory control
o The birds
o Feed
o Chemicals
o Equipment
(Provide options for the farmer to choose the correct inventory module)
Payroll
o Help farmer calculate the pay for its employees with provident fund deductions
(10% employee and 8% employer contribution)
o Pay should be calculated on individual basis (with all necessary data)
o Employees are paid every week
Calculate the profit and loss after identifying at least 8 general expenses that occur
every month.
o Consider revenue from:
Sale of chicken
Write a function that categorizes negative and positive numbers of a given innial array into two separate arrays with sufficient allocated array space. Write the main program using the upper function in two cases:
The input array is a static array with the value of the given elements.
The input array is a dynamic array with the value of elements entered from the keyboard
Displays two arrays of results to the screen.
Defines a function that saves elements of a real number array in the opposite direction, declaring the function as void Reverse (double arr[], const int size, double*& rev). Write the main program using the upper function.
Write a function that sums each pair of elements of 2 arrays (plus correspondingly by index), resulting in a third array. Arrays have the same number of elements. Write the main program using the upper function and display the results to the screen
Write a function that saves even numbers of an innuation array foreground to another with sufficiently distributed array space. Write the main program using that function in 2 cases:
The input array is the static array with the given elements
The input array is a dynamic array with the number of elements and elements imported from the keyboard
Displays the resulting array to the screen