Solve the problem using python programming

Assignment Help Computer Engineering
Reference no: EM133206

Question

USING PYTHON Programming 3!!! Do not use many built in functions, mainly loops, and list manipulations (i.e. slicing etc)

We have a list of integers, representing the yearly profit (in kilo euro) of n businesses (shops) along the high street in the City centre. This time we are being given 4 (four) businesses ("for free"), that neighbour one another. The problem is to calculate which 4 we should take (that neighbour each other) to maximize our yearly profit.
Given these numbers, write a PYTHON program to calculate that 4 we should take. As in-

If the profits were 52, 67, -8, 43, -20 we should take the first 4 businesses.

If the profits were -20, 36, -10, -30, 3, 21 we would take no business (this is also allowed).

Reference no: EM133206

Questions Cloud

Write down an automated checkout program : Write down an automated checkout program
What are the kinds of information systems : What are the kinds of information systems
What are the types of malicious attack : What are the types of malicious attack
Define role of customer and end-user on an agile process : Define role of customer and end-user on an agile process
Solve the problem using python programming : Solve the problem using PYTHON Programming
Consider the business impact of any situation : Consider the business impact of any situation
Why we have a divide databases and data warehouse : Why we have a divide databases and data warehouse
Write down problem on strings in java : Write down problem on strings in java
How to name the associative entities : How to name the associative entities

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to run and modify marie program

How to run and modify marie program Include a decision before storing and outputing result. If  value of the result is not positive (so zero or negative), set  Result value to the value ZERO (0)

  How to expand class linkedlisttype

Expand class linkedListType. Write down a function that returns the info of the kth element of the linked list. If no such factor exists, output an appropriate message.

  What is the specialization of Dottie's Tax facility

What is the specialization of Dottie's Tax facility At least 6 returns? (Round z-score computation to 2 decimal places and your final answer to 4 decimal places.)

  What will be the list assumptions for the scope of project

What will be the list assumptions for the scope of project? Give detailed and measurable non functional requirements.

  How to develop a problem definition

How to develop a problem definition

  Develop a security awareness training presentation

Develop a Security Awareness Training presentation

  Encipher a message using a keyword

The first program will encipher a message using a keyword and second program will decipher a message using a keyword.

  How to classify emerging technologies

How to classify emerging technologies Inscribe obviously and succinctly about information management systems using proper writing mechanics.

  Why are most photographic images stored in a lossy format

Why are most photographic images stored in a lossy format

  Create a shadow on phrase html5 canvas

Create a shadow on phrase "HTML5 Canvas"

  Recognize how to locate fsmo roles

Recognize how to locate FSMO roles?

  What is the goal to exercises in the bluej textbook

What is the goal to exercises in the BlueJ textbook? For the remains of the course, you will answer the questions posed by BlueJ textbook-you will not require downloading an additional worksheet and filling it in as you did for first four units.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd