Assignments Market



Animal Population

Write a Python program that analyzes rabbit and wolf population in an island and its influence on the grass area. Grass area in the island grows at a constant rate every year through rains, but is gradually depleted due to continuous consumption by rabbits. Rabbit population grows at a constant rate every year but is constrained by wolves attack. Wolf population grows at a constant rate every year but rapid decline occur in regular intervals through spread of epidemic diseases. Your input secti...

View Assignment

Python Assignment

Assume s is a string of numbers. Write a program that prints the longest substring of s in which the numbers occur in descending order. For example, if s = '561984235870154755310', then your program should print   Longest substring in numeric descending order is: 755310   In the case of ties, print the first substring. For example, if s = '742951', then your program should print   Longest substring in numeric descending order is: 742

View Assignment

Python Assignment

Assume s is a string of numbers. Write a program that checks the string s for the values '2', '3', '5' and '7'. When one of the values is found in the string, record its position within the string and continue to check for more occurrences. Finally, output the results found. For example, if s = '568714523645873', your program should print:   2 - 7 3 - 8 14 5 - 0 6 11 7 - 3 13

View Assignment

Python class inheritance (Employee)

Using python3, write an Employee class that keeps data attributes for the following pieces of information: Employee Name Employee Number   Next, write a class named ProductionWorker that is a subclass of the Employee class.  The ProductionWorker class should keep data attributes for the following information: Shift Number (an integer 1 or 2) Hourly Pay Rate   The workday is divided into two shifts: day and night.  The shift attribute will hold an integer value...

View Assignment

Calories Consumed & Burned python program 5 modules

You have decided that you need to start eating better and getting some exercise. Since you like riding your bike when the weather is nice and you have access to stationary bike when the weather is not good, you decide to start cycling every day. Also you want to keep better track of the calories you have consumed throughout the day. At the end of the week you want to know the following: What is the total calories consumed and burned for each day? Assume that for every minute you are cycling y...

View Assignment