Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help with this simple python program.... Auto Supply:123.66:908.42:312.99:488.21:532.66 Pizza:432.22:942.34:381.77:619.43 Lair:245.32:833.56:837.44:329.88:675.00:432.56 Crab Shack:246.66:763.42:142.99:89.21 Supply:911.22:312.34:413.77:88.43:69.08 Paradise:99.32:33.56:899.44:642.88:908.00:300.56:892.77 Copy the above lines into a Notepad file for processing.

need help with this simple python program....

 Auto Supply:123.66:908.42:312.99:488.21:532.66 Pizza:432.22:942.34:381.77:619.43 Lair:245.32:833.56:837.44:329.88:675.00:432.56 Crab Shack:246.66:763.42:142.99:89.21 Supply:911.22:312.34:413.77:88.43:69.08 Paradise:99.32:33.56:899.44:642.88:908.00:300.56:892.77 Copy the above lines into a Notepad file for processing. Each line of the file has a business name and a number of debts separated by ':'. Each business in the file can have a different number of debts. Write a program to process the above data and determine the following: 1. How much total debt does each business owe? 2. Which business has the largest number of debts? How many? 3. Which business has the smallest average debt? How much? Only use core python capabilities to work on this problem. not numpy)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions