can anyone help me with the following.
1. Given marks for a class test. Calculate the average, the median; if you are given the total for the test and the pass mark, calculate the number of failures and for each mark, calculate the percentage achieved.
2. If you are given a string, write out a function from scratch to copy the string and replace all spaces with tabs. If you are given a substring, remove the substring from the original string. The new "string" should be returned as an array of integers of the correct length. The integers represent the ascii code of each character.
3.Write a program that takes in three integers as parameters.The fist parameter is the year (4 digits), the second is the month from 0 to 11 and the last the day of the month. If these integers represent a birthdate, calculate the current age. Remember the only date function that you can use is to get today's date.
4.You are given on array of 1's and 0's of length 16.Convert the array into decimal,and hexadecimal numbers.
5.Write a program that reads through a program file and checks that the program has the correct number of opening and closing brackets.
6.In a hotel,sheets and pillowcases need to be changed.You must calculate how many sheets and pillowcases the hotel requires to be changed for a given day. The hotel has an environmental policy, bedding is only changed on a day when a new client is checking in, if a client has requested the sheets changed, otherwise 3 days after the last change. For each room in the hotel, you are given the date of check in, the last sheet change date, whether a request for a sheet change is made by the client for the day. You are also given the date for which the information is relevant.