Find those k consecutive elements in the array

Assignment Help Basic Computer Science
Reference no: EM131341878

1. Write a program, which reads from the console two integer numbers N and K (K>N) and array of N integers. Find those K consecutive elements in the array, which have maximal sum.

2. Sorting an array means to arrange its elements in an increasing (or decreasing) order. Write a program, which sorts an array using the algorithm "selection sort".

Reference no: EM131341878

Questions Cloud

Find a sequence of neighbor numbers in an array : Write a program, which finds a subsequence of numbers with maximal sum. E.g.: {2, 3, -6, -1, 2, -1, 6, 4, -8, 8} à 11
Unforeseen problems with data security : In terms of securing data, what reasonable practices should consumers be able to expect when submitting personal information, such as credit card information, social security information, physical and e-mail addresses? How might P2P sites, such as..
Evaluate alternatives to the company self-hosting the site : Tony's Chips has recently been sold to a new independent company. The new company has hired you to manage a project that will move the old Website from an externally hosted solution to an internal one. The company's leadership is very concerned ab..
Learning about security policies and implantation : We have now spent several weeks learning about security policies and implantation. Discuss the importance of having security policies in place. Be sure to provide thorough, detailed and well supported answers.
Find those k consecutive elements in the array : Sorting an array means to arrange its elements in an increasing (or decreasing) order. Write a program, which sorts an array using the algorithm "selection sort".
What are short-term liabilities : Which of the following bonds would have the greatest percentage increase in value if all interest rates in the economy fall by 1%?  What are short-term liabilities and why are they so important to manage? Please use one example to illustrate your poi..
Businesses different than those of a larger corporation : 1. Are the security needs of small businesses different than those of a larger corporation? Please support your answers.
What is the future value of the same annuity due : What's the taxable equivalent yield on a municipal bond with a yield to maturity of 5.1 percent for an investor in the 28 percent marginal tax bracket? If the future value of an ordinary, 5-year annuity is $6,400 and interest rates are 8 percent, wha..
Why should other people listen to the song : Talk about why you chose this song. why do you like it? what does it mean you personally? why should other people listen to this song?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Critically analyze the transmission media

Critically analyze the transmission media you would recommend for each different building and department of the medical instrument company

  We enhance a machine making all floating-point instructions

Suppose we enhance a machine making all floating-point instructions run five times faster. If the execution time of some benchmark before the floating-point enhancement is 10 seconds, what will the speedup be if half of the 10 seconds is spent exe..

  Describe c-style function declarations

Consider the following context-free grammar, which describes C-style function declarations involving pointers:

  A precision engineering company consumes

A precision engineering company consumes 50,000 units of a component per year. The ordering, receiving and handling costs are Rs.3/- per order, while the trucking cost are Rs. 12/- per order. Further details are as follows: Interest cost Rs. 0.06 per..

  Problem regarding message authentication codes

Discuss the attacks addressed by message authentication codes.

  Mobile application development project

Document at least ten (10) total risks (two [2] risks for each phase of IT projects) of the mobile application development project. Assess the likelihood of occurrence for each risk.

  Write a program that can be used to assign seats

Write a program that can be used to assign seats for a commcommercial airplane. The airplane has 13 rows, with 6 seats in each row. Rows 1 and 2 are first class, rows 3 to 7 are business class, and rows 8 to 13 are economy class

  Write a menu driven program

Write a menu driven program that allows the user to enter five numbers and then choose between finding the smallest , sum or average of the numbers.

  Design a mathematical model

If each shakes the hand of every other person, how many handshakes were there in all? Design a mathematical model to solve the handshake queston. Explain the solution.

  What extent do specific technologies help companies

More generally, to what extent do specific technologies help companies gain an edge over their competitors? How easy or difficult would it be to initiate such advantages

  Why the integration of two methods improved

In addition, provide reasoning as to why the integration of two methods may sometimes lead to improved clustering quality and efficiency.

  What is the probability

For instance, if a blue ball is picked then it is replaced by a red ball and vice-versa. The process is repeated ten times and then a ball is picked from the box. What is the probability that this ball is red?

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