Determine highest distance

Assignment Help Computer Engineering
Reference no: EM133449

Question

Given a series of numbers that represent adding fuel (2) and subtracting fuel (1), determine highest distance that is travelled before running out of fuel.

1. Your vehicle will always begin on right side with no fuel.

2. You could advance to the first 2 digit (from the right) as a starting point and from where you are able to travel two spaces (to the left).

3. Each time your vehicle crosses another 2 the fuel tank is filled

4. Each time your vehicle crosses a 1 your fuel tank decreases by 1.

5. Your vehicle comes to a stop as it has no fuel and while the next digit to the left of its current position is a 1.

Input Validation-

1. Your program has to reject all negative input and all input that contains digits other than 1s and 2s.

2. The user has to be given an unlimited number of opportunities to enter valid data as input.

Reference no: EM133449

Questions Cloud

The role of internal audit in the organization : Do you agree with the CFO? If so describe how SOX 404 and CEO/CFO certification removes the need for an internal audit function. If you don't agree, describe what an internal audit function adds beyond SOX 404 and CEO/CFO certification.
Audit committee and assurance engagement : Show why each of the five areas specified by the audit committee may or may not be suitable for this assurance engagement.
Purchasing strategy and strategic purchasing : purchasing strategy and strategic purchasing, corporate and competitive strategie
Creating a program that creates a single tips object : Creating a program that creates a single Tips object
Determine highest distance : Determine highest distance
A statistical conclusion and audit decision : A statistical conclusion, and the audit decision you could make based on the quantitative sample results.
Configuring a database : Configuring a Database
Accounting information system processes : Implement one of the subsequent accounting information system processes:
Classical conditioning and operant conditioning in learning : classical conditioning and operant conditioning in learning, main techniques of personality assessment,  Atkinson and Shiffrin's Model for memory, techniques of improving memory, utility of a neuron, psychology develop as a methodical field, co-relat..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe python modules and packages

Describe Python modules and packages

  How to produce a function mult-stream

How to produce a function mult-stream.

  Utilize routers for connectivity devices instead of hubs

Utilize routers for connectivity devices instead of hubs

  How many tasks real-time application contain

How many tasks real-time application contain In this particular real-time application, there are many tasks; each runs exact same code except with different data each time.

  Illustrate precedence graph

Illustrate precedence graph

  What are java predefined methods

What are java predefined methods

  Suggest a fragmentation design of the account relation

Suggest a fragmentation design of the Account relation

  Which would create a better product

Which would create a better product

  Program on bst

Program on BST

  What aspects of environment support structure of colleges

What aspects of environment support structure of colleges.

  Why we have a divide databases and data warehouse

Why we have a divide databases and data warehouse

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

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