(a) The mayor and city council shall have the power to grant franchises for the use of the city's rights of way, streets, and alleys for use by railroads, street railways, telephone companies, electric companies, electric membership corporations, cable television and other telecommunications companies, Internet providers, fiber optic network providers, gas companies, transportation companies, and other similar organizations. The mayor and city council shall determine the duration, terms, and consideration for such franchises, and whether they shall be exclusive or nonexclusive. However, no franchise shall be granted for a period in excess of 35 years and no franchise shall be granted unless the city receives just and adequate compensation therefor. (b) The mayor and city council shall provide for the registration of all such franchises with the city clerk in a registration book to be maintained by the clerk and may provide by ordinance for the registration within a reasonable time of all franchises previously granted. (c) If no franchise agreement is in effect, the mayor and city council has the authority to impose a tax on gross receipts for the use of the city's rights of way, streets, and alleys for use by railroads, street railways, telephone companies, electric companies, electric membership corporations, cable television and other telecommunications companies, Internet providers, fiber optic network providers, gas companies, transportation companies, and other similar organizations.