Find solutions to your problems with the expert advice available on IDNLearn.com. Our Q&A platform is designed to provide quick and accurate answers to any questions you may have.

Write an algorithm capable of accepting a maximum of 35 records from the user. The
algorithm should allow the user to enter the names of vendors who bought magazines, the magazine title, the quantity purchased as well as the name of the publisher, and the publisher recommended price, from which the income will be calculated. The algorithm is capable of generating various reports. The main output required is a summary of incomes with the
following information:
Total Income from Magazines sold: $55,600

Total Amount due to Publishers: $33,360

Total Amount earned by Company: $22,240
The user will indicate the number of records to be entered. The publishers receive 60% of the
Sales value. A discount will be given to vendors based on the rates in the table below:
quantity - <=200, rate 10%
quantity >200 but <=500, rate 15%
quantity >500, rate 20%

Management has also requested that the algorithm determine and display the most amount of
money made from any transaction, as well as the title of the magazine, the name of the vendor,
and name of the publisher.