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

  List the top advantages of migrating to ipv6

List the top advantages of migrating to IPv6

  Arrays and control structures important tools in programming

Arrays and control structures important tools in programming.

  Explain the design for the memory subsystem

Explain the design for the memory subsystem

  What are the trends of data warehousing and data mining

What are the trends of data warehousing and data mining

  How many address lines are needed to access memory

How many address lines are needed to access memory.

  Hardware support to memory management

Study any two multicore processor architecture and discuss the following features briefly

  How can a relation be organized in mass storage

How can a relation be organized in mass storage.

  Discuss how the topology can be used

Discuss how the topology can be used

  Ip cameras to improve security for devry university

IP cameras to improve security for DeVry University.

  Program that displays information about a family member

Program that displays information about a family member

  What are the errors

What are the errors

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

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