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

  Create object relationship diagram gives overview of system

Create an object relationship diagram that provides an overview of the system, including how textbooks are selected by instructors, approved by a department head, and sold to students by the bookstore.

  Construct a data dictionary and draw a hierarchy chart

Construct a data dictionary, and draw a hierarchy chart and flowchart or pseudocode for a program to produce a report for the principal of a school.Output.

  Improving job performance

Learning is characterized as any relatively permanent change in behavior that happens as a result of experience. Also means that it also happens outside of schools, at workplaces.

  Concept of object orientation & universal modeling language

Describe the concept of object orientation and Universal Modeling Language as used in computer programming.

  Discuss the legal issues for images

Kudler Fine Foods has used commercial stock photography brokers for picture on its Internet site and for its print advertising.

  Write different entities or objects for engineering firm

List the different entities or objects, logical processes, data flows and data stores that are involved, starting from the time you submitted your time sheet.

  Deisgn level-one dfd for real estate system

Deisgn a level-1 DFD for the following scenario. The purpose of green acres real estate system is to assist agents as they sell houses. Sellers contact agency, and agent is assigned to help seller complete listing request.

  Create inheritance hierarchy for customer-s bank account

Create inheritance hierarchy which a bank might use to represent customer's bank accounts. All customers at this bank can deposit money into their accounts and withdraw money from accounts.

  Question about programming languages

Various contemporary languages permit two kinds of comments, one in which delimiters are used on both ends, and one in which delimiter marks only the starting of the comment, Discuss the advantages and disadvantages of each.

  Designing a database

Assume if your organization was going to design a database and the developers told you they were going to use a flat file database instead of a relational or object oriented one, what would you say to them?

  Importance of udp and the relationship to tcp

Discuss and explain what the UDP does and its relationship to TCP in what ways is it similar and different, and why would we use UDP, and why can not a user program access IP directly?

  Re usability in object oriented languages

Re-usability is ability to use code written for another condition. Most languages and programming paradigms support re-usability in some form.

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