Solved

Multiplication Table in Raptor

Posted on 2011-09-24
2
1,972 Views
Last Modified: 2013-11-24
Can someone guide me through this please.  This has to be done in Raptor.

1. Provide your analysis for the following problem statement: You need to write a program that would calculate the results for the multiplication table up from 1 to 100. (For example, 1X1, 1X2, 1X3 … 1X10, 2X1, 2X2 …. 10X2 … 10x10). Your program should print the output for each step and output a new line after 10 items. So the example output would be something like this Notice a new line appears after 10 steps:
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 … 20

10 20 30 … 100
      
To write the new lines you can just use code similar to : write “new line”. Hint: You will probably use a nested repetition loop.
0
Comment
Question by:bcg_81
2 Comments
 
LVL 41

Accepted Solution

by:
pcelba earned 250 total points
ID: 36592563
You cannot suppose we'll solve your home work for you. This would really be very bad approach how to learn something...

In addition to this you are asking in dBase forum which has nothing related to Raptor. You should ask in Miscellaneous programming or in Algorithm etc.

OTOH, the dBase (or FoxPro or Clipper) code for your task is very simple:
 
FOR lnI = 1 TO 10
  ?
  FOR lnJ = 1 TO 10
    ?? lnI * lnJ
  NEXT
NEXT

Open in new window

Older dBase versions do not know FOR - NEXT loop and you have to use DO WHILE loop:
lnI = 1
DO WHILE lnI <= 10
  lnJ = 1
  ?
  DO WHILE lnJ <= 10
    ?? lnI * lnJ
    lnJ = lnJ + 1
  ENDDO
  lnI = lnI + 1
ENDDO

Open in new window


Raptor solution should probably be of same complexity (means very easy) and it your responsibility to read Raptor manuals and write such trivial code.
0
 

Author Closing Comment

by:bcg_81
ID: 36938308
Thanks.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to fix the excel 3 107
Excel formula lookup multiple charges 11 72
SQL 2016 licensing 6 48
CRM 2011 User Last Name Change due to Marriage 6 11
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question