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

  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.

  Describe mutual strategy to maintain enterprise-level system

Describe mutual strategy to maintain enterprise-level system

  Identify the class boulesurprise

Identify the class BouleSurprise.

  What is a backup strategy or active directory?

What is a backup strategy or Active Directory? The small business that you created new domain controllers for now wants you to develop a backup and recovery plan for Active Directory.

  Find minimal cover and identify all possible candidate keys

Find minimal cover and identify all possible candidate keys - Functional Dependencies

  Which would create a better product

Which would create a better product

  What is oracle administration documentations

What is oracle administration documentations

  What factors in computer design would affect the decision

What factors in computer design would affect the decision.

  How to produce a wired and wireless network plan

How to produce a wired and wireless network plan

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Program to evaluate case statement

Program to evaluate case statement

  Which loop arrangement be best for accessing an array

Which loop arrangement be best for accessing an array.

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