22. Create a program that calculates the average weight of 15 fruit (mandarins) when the weight of each fruit is generated and modified to be one decimal symbol. The weight must be a positive number. Output generated data by 6 figures per row. Output results. Generated numbers can be replaced by entering numbers, but must be checked to see if the number entered is within the specified interval.
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
What part are you having difficulty with? Do you know how to calculate an average weight in mathematics? How would you do this using pen/paper? What instructions would you give to someone else to complete this who didn't know what had to be done? Then turn these instructions into a program design and then code the program from the design.
If once you have the design, you are having problems with the code, then post your code and explain your problem.