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

  Write balanced transportation problem to minimize sum

With customer 1 penalty cost of 490 is incurred; with customer 2, $80; and with customer 3, $110. Write balanced transportation problem to minimize the sum of shortage and shipping cost.

  Calculation of the hypotenuse

Construct a C# console application that calculate the hypotenuse of a right triangle. The calculation of the hypotenuse of a right triangle is based on the Pythagorean Theorem:

  Question about make buy decision

The make purchase decision is an important management prerogative. Assumed to be a manager of a software company that has an average software development cost of $20/LOC.

  Describing rfid systems used in inventory control

Illustrate how are RFID systems used in inventory control and supply chain management? What kinds of relationships are possible in relational database?

  Sketch entity-relationship diagram of database table

Convert table to 3NF. Represent your answer in DBDL. Give table name and fields. Underline primary key. Sketch entity-relationship diagram showing all relationships.

  Question about hippa rights

I have found that to date, the largest offense is looking into family records even though workers are warned not too and that this is a violation of that family member's HIPAA's rights.

  Draw an erd with cardinality notation

Review the Personal Trainer fact-finding summary and draw an ERD with cardinality notation. Assume that system entities include members, activities and services, and fitness instructors.

  Create class diagram and write the pseudocode

Design a class named HousePlant. A HousePlant has fields for a name (for example, "Philodendron"), a price (for example, 29.99). Create class diagram and write the pseudocode that defines the class.

  Write down main ideas behind relational model

Write down the main ideas behind relational model? Why are they an improvement over what came before? In what ways is the relational model restrictive?

  Question about case tools

From your personal experiences explain how CASE tools have improved the system development cycle.

  Formal programming languages and natural languages

As we know that there are problems of understanding natural languages as opposed to formal programming languages. As an illustration of the complexities involved in the case of natural languages,.

  Design a solution algorithm to read the electricity usage

An electricity supply authority records on an electricity usage document the value of electricity that each consumer uses.

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