I am internee in a company who has department for c++ programmers. They asked me to solve 20 Questions then we will give you a job, i have solve 14 but not being able to solve these 6, i will be very thankful to any one who solve my problem

Question 1)Write a program which consists of the functions average, sum, largest, smallest respectively. These functions should return back the average, sum, largest and smallest double values of the three dimensional double array array[5][7][9] in the main program from where they are called. This program must also tell the index of largest and smallest elements of array in the main function of the program. Properly use the menu using do while loop and name the functions used in the program. This program must use switch for different options. The largest and smallest values must be computed using ternary operator. Use of pointers and pointer arithmetic is MUST for the processing of the contents of this array.

Question 2)A website is hosting online radio. It has categories according to different genres of music. (POP, ROCK, GRUNGE, METAL). Each song has attributes such as Song Name, Artist, Genre and Duration. Properly use structures to solve the following tasks.
1. a. Write a function that prints the information of the songs of some specific genre given by user as input.
2. b. Write a function to retrieve information of all songs performed by a specific artist.
3. c. Write a function that prints information of a song searched by its name.

Question 3Question3:
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining. Assume that there are not more then 450 students in the college.
1. a. Write a function to print names of all students who joined in a particular year.
2. b. Write a function to print the data on a student whose roll number is given.

Question 4(The Sieve of Eratosthenes) A prime integer is any integer that is evenly divisible only by itself and 1. The Sieve of Eratosthenes is a method of finding prime numbers. It operates as follows:
1. a. Create an array with all elements initialized to 1 (true). Array elements with prime subscripts will remain 1. All other array elements will eventually be set to zero. You will ignore elements 0 and 1 in this exercise.
2. b. Starting with array subscript 2, every time an array element is found whose value is 1, loop through the remainder of the array and set to zero every element whose subscript is a multiple of the subscript for the element with value 1. For array subscript 2, all elements beyond 2 in the array that are multiples of 2 will be set to zero (subscripts 4, 6, 8, 10, etc.); for array subscript 3, all elements beyond 3 in the array that are multiples of 3 will be set to zero (subscripts 6, 9, 12, 15, etc.); and so on.
When this process is complete, the array elements that are still set to one indicate that the subscript is a prime number. These subscripts can then be printed. Write a program that uses an array of 1000 elements to determine and print the prime numbers between 2 and 999. Ignore element 0 of the array.

Question 5(Perfect Numbers) An integer is said to be a perfect number if the sum of its factors, including 1 (but not the number itself), is equal to the number. For example, 6 is a perfect number, because 6 = 1 + 2 + 3. Write a function bool isPerfect(int p) that takes an integer p as argument and determines whether p is a perfect number. The function returns true if p is prime and false otherwise. Use this function in a program that determines and prints all the perfect numbers between 1 and 1000. Sample output: 6 28 …

Question 6: (Calculator) You have to implement a scientific calculator with added features in it. All built in and user defined functions for different tasks which might help in calculator must be incorporated in it. Have a look on Windows calculator and a scientific calculator to better get some idea. Function overloading must be there in it as well as discussed previously for different tasks.


Edit by admin: no contact info permitted on the forum, thank you