Solved

Multiplication Table in Raptor

Posted on 2011-09-24
2
1,948 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now