Convert codes and symbols

Assignment Help Software Engineering
Reference no: EM1380049

Could you explain or convert each of the code , symbols used in the following solution?
For example what would "itiny_mce_markerquot; mean for me?
i=1 TO LEN(i$) etc
What would j mean for me? etc
i + 1 TO 1 STEP - 1 etc
MOD 3) = 0 THEN PRINT MID$(i$, i, j) etc

Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; 540

1 i$ = "37540" 'input string
2 FOR i = 1 TO LEN(i$) 'loop from 1 to the length of the input string
3 FOR j = LEN(i$) - i + 1 TO 1 STEP -1
4 'loop from the lenght from this point in the string to the end, down to 1
5 IF (VAL(MID$(i$, i, j)) MOD 3) = 0 THEN PRINT MID$(i$, i, j)
6 'using the modulo function, we check if the particular number is
'evenly divisible by 3
7 NEXT j 'end looping
8 NEXT i 'end looping

For example: 5469
5+4+6+9=24
2+4=6
therefore 5469 is evenly divisible by 3 or 5469 MOD 3 = 0

 

Reference no: EM1380049

Questions Cloud

Define the it governance organization and structure : Define the IT governance organization and structure of each Brief summary of identified key policies as well as procedures of each company
Explain an efficient parallel algorithm : Think about an n-element list in an n-processor EREW parallel random-access machine, where some elements of the list are marked as being blue.
Is you will receive your first interest payment one year : British government has a consol bond outstanding that pays £100 in interest each year. Assuming that current interest rate in Great Britain is 5% also that you will receive your first interest payment one year from now, and then value of consol bo..
Company culture retention and turnover : What would you do to ensure this is done without discrimination - if it must be finished at all? What questions would you ask of the President?
Convert codes and symbols : Given a string of numbers, recognize all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce following substrings.
After finding inappropriate behaviours on an employee''s : After finding inappropriate behaviours on an employee's Facebook an employer obvious to fire the employee. The employee Facebook is the main reason why she was fire. what is your reaction?
How much will you have at end of six years : When CD period is up, you roll entire balance over into another 3-year CD paying 3.5%. How much will you have at end of 6 years?
Does store security have right to stop peter facts : store security notices that he quickly attempts to leave store. Does store security have right to stop also search Peter according to se facts.
What are few of the problems aecs facing : What are few of the problems AECS facing? Are they essential in its model or they could be rectified while keeping the model intact?

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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